[PATCH v5 0/2] i2c: spacemit: introduce pio for k1

Troy Mitchell posted 2 patches 1 month, 1 week ago
There is a newer version of this series
drivers/i2c/busses/i2c-k1.c | 307 +++++++++++++++++++++++++++++++++-----------
1 file changed, 230 insertions(+), 77 deletions(-)
[PATCH v5 0/2] i2c: spacemit: introduce pio for k1
Posted by Troy Mitchell 1 month, 1 week ago
This patch introduces I2C PIO functionality for the Spacemit K1 SoC,
enabling the use of I2C in atomic context.

Signed-off-by: Troy Mitchell <troy.mitchell@linux.spacemit.com>
---
Troy Mitchell (2):
      i2c: spacemit: replace i2c_xfer_msg()
      i2c: spacemit: introduce pio for k1

 drivers/i2c/busses/i2c-k1.c | 307 +++++++++++++++++++++++++++++++++-----------
 1 file changed, 230 insertions(+), 77 deletions(-)
---
base-commit: 8dd7d777904fbe2e684d1f1942f81256ca6fd312
change-id: 20250814-k1-i2c-atomic-f1a90cd34364

Best regards,
-- 
Troy Mitchell <troy.mitchell@linux.spacemit.com>
Re: [PATCH v5 0/2] i2c: spacemit: introduce pio for k1
Posted by Aurelien Jarno 1 month, 1 week ago
On 2025-12-26 11:31, Troy Mitchell wrote:
> This patch introduces I2C PIO functionality for the Spacemit K1 SoC,
> enabling the use of I2C in atomic context.
> 
> Signed-off-by: Troy Mitchell <troy.mitchell@linux.spacemit.com>
> ---
> Troy Mitchell (2):
>       i2c: spacemit: replace i2c_xfer_msg()
>       i2c: spacemit: introduce pio for k1
> 
>  drivers/i2c/busses/i2c-k1.c | 307 +++++++++++++++++++++++++++++++++-----------
>  1 file changed, 230 insertions(+), 77 deletions(-)
> ---
> base-commit: 8dd7d777904fbe2e684d1f1942f81256ca6fd312
> change-id: 20250814-k1-i2c-atomic-f1a90cd34364

Thanks for this new version. Both commits are:

Tested-by: Aurelien Jarno <aurelien@aurel32.net>

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien@aurel32.net                     http://aurel32.net
Re: [PATCH v5 0/2] i2c: spacemit: introduce pio for k1
Posted by Andi Shyti 1 month, 1 week ago
Hi Troy,

On Fri, Dec 26, 2025 at 11:31:09AM +0800, Troy Mitchell wrote:
> This patch introduces I2C PIO functionality for the Spacemit K1 SoC,
> enabling the use of I2C in atomic context.
> 
> Signed-off-by: Troy Mitchell <troy.mitchell@linux.spacemit.com>
> ---
> Troy Mitchell (2):
>       i2c: spacemit: replace i2c_xfer_msg()
>       i2c: spacemit: introduce pio for k1

Do we still have RnB and Tested by Aurelien here?

Andi
Re: [PATCH v5 0/2] i2c: spacemit: introduce pio for k1
Posted by Troy Mitchell 1 month, 1 week ago
On Sat, Dec 27, 2025 at 08:38:44PM +0100, Andi Shyti wrote:
> Hi Troy,
> 
> On Fri, Dec 26, 2025 at 11:31:09AM +0800, Troy Mitchell wrote:
> > This patch introduces I2C PIO functionality for the Spacemit K1 SoC,
> > enabling the use of I2C in atomic context.
> > 
> > Signed-off-by: Troy Mitchell <troy.mitchell@linux.spacemit.com>
> > ---
> > Troy Mitchell (2):
> >       i2c: spacemit: replace i2c_xfer_msg()
> >       i2c: spacemit: introduce pio for k1
> 
> Do we still have RnB and Tested by Aurelien here?
No, I removed them.

wait_pio() has been reworked, which results in a significant change in
the underlying logic. As a consequence, the old RB and TB no longer
appear to be applicable.

                          - Troy
> 
> Andi
>