[PATCH] i2c: davinci: use mdelay() for multi-millisecond waits
Tom Rini
trini at konsulko.com
Wed Aug 27 20:36:25 CEST 2025
On Wed, Aug 27, 2025 at 12:30:55PM -0600, Tom Rini wrote:
> On Wed, Aug 27, 2025 at 04:38:46PM +0530, Bhimeswararao Matsa wrote:
>
> > Signed-off-by: Bhimeswararao Matsa <bhimeswararao.matsa at gmail.com>
> > ---
> > drivers/i2c/davinci_i2c.c | 14 +++++++-------
> > 1 file changed, 7 insertions(+), 7 deletions(-)
> >
> > diff --git a/drivers/i2c/davinci_i2c.c b/drivers/i2c/davinci_i2c.c
> > index 9bba0600e3e..ffd0dd0b282 100644
> > --- a/drivers/i2c/davinci_i2c.c
> > +++ b/drivers/i2c/davinci_i2c.c
> > @@ -51,7 +51,7 @@ static int _wait_for_bus(struct i2c_regs *i2c_base)
> > }
> >
> > REG(&(i2c_base->i2c_stat)) = stat;
> > - udelay(50000);
> > + mdelay(50);
> > }
> >
> > REG(&(i2c_base->i2c_stat)) = 0xffff;
>
> What is the reason for this change? mdelay(x) is just an inline udelay(x * 1000)
Oh, I see, checkpatch.pl is complaining, but that's not relevant to us.
I'll send a patch in a moment. Thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250827/c15fdeb1/attachment.sig>
More information about the U-Boot
mailing list