Re: [PATCH v5 1/2] i2c: spacemit: replace i2c_xfer_msg()

From: Andi Shyti
Date: Sat Dec 27 2025 - 14:46:00 EST


Hi Troy,

On Fri, Dec 26, 2025 at 11:31:10AM +0800, Troy Mitchell wrote:
> The upcoming PIO support requires a wait_pio_xfer() helper, which is
> invoked from xfer_msg().
>
> Since wait_pio_xfer() depends on err_check(), move the definition of
> xfer_msg() after err_check() to avoid a forward declaration of
> err_check().

on the subject, this is clearly an i2c_xfer_msg move, not a
replace, right?

(if no v6 is coming, there is no need to resend for this, it can
be fixed before merging).

Andi

>
> Signed-off-by: Troy Mitchell <troy.mitchell@xxxxxxxxxxxxxxxxxx>