aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers.c
diff options
context:
space:
mode:
authorHans de Goede <[email protected]>2024-05-06 13:24:38 +0000
committerHans Verkuil <[email protected]>2024-05-10 09:20:02 +0000
commit6983352784a7b87a9c39dbbfaa33733fa1ccb0a5 (patch)
tree48420428174ad120dfe22acecec9706c2236493c /rust/helpers.c
parentmedia: intel/ipu6: Don't print user-triggerable errors to kernel log (diff)
downloadkernel-6983352784a7b87a9c39dbbfaa33733fa1ccb0a5.tar.gz
kernel-6983352784a7b87a9c39dbbfaa33733fa1ccb0a5.zip
media: ov2740: Ensure proper reset sequence on probe()
Before this commit on probe() the driver would do: reset=1 // from probe() calling gpiod_get(GPIOD_OUT_HIGH) reset=0 // from resume() msleep(20) // from resume() So if reset was 0 before getting the GPIO the reset line would only be driven high for a very short time and sometimes there would be errors reading the id register afterwards. Add a msleep(20) after getting the reset line to ensure the sensor is properly reset: reset=1 // from probe() calling gpiod_get(GPIOD_OUT_HIGH) msleep(20) // from probe() reset=0 // from resume() msleep(20) // from resume() Signed-off-by: Hans de Goede <[email protected]> Tested-by: Stanislaw Gruszka <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: Hans Verkuil <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions