From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
Cc: linux-media@vger.kernel.org, linux-sh@vger.kernel.org,
magnus.damm@gmail.com, Lars-Peter Clausen <lars@metafoo.de>
Subject: Re: [PATCH] media: adv7180: increase delay after reset to 5ms
Date: Wed, 11 Nov 2015 23:10:47 +0000 [thread overview]
Message-ID: <1743324.8Mae4aQqGO@avalon> (raw)
In-Reply-To: <1447162740-28096-1-git-send-email-ulrich.hecht+renesas@gmail.com>
Hi Ulrich,
(CC'ing Lars-Peter Clausen)
Thank you for the patch.
On Tuesday 10 November 2015 14:39:00 Ulrich Hecht wrote:
> Initialization of the ADV7180 chip fails on the Renesas R8A7790-based
> Lager board about 50% of the time. This patch resolves the issue by
> increasing the minimum delay after reset from 2 ms to 5 ms, following the
> recommendation in the ADV7180 datasheet:
>
> "Executing a software reset takes approximately 2 ms. However, it is
> recommended to wait 5 ms before any further I2C writes are performed."
>
> Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Lars, would you like to take this in your tree with other Analog Devices
patches, or should I take it ?
> ---
> drivers/media/i2c/adv7180.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/media/i2c/adv7180.c b/drivers/media/i2c/adv7180.c
> index f82c8aa..3c3c4bf 100644
> --- a/drivers/media/i2c/adv7180.c
> +++ b/drivers/media/i2c/adv7180.c
> @@ -1112,7 +1112,7 @@ static int init_device(struct adv7180_state *state)
> mutex_lock(&state->mutex);
>
> adv7180_write(state, ADV7180_REG_PWR_MAN, ADV7180_PWR_MAN_RES);
> - usleep_range(2000, 10000);
> + usleep_range(5000, 10000);
>
> ret = state->chip_info->init(state);
> if (ret)
--
Regards,
Laurent Pinchart
WARNING: multiple messages have this Message-ID (diff)
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
Cc: linux-media@vger.kernel.org, linux-sh@vger.kernel.org,
magnus.damm@gmail.com, Lars-Peter Clausen <lars@metafoo.de>
Subject: Re: [PATCH] media: adv7180: increase delay after reset to 5ms
Date: Thu, 12 Nov 2015 01:10:47 +0200 [thread overview]
Message-ID: <1743324.8Mae4aQqGO@avalon> (raw)
In-Reply-To: <1447162740-28096-1-git-send-email-ulrich.hecht+renesas@gmail.com>
Hi Ulrich,
(CC'ing Lars-Peter Clausen)
Thank you for the patch.
On Tuesday 10 November 2015 14:39:00 Ulrich Hecht wrote:
> Initialization of the ADV7180 chip fails on the Renesas R8A7790-based
> Lager board about 50% of the time. This patch resolves the issue by
> increasing the minimum delay after reset from 2 ms to 5 ms, following the
> recommendation in the ADV7180 datasheet:
>
> "Executing a software reset takes approximately 2 ms. However, it is
> recommended to wait 5 ms before any further I2C writes are performed."
>
> Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Lars, would you like to take this in your tree with other Analog Devices
patches, or should I take it ?
> ---
> drivers/media/i2c/adv7180.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/media/i2c/adv7180.c b/drivers/media/i2c/adv7180.c
> index f82c8aa..3c3c4bf 100644
> --- a/drivers/media/i2c/adv7180.c
> +++ b/drivers/media/i2c/adv7180.c
> @@ -1112,7 +1112,7 @@ static int init_device(struct adv7180_state *state)
> mutex_lock(&state->mutex);
>
> adv7180_write(state, ADV7180_REG_PWR_MAN, ADV7180_PWR_MAN_RES);
> - usleep_range(2000, 10000);
> + usleep_range(5000, 10000);
>
> ret = state->chip_info->init(state);
> if (ret)
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2015-11-11 23:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-10 13:39 [PATCH] media: adv7180: increase delay after reset to 5ms Ulrich Hecht
2015-11-10 13:39 ` Ulrich Hecht
2015-11-11 23:10 ` Laurent Pinchart [this message]
2015-11-11 23:10 ` Laurent Pinchart
2015-11-12 10:13 ` Geert Uytterhoeven
2015-11-12 10:13 ` Geert Uytterhoeven
2015-11-12 10:21 ` Lars-Peter Clausen
2015-11-12 10:21 ` Lars-Peter Clausen
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=1743324.8Mae4aQqGO@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=lars@metafoo.de \
--cc=linux-media@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=magnus.damm@gmail.com \
--cc=ulrich.hecht+renesas@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.