[PATCH v4 2/5] i2c: piix4: Depends on X86

Mario Limonciello posted 5 patches 8 months, 1 week ago
There is a newer version of this series
[PATCH v4 2/5] i2c: piix4: Depends on X86
Posted by Mario Limonciello 8 months, 1 week ago
From: Mario Limonciello <mario.limonciello@amd.com>

PIIX4 and compatible controllers are only for X86. As some headers are
being moved into x86 specific headers PIIX4 won't compile on non-x86.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202504120558.sq3IpWdH-lkp@intel.com/
Closes: https://lore.kernel.org/oe-kbuild-all/202504120432.0F8lOF3k-lkp@intel.com/
Suggested-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.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 83c88c79afe20..bbbd6240fa6ed 100644
--- a/drivers/i2c/busses/Kconfig
+++ b/drivers/i2c/busses/Kconfig
@@ -200,7 +200,7 @@ config I2C_ISMT
 
 config I2C_PIIX4
 	tristate "Intel PIIX4 and compatible (ATI/AMD/Serverworks/Broadcom/SMSC)"
-	depends on PCI && HAS_IOPORT
+	depends on PCI && HAS_IOPORT && X86
 	select I2C_SMBUS
 	help
 	  If you say yes to this option, support will be included for the Intel
-- 
2.43.0
Re: [PATCH v4 2/5] i2c: piix4: Depends on X86
Posted by Andi Shyti 8 months ago
Hi Mario,

On Mon, Apr 14, 2025 at 07:26:55PM -0500, Mario Limonciello wrote:
> PIIX4 and compatible controllers are only for X86. As some headers are
> being moved into x86 specific headers PIIX4 won't compile on non-x86.
> 
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202504120558.sq3IpWdH-lkp@intel.com/
> Closes: https://lore.kernel.org/oe-kbuild-all/202504120432.0F8lOF3k-lkp@intel.com/

givent that the next patch is not merged anywhere yet, the above
three tags are not needed.

BTW, can I already take the two i2c patches?

Thanks,
Andi

> Suggested-by: Ingo Molnar <mingo@kernel.org>
> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Re: [PATCH v4 2/5] i2c: piix4: Depends on X86
Posted by Mario Limonciello 8 months ago
On 4/17/2025 5:16 PM, Andi Shyti wrote:
> Hi Mario,
> 
> On Mon, Apr 14, 2025 at 07:26:55PM -0500, Mario Limonciello wrote:
>> PIIX4 and compatible controllers are only for X86. As some headers are
>> being moved into x86 specific headers PIIX4 won't compile on non-x86.
>>
>> Reported-by: kernel test robot <lkp@intel.com>
>> Closes: https://lore.kernel.org/oe-kbuild-all/202504120558.sq3IpWdH-lkp@intel.com/
>> Closes: https://lore.kernel.org/oe-kbuild-all/202504120432.0F8lOF3k-lkp@intel.com/
> 
> givent that the next patch is not merged anywhere yet, the above
> three tags are not needed.

Ah, thanks for clarifying this.  I'll strip them for the next version.

> 
> BTW, can I already take the two i2c patches?

If you don't mind I think it would be better to leave Acked-by tags for 
them and let these go through tip.

A few reasons:
1) The header rename this fits into happened on tip already.
2) Patch 5 which would go through tip depends on these two patches, so 
it would mean you need to provide an immutable branch for tip to merge.

But if you would rather do the immutable branch dance and take them now 
that's of course possible too.

> 
> Thanks,
> Andi
> 
>> Suggested-by: Ingo Molnar <mingo@kernel.org>
>> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>