[U-Boot] [PATCH v3 1/6] i2c: rcar_i2c: Setup SCL/SDA delay at rcar_i2c_set_speed

Heiko Schocher hs at denx.de
Thu Mar 7 05:14:15 UTC 2019


Hello Ismael,

Am 06.03.2019 um 11:46 schrieb Ismael Luceno Cortes:
> Setting up the delay only needs to be done once; move it to
> rcar_i2c_set_speed so it's done at initialization time.
> 
> Signed-off-by: Ismael Luceno <ismael.luceno at silicon-gears.com>
> ---
>   drivers/i2c/rcar_i2c.c | 9 ++++++---
>   1 file changed, 6 insertions(+), 3 deletions(-)

Your patch does not apply to

base-commit: f08023c07d826fbc8e62fdd3367961b2f0b06844

I get based on f08023c07d826fbc8e62fdd3367961b2f0b06844

Applying: i2c: rcar_i2c: Setup SCL/SDA delay at rcar_i2c_set_speed
error: sha1 information is lacking or useless (drivers/i2c/rcar_i2c.c).
error: could not build fake ancestor
Patch failed at 0001 i2c: rcar_i2c: Setup SCL/SDA delay at rcar_i2c_set_speed
Use 'git am --show-current-patch' to see the failed patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

My base:

pollux:u-boot hs [temp] $ glg
* f08023c07d - (HEAD -> temp, tag: v2019.04-rc3, origin/master, origin/HEAD, master) Prepare 
v2019.04-rc4 (2 days ago) <Tom Rini>
*   e102f74d65 - Merge branch 'master' of git://git.denx.de/u-boot-sh (2 days ago) <Tom Rini>
|\
| * 65eef78cdb - pinctrl: renesas: r8a77990: Reivse USB ID pin name (3 days ago) <Hiroyuki Yokoyama>


How does this work for you ?

 > diff --git a/drivers/i2c/rcar_i2c.c b/drivers/i2c/rcar_i2c.c
 > index 10b0f8bad4..a57f72a228 100644
 > --- a/drivers/i2c/rcar_i2c.c
 > +++ b/drivers/i2c/rcar_i2c.c
 > @@ -116,9 +116,7 @@ static int rcar_i2c_set_addr(struct udevice *dev, u8 chip, u8 read)
 >   	writel(0, priv->base + RCAR_I2C_ICMSR);
 >   	writel(priv->icccr, priv->base + RCAR_I2C_ICCCR);
 >
 > -	if (priv->type == RCAR_I2C_TYPE_GEN3)
 > -		writel(RCAR_I2C_ICFBSCR_TCYC17, priv->base + RCAR_I2C_ICFBSCR);
 > -
 > +	/* Wait for the bus */
 >   	ret = wait_for_bit_le32(priv->base + RCAR_I2C_ICMCR,
 >   				RCAR_I2C_ICMCR_FSDA, false, 2, true);
 >   	if (ret) {

I do not find RCAR_I2C_TYPE_GEN3 in current mainline code ... please
check!

bye,
Heiko
-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: hs at denx.de


More information about the U-Boot mailing list