linux/drivers/media
Umang Jain 9eac174a9b media: imx335: Fix reset-gpio handling
[ Upstream commit 99d30e2fde ]

Rectify the logical value of reset-gpio so that it is set to
0 (disabled) during power-on and to 1 (enabled) during power-off.

Set the reset-gpio to GPIO_OUT_HIGH at initialization time to make
sure it starts off in reset. Also drop the "Set XCLR" comment which
is not-so-informative.

The existing usage of imx335 had reset-gpios polarity inverted
(GPIO_ACTIVE_HIGH) in their device-tree sources. With this patch
included, those DTS will not be able to stream imx335 anymore. The
reset-gpio polarity will need to be rectified in the device-tree
sources as shown in [1] example, in order to get imx335 functional
again (as it remains in reset prior to this fix).

Cc: stable@vger.kernel.org
Fixes: 45d19b5fb9 ("media: i2c: Add imx335 camera sensor driver")
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://lore.kernel.org/linux-media/20240729110437.199428-1-umang.jain@ideasonboard.com/
Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2024-10-10 11:58:04 +02:00
..
cec media: cec: core: avoid confusing "transmit timed out" message 2024-06-12 11:12:43 +02:00
common media: videobuf2: request more buffers for vb2_read 2024-04-27 17:11:30 +02:00
dvb-core media: drivers/media/dvb-core: copy user arrays safely 2024-08-29 17:33:34 +02:00
dvb-frontends drivers: media: dvb-frontends/rtl2830: fix an out-of-bounds write error 2024-10-04 16:29:28 +02:00
firewire media: firewire: firedtv-avc.c: replace BUG with proper, error return 2023-08-10 07:58:37 +02:00
i2c media: imx335: Fix reset-gpio handling 2024-10-10 11:58:04 +02:00
mc media: mc: mark the media devnode as registered from the, start 2024-06-16 13:47:35 +02:00
mmc media: media/*/Kconfig: sort entries 2022-03-18 05:58:35 +01:00
pci media: pci: cx23885: check cx23885_vdev_init() return 2024-08-29 17:33:33 +02:00
platform media: qcom: camss: Fix ordering of pm_runtime_enable 2024-10-10 11:57:55 +02:00
radio media: radio-isa: use dev_name to fill in bus_info 2024-08-29 17:33:25 +02:00
rc lirc: rc_dev_get_from_fd(): fix file leak 2024-08-03 08:54:38 +02:00
spi media updates for v5.18-rc1 2022-03-23 14:51:35 -07:00
test-drivers media: vivid: don't set HDMI TX controls if there are no HDMI outputs 2024-09-12 11:11:31 +02:00
tuners Revert "media: tuners: fix error return code of hybrid_tuner_request_state()" 2024-10-04 16:29:46 +02:00
usb media: usbtv: Remove useless locks in usbtv_video_free() 2024-10-10 11:57:19 +02:00
v4l2-core media: v4l2-cci: Always assign *val 2024-09-08 07:54:44 +02:00
Kconfig media: Kconfig: Make DVB_CORE=m possible when MEDIA_SUPPORT=y 2022-12-07 17:58:46 +01:00
Makefile media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00