public inbox for linux-alpha@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] i2c: i2c-elektor: Allow building on SMP kernels
@ 2025-11-22 12:26 Magnus Lindholm
  2025-11-22 13:29 ` John Paul Adrian Glaubitz
  0 siblings, 1 reply; 5+ messages in thread
From: Magnus Lindholm @ 2025-11-22 12:26 UTC (permalink / raw)
  To: linux-i2c, linux-kernel, linux-alpha
  Cc: andi.shyti, wsa+renesas, Magnus Lindholm

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.

Signed-off-by: Magnus Lindholm <linmag7@gmail.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 fd81e49638aa..9b1473d720a0 100644
--- a/drivers/i2c/busses/Kconfig
+++ b/drivers/i2c/busses/Kconfig
@@ -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
-- 
2.51.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] i2c: i2c-elektor: Allow building on SMP kernels
  2025-11-22 12:26 [PATCH] i2c: i2c-elektor: Allow building on SMP kernels Magnus Lindholm
@ 2025-11-22 13:29 ` John Paul Adrian Glaubitz
  2025-11-22 13:51   ` Magnus Lindholm
  2025-11-24 20:49   ` Maciej W. Rozycki
  0 siblings, 2 replies; 5+ messages in thread
From: John Paul Adrian Glaubitz @ 2025-11-22 13:29 UTC (permalink / raw)
  To: Magnus Lindholm, linux-i2c, linux-kernel, linux-alpha
  Cc: andi.shyti, wsa+renesas

Hi Magnus,

On Sat, 2025-11-22 at 13:26 +0100, Magnus Lindholm wrote:
> 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".

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

s/has/have/

> 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.

> driver on SMP kernel on Alpha/UP2000+ for a few days without any problems.
> 
> Signed-off-by: Magnus Lindholm <linmag7@gmail.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 fd81e49638aa..9b1473d720a0 100644
> --- a/drivers/i2c/busses/Kconfig
> +++ b/drivers/i2c/busses/Kconfig
> @@ -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

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] i2c: i2c-elektor: Allow building on SMP kernels
  2025-11-22 13:29 ` John Paul Adrian Glaubitz
@ 2025-11-22 13:51   ` Magnus Lindholm
  2025-11-24 20:49   ` Maciej W. Rozycki
  1 sibling, 0 replies; 5+ messages in thread
From: Magnus Lindholm @ 2025-11-22 13:51 UTC (permalink / raw)
  To: John Paul Adrian Glaubitz
  Cc: linux-i2c, linux-kernel, linux-alpha, andi.shyti, wsa+renesas

On Sat, Nov 22, 2025 at 2:29 PM John Paul Adrian Glaubitz
<glaubitz@physik.fu-berlin.de> wrote:
>
> Hi Magnus,
>
> On Sat, 2025-11-22 at 13:26 +0100, Magnus Lindholm wrote:
> > 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".
>
> > there has since been some fixes/cleanup work to get rid of cli/sti and
>
> s/has/have/
>
> > 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] i2c: i2c-elektor: Allow building on SMP kernels
  2025-11-22 13:29 ` John Paul Adrian Glaubitz
  2025-11-22 13:51   ` Magnus Lindholm
@ 2025-11-24 20:49   ` Maciej W. Rozycki
  2025-11-24 22:42     ` John Paul Adrian Glaubitz
  1 sibling, 1 reply; 5+ messages in thread
From: Maciej W. Rozycki @ 2025-11-24 20:49 UTC (permalink / raw)
  To: John Paul Adrian Glaubitz
  Cc: Magnus Lindholm, linux-i2c, linux-kernel, linux-alpha, andi.shyti,
	wsa+renesas

On Sat, 22 Nov 2025, John Paul Adrian Glaubitz wrote:

> > 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".

> > 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] i2c: i2c-elektor: Allow building on SMP kernels
  2025-11-24 20:49   ` Maciej W. Rozycki
@ 2025-11-24 22:42     ` John Paul Adrian Glaubitz
  0 siblings, 0 replies; 5+ messages in thread
From: John Paul Adrian Glaubitz @ 2025-11-24 22:42 UTC (permalink / raw)
  To: Maciej W. Rozycki
  Cc: Magnus Lindholm, linux-i2c, linux-kernel, linux-alpha, andi.shyti,
	wsa+renesas

On Mon, 2025-11-24 at 20:49 +0000, Maciej W. Rozycki wrote:
> On Sat, 22 Nov 2025, John Paul Adrian Glaubitz wrote:
> 
> > > 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".
> 
> > > 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

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-11-24 22:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-22 12:26 [PATCH] i2c: i2c-elektor: Allow building on SMP kernels Magnus Lindholm
2025-11-22 13:29 ` John Paul Adrian Glaubitz
2025-11-22 13:51   ` Magnus Lindholm
2025-11-24 20:49   ` Maciej W. Rozycki
2025-11-24 22:42     ` John Paul Adrian Glaubitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox