Hans de Goede
6983352784
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 <hdegoede@redhat.com >
Tested-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com >
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com >
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl >
2024-05-10 11:20:02 +02:00
..
2024-04-09 08:15:03 +02:00
2024-03-15 11:36:54 -07:00
2023-09-27 09:40:01 +02:00
2024-04-10 15:15:31 +02:00
2024-02-23 14:33:32 +01:00
2023-07-14 13:07:18 +02:00
2023-10-12 10:12:54 +02:00
2023-05-25 16:21:21 +02:00
2023-05-25 16:21:21 +02:00
2024-04-15 13:42:39 +02:00
2023-12-08 10:04:11 +01:00
2022-06-10 14:51:35 +02:00
2024-02-23 14:33:32 +01:00
2022-06-10 14:51:35 +02:00
2023-05-25 16:21:21 +02:00
2024-04-09 08:15:03 +02:00
2024-04-09 08:15:03 +02:00
2024-04-09 08:15:03 +02:00
2023-05-25 16:21:21 +02:00
2023-12-13 13:21:19 +01:00
2024-02-23 14:33:32 +01:00
2024-02-23 14:33:32 +01:00
2022-11-25 08:35:48 +00:00
2024-01-22 17:23:59 +01:00
2023-05-25 16:21:21 +02:00
2023-05-25 16:21:21 +02:00
2023-05-25 16:21:21 +02:00
2023-08-10 07:58:33 +02:00
2023-05-25 16:21:21 +02:00
2023-05-25 16:21:21 +02:00
2023-05-25 16:21:21 +02:00
2023-12-04 10:37:47 +01:00
2023-12-04 10:37:47 +01:00
2023-12-04 10:37:47 +01:00
2024-04-10 15:15:31 +02:00
2023-08-10 07:58:41 +02:00
2023-05-25 16:21:21 +02:00
2023-05-25 16:21:21 +02:00
2023-12-13 13:21:21 +01:00
2023-12-04 10:37:47 +01:00
2024-04-22 11:41:06 +02:00
2023-12-04 10:37:47 +01:00
2023-11-23 18:57:47 +01:00
2023-11-23 18:57:47 +01:00
2024-04-29 12:06:33 +01:00
2024-04-26 11:29:41 +01:00
2023-11-23 18:57:47 +01:00
2024-02-01 13:38:53 +01:00
2024-02-23 14:33:32 +01:00
2023-12-04 10:37:47 +01:00
2024-02-01 13:42:07 +01:00
2024-02-01 13:41:32 +01:00
2024-04-22 13:05:51 +02:00
2024-02-01 13:42:50 +01:00
2023-12-04 10:37:47 +01:00
2024-02-01 13:38:04 +01:00
2023-05-25 16:21:21 +02:00
2024-02-01 13:40:22 +01:00
2024-04-26 11:20:57 +01:00
2023-05-25 16:21:21 +02:00
2023-05-25 16:21:21 +02:00
2023-05-25 16:21:21 +02:00
2023-05-25 16:21:21 +02:00
2023-12-13 13:21:21 +01:00
2024-02-01 13:39:59 +01:00
2024-04-29 09:17:52 +01:00
2023-12-13 16:52:35 +01:00
2023-05-25 16:21:21 +02:00
2024-02-16 11:46:31 +01:00
2024-02-16 11:46:31 +01:00
2023-12-04 10:37:47 +01:00
2023-12-13 16:52:35 +01:00
2023-12-14 12:40:13 +01:00
2024-02-23 14:33:32 +01:00
2023-12-08 10:04:12 +01:00
2023-12-13 16:52:35 +01:00
2024-02-23 14:33:32 +01:00
2023-12-13 16:52:35 +01:00
2023-11-23 18:57:47 +01:00
2023-12-04 11:21:46 +01:00
2023-12-04 10:37:47 +01:00
2023-11-23 18:57:47 +01:00
2024-02-06 14:01:38 +01:00
2023-12-04 11:21:46 +01:00
2024-02-12 16:57:47 +01:00
2023-12-13 16:52:35 +01:00
2023-12-04 10:37:47 +01:00
2024-02-23 14:33:32 +01:00
2024-04-22 11:41:05 +02:00
2023-11-23 18:57:47 +01:00
2024-05-10 11:20:02 +02:00
2024-04-26 11:29:06 +01:00
2023-12-13 16:52:35 +01:00
2024-02-23 14:33:32 +01:00
2024-02-23 14:33:32 +01:00
2023-12-13 16:52:35 +01:00
2023-12-04 10:37:47 +01:00
2023-11-23 18:57:47 +01:00
2023-12-13 16:52:35 +01:00
2023-11-23 18:57:47 +01:00
2023-12-13 16:52:35 +01:00
2023-12-13 16:52:35 +01:00
2023-05-25 16:21:21 +02:00
2023-12-13 16:52:35 +01:00
2023-12-13 16:52:35 +01:00
2023-11-23 18:57:47 +01:00
2023-12-04 10:37:47 +01:00
2023-12-13 16:52:35 +01:00
2023-12-04 10:37:47 +01:00
2023-12-08 10:04:12 +01:00
2023-12-13 16:52:35 +01:00
2023-12-04 11:21:46 +01:00
2023-11-23 18:57:47 +01:00
2024-04-29 09:16:01 +01:00
2023-09-14 23:31:55 +02:00
2023-12-08 10:04:12 +01:00
2024-02-23 14:33:32 +01:00
2023-11-23 18:57:47 +01:00
2023-05-25 16:21:21 +02:00
2023-05-25 16:21:21 +02:00
2023-12-08 10:04:11 +01:00
2023-05-25 16:21:21 +02:00
2023-05-25 16:21:21 +02:00
2023-05-25 16:21:21 +02:00
2023-05-25 16:21:21 +02:00
2023-05-25 16:21:21 +02:00
2024-05-03 11:15:47 +01:00
2024-02-16 11:46:32 +01:00
2024-04-09 08:15:03 +02:00
2024-05-03 11:16:08 +01:00
2024-04-09 08:15:03 +02:00
2023-05-25 16:21:21 +02:00
2023-05-25 16:21:21 +02:00
2023-05-25 16:21:21 +02:00
2023-05-25 16:21:21 +02:00
2024-02-12 16:57:47 +01:00
2024-04-09 08:15:03 +02:00
2024-04-09 08:15:03 +02:00
2023-05-25 16:21:21 +02:00
2023-05-25 16:21:21 +02:00
2024-02-23 14:33:32 +01:00
2024-02-01 13:39:35 +01:00
2024-04-09 08:15:03 +02:00
2023-05-25 16:21:21 +02:00
2023-12-13 11:04:45 +01:00
2023-05-25 16:21:21 +02:00
2023-05-25 16:21:21 +02:00
2023-12-08 10:04:12 +01:00
2023-05-25 16:21:21 +02:00
2023-05-25 16:21:21 +02:00
2023-05-25 16:21:21 +02:00
2023-12-13 17:31:27 +01:00
2023-05-25 16:21:21 +02:00
2023-05-25 16:21:21 +02:00
2023-05-25 16:21:21 +02:00
2023-05-25 16:21:21 +02:00