mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/3] media: i2c: ov7251: software reset settle, autosuspend, and non-continuous clock
@ 2026-11-28 20:41 Robert Ijtsma via B4 Relay
  2026-11-28 20:41 ` [PATCH v2 1/3] media: i2c: ov7251: wait for software reset before global init Robert Ijtsma via B4 Relay
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Robert Ijtsma via B4 Relay @ 2026-11-28 20:41 UTC (permalink / raw)
  To: Sakari Ailus, Mauro Carvalho Chehab, Jacopo Mondi, Todor Tomov
  Cc: Antoine Pichot, Dave Stevenson, linux-media, linux-kernel, Robert Ijtsma

This series adds three small fixes and Qualcomm SC8180X enablement
changes for the OmniVision OV7251 sensor driver, rebased on top of
Antoine Pichot's v3 OV7251 series [1]:

1. Issue software reset (0x0103 = 0x01) explicitly in
   ov7251_set_power_on() and wait 5-10 ms before writing
   ov7251_global_init_setting[] so the sensor settles before the common
   register block is programmed.
2. Use pm_runtime_put_autosuspend() in ov7251_s_ctrl() and
   ov7251_s_stream() so the 1000 ms autosuspend window configured in
   probe is actually honored across stream restarts (preserving the
   common register state introduced in [1]).
3. Support V4L2_MBUS_CSI2_NONCONTINUOUS_CLOCK by setting
   CLOCK_LANE_GATE (BIT(5)) in OV7251_MIPI_CTRL00 (0x4800) during
   power-on when requested by the CSI-2 endpoint.

Patch 4 from v1 (V4L2_CID_FLASH_STROBE_OE) is dropped in favor of patch
8/9 in Antoine Pichot's series [1].

[1] https://lore.kernel.org/linux-media/20261113024059.1087031-1-antoine.pichot@gmail.com/

Signed-off-by: Robert Ijtsma <robertijtsma@gmail.com>
---
Based-on: 20261113024059.1087031-1-antoine.pichot@gmail.com

Changes in v2:
- Rebase onto Antoine Pichot's v3 OV7251 series and drop patch 4/4
  (V4L2_CID_FLASH_STROBE_OE) in favor of Antoine's strobe control patch
  (Antoine Pichot).
- Move the software reset (0x0103 = 0x01) out of
  ov7251_global_init_setting[] and wait 5-10 ms before writing the
  global init table rather than after it (Antoine Pichot).
- Drop redundant pm_runtime_mark_last_busy() calls before
  pm_runtime_put_autosuspend() and point Fixes tag at commit
  207f4162f1c9 (Antoine Pichot).
- Program OV7251_MIPI_CTRL00 non-continuous clock gating once per
  power-on alongside the global init registers.
- Link to v1: https://patch.msgid.link/20261127-ov7251-strobe-ncont-v1-0-cefa8c6c020b@gmail.com

---
Robert Ijtsma (3):
      media: i2c: ov7251: wait for software reset before global init
      media: i2c: ov7251: use pm_runtime_put_autosuspend()
      media: i2c: ov7251: support non-continuous MIPI clock mode

 drivers/media/i2c/ov7251.c | 45 +++++++++++++++++++++++++++++++++++++--------
 1 file changed, 37 insertions(+), 8 deletions(-)
---
base-commit: 299860c8390892ac175e8d3e13aa5b086c735dd1
change-id: 20261127-ov7251-strobe-ncont-188241b553be

Best regards,
--  
Robert Ijtsma <robertijtsma@gmail.com>



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-29  3:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-28 20:41 [PATCH v2 0/3] media: i2c: ov7251: software reset settle, autosuspend, and non-continuous clock Robert Ijtsma via B4 Relay
2026-11-28 20:41 ` [PATCH v2 1/3] media: i2c: ov7251: wait for software reset before global init Robert Ijtsma via B4 Relay
2026-11-28 20:41 ` [PATCH v2 2/3] media: i2c: ov7251: use pm_runtime_put_autosuspend() Robert Ijtsma via B4 Relay
2026-11-29  3:08   ` Antoine Pichot
2026-11-28 20:41 ` [PATCH v2 3/3] media: i2c: ov7251: support non-continuous MIPI clock mode Robert Ijtsma via B4 Relay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®