media: rp1: csi2: Fix missing reg writes
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Thu, 28 Sep 2023 07:42:22 +0000 (10:42 +0300)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:02 +0000 (11:35 +0000)
commite0ff320bca912ffcf3faf5c5aad5fe0cf01f8ee9
tree8333fe5df0e5bc8e504fc8ed71a7916be20eae3d
parent5f177695a4e20500faa5501200b7cbc2c5d2f235
media: rp1: csi2: Fix missing reg writes

The driver has two places where it writes a register based on a
condition, and when that condition is false, the driver presumes that
the register has the reset value. This is not a good idea, so fix those
places to always write the register.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
drivers/media/platform/raspberrypi/rp1_cfe/csi2.c