From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: robertijtsma@gmail.com
Cc: Sakari Ailus <sakari.ailus@linux.intel.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Jacopo Mondi <jacopo@jmondi.org>,
Todor Tomov <todor.too@gmail.com>,
Daniel Scally <djrscally@gmail.com>,
Antoine Pichot <antoine.pichot@gmail.com>,
Dave Stevenson <dave.stevenson@raspberrypi.com>,
linux-media@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Subject: Re: [PATCH v3 1/4] media: i2c: ov7251: wait for software reset before global init
Date: Sat, 5 Dec 2026 13:11:49 +0200 [thread overview]
Message-ID: <axPxdWhgsGDd8PH3@ashevche-desk.local> (raw)
In-Reply-To: <20261130-ov7251-strobe-ncont-v3-1-cc706dd0e716@gmail.com>
On Mon, Nov 30, 2026 at 09:10:33PM +0100, Robert Ijtsma via B4 Relay wrote:
>
> ov7251_set_power_on() writes software reset (0x0103 = 0x01) as the first
> entry of ov7251_global_init_setting[] and immediately follows it with
> the remaining common initialization registers.
>
> Issue OV7251_SC_SOFTWARE_RESET explicitly and wait 5-10 ms for the
> sensor to finish resetting before writing ov7251_global_init_setting[]
> so subsequent I2C writes are not NACKed or lost during reset.
...
> usleep_range(wait_us, wait_us + 1000);
(*yes, I see the original code uses that, which might be worth to revisit)
>
> + ret = ov7251_write_reg(ov7251, OV7251_SC_SOFTWARE_RESET,
> + OV7251_SC_SOFTWARE_RESET_ASSERT);
> + if (ret < 0)
> + goto err_power_off;
> + usleep_range(5000, 10000);
fsleep(5 * USEC_PER_MSEC) ?
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2026-12-05 11:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 20:10 [PATCH v3 0/4] media: i2c: ov7251: software reset settle, autosuspend, and non-continuous clock Robert Ijtsma via B4 Relay
2026-11-30 20:10 ` [PATCH v3 1/4] media: i2c: ov7251: wait for software reset before global init Robert Ijtsma via B4 Relay
2026-12-05 11:11 ` Andy Shevchenko [this message]
2026-11-30 20:10 ` [PATCH v3 2/4] media: i2c: ov7251: use pm_runtime_put_autosuspend() Robert Ijtsma via B4 Relay
2026-11-30 20:10 ` [PATCH v3 3/4] media: dt-bindings: ovti,ov7251: allow clock-noncontinuous Robert Ijtsma via B4 Relay
2026-11-30 20:10 ` [PATCH v3 4/4] media: i2c: ov7251: support non-continuous MIPI clock mode Robert Ijtsma via B4 Relay
2026-12-05 11:13 ` [PATCH v3 0/4] media: i2c: ov7251: software reset settle, autosuspend, and non-continuous clock Andy Shevchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=axPxdWhgsGDd8PH3@ashevche-desk.local \
--to=andriy.shevchenko@linux.intel.com \
--cc=antoine.pichot@gmail.com \
--cc=conor+dt@kernel.org \
--cc=dave.stevenson@raspberrypi.com \
--cc=devicetree@vger.kernel.org \
--cc=djrscally@gmail.com \
--cc=jacopo@jmondi.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab+samsung@kernel.org \
--cc=mchehab@kernel.org \
--cc=robertijtsma@gmail.com \
--cc=robh@kernel.org \
--cc=sakari.ailus@linux.intel.com \
--cc=todor.too@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox