Skip to contentSkip to conversation

i2c: i2c-elektor: Allow building on SMP kernels

PATCH Superseded Magnus Lindholm 3 participants 5 messages Nov 22, 2025 – Nov 24, 2025

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Magnus Lindholm

author maintainer
#0 lore raw

PATCH 1/1 i2c: i2c-elektor: Allow building on SMP kernels

It the past the i2c-elektor driver has been broken on SMP, as it seems there has since been some fixes/cleanup work to get rid of cli/sti and rely on spinlocks instead (as pointed out by Wolfram Sang). Tested this driver on SMP kernel on Alpha/UP2000+ for a few days without any problems.

---
 drivers/i2c/busses/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/busses/Kconfig +1 -1
index fd81e49638aa..9b1473d720a0 100644
@@ -1474,7 +1474,7 @@ config I2C_ACORN
 
 config I2C_ELEKTOR
 	tristate "Elektor ISA card"
-	depends on ISA && HAS_IOPORT_MAP && BROKEN_ON_SMP
+	depends on ISA && HAS_IOPORT_MAP
 	select I2C_ALGOPCF
 	help
 	  This supports the PCF8584 ISA bus I2C adapter.  Say Y if you own
Signature · 1 line
2.51.0
#1 lore raw

Hi Magnus,

Quoted 1 line · Magnus Lindholm

It the past the i2c-elektor driver has been broken on SMP, as it seems

Typo: s/It/In/ and I think there should be a full stop after "SMP".

Quoted 1 line

there has since been some fixes/cleanup work to get rid of cli/sti and

s/has/have/

Quoted 1 line

rely on spinlocks instead (as pointed out by Wolfram Sang). Tested this

The sentence just ends after "instead". I think you meant to say "instead, let's allow building the driver on SMP kernels again." or something like that.

Quoted 12 lines

driver on SMP kernel on Alpha/UP2000+ for a few days without any problems.

---
 drivers/i2c/busses/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/busses/Kconfig +0 -0
index fd81e49638aa..9b1473d720a0 100644

drivers/i2c/busses/Kconfig config I2C_ACORN · line 1480

Quoted 8 lines
drivers/i2c/busses/Kconfig +1 -1
@@ -1474,7 +1474,7 @@ config I2C_ACORN
 
 config I2C_ELEKTOR
 	tristate "Elektor ISA card"
-	depends on ISA && HAS_IOPORT_MAP && BROKEN_ON_SMP
+	depends on ISA && HAS_IOPORT_MAP
 	select I2C_ALGOPCF
 	help
 	  This supports the PCF8584 ISA bus I2C adapter.  Say Y if you own

Adrian

Signature · 4 lines
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
author maintainer
#2 lore raw
Quoted 10 lines · John Paul Adrian Glaubitz

Hi Magnus,

Quoted 1 line · Magnus Lindholm

It the past the i2c-elektor driver has been broken on SMP, as it seems

Typo: s/It/In/ and I think there should be a full stop after "SMP".

Quoted 1 line

there has since been some fixes/cleanup work to get rid of cli/sti and

Quoted 8 lines

s/has/have/

Quoted 1 line

rely on spinlocks instead (as pointed out by Wolfram Sang). Tested this

The sentence just ends after "instead". I think you meant to say "instead, let's allow building the driver on SMP kernels again." or something like that.

Thanks for quick response and feedback, I'll send out a v2 right away

/Magnus

#3 lore raw
In reply to John Paul Adrian Glaubitz
Quoted 3 lines · John Paul Adrian Glaubitz
Quoted 1 line

there has since been some fixes/cleanup work to get rid of cli/sti and

s/has/have/

An ambiguity here comes from the mixture of plural and uncountable for
"fixes" vs "... work".

Quoted 5 lines
Quoted 1 line

rely on spinlocks instead (as pointed out by Wolfram Sang). Tested this

The sentence just ends after "instead". I think you meant to say "instead, let's allow building the driver on SMP kernels again." or something like that.

FWIW I can see nothing wrong with the sentence, "... get rid of cli/sti
and rely on spinlocks instead." seems like standard English usage to me.

Maciej

#4 lore raw
Quoted 9 lines · Maciej W. Rozycki
Quoted 3 lines · John Paul Adrian Glaubitz
Quoted 1 line

there has since been some fixes/cleanup work to get rid of cli/sti and

s/has/have/

An ambiguity here comes from the mixture of plural and uncountable for
"fixes" vs "... work".

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

rely on spinlocks instead (as pointed out by Wolfram Sang). Tested this

The sentence just ends after "instead". I think you meant to say "instead, let's allow building the driver on SMP kernels again." or something like that.

FWIW I can see nothing wrong with the sentence, "... get rid of cli/sti
and rely on spinlocks instead." seems like standard English usage to me.

Yes, I was probably misreading it. Either way, I think the v2 looks fine.

Adrian

Signature · 4 lines
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913