Re: [PATCH v2 2/2] i2c: Build I2C_PASEMI with COMPILE_TEST

Sven Peter
2023-03-02T17:00:16Z

Hi,

On Tue, Feb 28, 2023, at 00:33, Benjamin Gray wrote:
> This driver builds fine on non-power platforms, so add it to the
> COMPILE_TEST set to increase build coverage.
>
> Suggested-by: Arnd Bergmann <arnd@arndb.de>
> Signed-off-by: Benjamin Gray <bgray@linux.ibm.com>
> ---
> drivers/i2c/busses/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig
> index c42109e972fe..52b1aa164cda 100644
> --- a/drivers/i2c/busses/Kconfig
> +++ b/drivers/i2c/busses/Kconfig
> @@ -890,7 +890,7 @@ config I2C_OWL
>
> config I2C_PASEMI
> tristate "PA Semi SMBus interface"
> - depends on PPC_PASEMI && PCI
> + depends on (PPC_PASEMI && PCI) || COMPILE_TEST

I think you just want

depends on PCI
depends on PPC_PASEMI || COMPILE_TEST

here and then it should work.

Best,

Sven