From: Hans de Goede <hdegoede@redhat.com>
To: Bryan O'Donoghue <bryan.odonoghue@linaro.org>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Sakari Ailus <sakari.ailus@linux.intel.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>
Cc: Jingjing Xiong <jingjing.xiong@intel.com>,
Hao Yao <hao.yao@intel.com>, Jim Lai <jim.lai@intel.com>,
You-Sheng Yang <vicamo.yang@canonical.com>,
Alan Stern <stern@rowland.harvard.edu>,
linux-kernel@vger.kernel.org, linux-media@vger.kernel.org
Subject: Re: [PATCH 6/8] media: i2c: ov02e10: Implement specification t3 and t5 delays on power-up
Date: Mon, 17 Mar 2025 10:04:50 +0100 [thread overview]
Message-ID: <94bc2fef-1138-4252-9ad3-dd6e01d55290@redhat.com> (raw)
In-Reply-To: <20250317-b4-media-comitters-next-25-03-13-ov02e10-v1-6-bd924634b889@linaro.org>
Hi,
On 17-Mar-25 01:39, Bryan O'Donoghue wrote:
> The ov02e10 specification says for power-on:
>
> t3 = the time between dvdd stable and XSHUTDOWN deassert
> t5 = the time between XSHUTDOWN deassert and SCCB ready
>
> The power-off path in the spec shows no required delays between XSHUTDONW
> and power-rail shut off so power-off is left alone.
>
> Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
> ---
> drivers/media/i2c/ov02e10.c | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/media/i2c/ov02e10.c b/drivers/media/i2c/ov02e10.c
> index 9ad70671a718ea0aaf80ad3adcc5738ee57a7ff6..40c4d3ee36e3e2a0bb8be3ff10d016e2bb9bbc9d 100644
> --- a/drivers/media/i2c/ov02e10.c
> +++ b/drivers/media/i2c/ov02e10.c
> @@ -579,7 +579,11 @@ static int ov02e10_power_on(struct device *dev)
> goto disable_clk;
> }
>
> - gpiod_set_value_cansleep(ov02e10->reset, 0);
> + if (ov02e10->reset) {
> + usleep_range(5000, 5100);
> + gpiod_set_value_cansleep(ov02e10->reset, 0);
> + usleep_range(8000, 8100);
> + }
>
> return 0;
>
Note ATM ov02e10->reset is requested with GPIOD_OUT_LOW and it is not
guaranteed that it was high before that. It really should be requested
with GPIOD_OUT_HIGH so that it is guaranteed to be high before
ov02e10_power_on() gets called as the code expects here.
Regards,
Hans
next prev parent reply other threads:[~2025-03-17 9:04 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-17 0:39 [PATCH 0/8] RFT/RFC: Import IPU6 ov02e10 sensor driver and enable OF usage of it Bryan O'Donoghue
2025-03-17 0:39 ` [PATCH 1/8] media: i2c: add OV02E10 image sensor driver Bryan O'Donoghue
2025-03-21 16:38 ` Dan Carpenter
2025-03-17 0:39 ` [PATCH 2/8] media: i2c: ov02e10: Fix initial indentation and spacing Bryan O'Donoghue
2025-03-17 0:39 ` [PATCH 3/8] media: i2c: ov02e10: Drop IPU6 FPGA specific handshake GPIO Bryan O'Donoghue
2025-03-17 0:39 ` [PATCH 4/8] media: i2c: ov02e10: Convert to regulator_bulk API Bryan O'Donoghue
2025-03-17 0:39 ` [PATCH 5/8] media: i2c: ov02e10: Rework MCLK clock get logic to facilitate OF Bryan O'Donoghue
2025-03-17 0:39 ` [PATCH 6/8] media: i2c: ov02e10: Implement specification t3 and t5 delays on power-up Bryan O'Donoghue
2025-03-17 9:04 ` Hans de Goede [this message]
2025-03-17 0:39 ` [PATCH 7/8] media: i2c: ov02e10: Remove redundant dev_dbg() and some extra dev_err() Bryan O'Donoghue
2025-03-17 0:39 ` [PATCH 8/8] media: i2c: ov02e10: Add OF probe support Bryan O'Donoghue
2025-03-17 9:02 ` [PATCH 0/8] RFT/RFC: Import IPU6 ov02e10 sensor driver and enable OF usage of it Hans de Goede
2025-03-17 17:33 ` Alan Stern
2025-03-17 20:56 ` Bryan O'Donoghue
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=94bc2fef-1138-4252-9ad3-dd6e01d55290@redhat.com \
--to=hdegoede@redhat.com \
--cc=broonie@kernel.org \
--cc=bryan.odonoghue@linaro.org \
--cc=hao.yao@intel.com \
--cc=jim.lai@intel.com \
--cc=jingjing.xiong@intel.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=sakari.ailus@linux.intel.com \
--cc=stern@rowland.harvard.edu \
--cc=vicamo.yang@canonical.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
all inboxes | Powered by JetHome®