[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Z64frt9vbdLVYbrB@smile.fi.intel.com>
Date: Thu, 13 Feb 2025 18:37:02 +0200
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Wolfram Sang <wsa+renesas@...g-engineering.com>,
Andi Shyti <andi.shyti@...nel.org>, linux-i2c@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org,
linux-renesas-soc@...r.kernel.org,
Krzysztof Adamski <krzysztof.adamski@...ia.com>,
Florian Fainelli <florian.fainelli@...adcom.com>,
Ray Jui <rjui@...adcom.com>, Scott Branden <sbranden@...adcom.com>,
Broadcom internal kernel review list <bcm-kernel-feedback-list@...adcom.com>,
Kamal Dasu <kamal.dasu@...adcom.com>, Stefan Roese <sr@...x.de>,
Matthias Brugger <matthias.bgg@...il.com>,
AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>,
Gregory CLEMENT <gregory.clement@...tlin.com>,
Fabrizio Castro <fabrizio.castro.jz@...esas.com>
Subject: Re: [PATCH v2 06/10] i2c: kempld: Use i2c_10bit_addr_*_from_msg()
helpers
On Thu, Feb 13, 2025 at 05:15:09PM +0100, Wolfram Sang wrote:
...
> > /* Second part of 10 bit addressing */
> > if (i2c->state == STATE_ADDR10) {
> > - kempld_write8(pld, KEMPLD_I2C_DATA, i2c->msg->addr & 0xff);
> > + addr = i2c_10bit_addr_lo_from_msg(msg);
> > + i2c->state = STATE_START;
>
> Any reason you moved this?
Yes, I would like to be in sync in the above state machine case, just upper in
the code which is not visible in this patch.
> > + kempld_write8(pld, KEMPLD_I2C_DATA, addr);
>
> Maybe we could skip using 'addr' here?
Same reason as above.
> > kempld_write8(pld, KEMPLD_I2C_CMD, I2C_CMD_WRITE);
> >
> > - i2c->state = STATE_START;
> > return 0;
> > }
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists