public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] platform: Handle HAS_IOPORT dependencies
@ 2024-04-05 13:41 Niklas Schnelle
  2024-04-05 13:41 ` [PATCH 1/1] platform: add " Niklas Schnelle
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Niklas Schnelle @ 2024-04-05 13:41 UTC (permalink / raw)
  To: Benson Leung, Tzung-Bi Shih
  Cc: chrome-platform, Arnd Bergmann, Heiko Carstens, linux-kernel,
	Niklas Schnelle

Hi Benson, Tzung-Bi,

This is a follow up in my ongoing effort of making inb()/outb() and
similar I/O port accessors compile-time optional. Previously I sent this
as a treewide series titled "treewide: Remove I/O port accessors for
HAS_IOPORT=n" with the latest being its 5th version[0]. With a significant
subset of patches merged I've changed over to per-subsystem series. These
series are stand alone and should be merged via the relevant tree such
that with all subsystems complete we can follow this up with the final
patch that will make the I/O port accessors compile-time optional.

The current state of the full series with changes to the remaining subsystems
and the aforementioned final patch can be found for your convenience on my
git.kernel.org tree in the has_ioport branch[1]. As for compile-time vs runtime
see Linus' reply to my first attempt[2].

Thanks,
Niklas

[0] https://lore.kernel.org/all/20230522105049.1467313-1-schnelle@linux.ibm.com/
[1] https://git.kernel.org/pub/scm/linux/kernel/git/niks/linux.git/log/?h=has_ioport
[2] https://lore.kernel.org/lkml/CAHk-=wg80je=K7madF4e7WrRNp37e3qh6y10Svhdc7O8SZ_-8g@mail.gmail.com/

Niklas Schnelle (1):
  platform: add HAS_IOPORT dependencies

 drivers/platform/chrome/Kconfig          | 1 +
 drivers/platform/chrome/wilco_ec/Kconfig | 1 +
 2 files changed, 2 insertions(+)

-- 
2.40.1


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

* [PATCH 1/1] platform: add HAS_IOPORT dependencies
  2024-04-05 13:41 [PATCH 0/1] platform: Handle HAS_IOPORT dependencies Niklas Schnelle
@ 2024-04-05 13:41 ` Niklas Schnelle
  2024-04-08  6:16   ` Tzung-Bi Shih
  2024-04-08  6:20 ` [PATCH 0/1] platform: Handle " patchwork-bot+chrome-platform
  2024-04-08  6:20 ` patchwork-bot+chrome-platform
  2 siblings, 1 reply; 5+ messages in thread
From: Niklas Schnelle @ 2024-04-05 13:41 UTC (permalink / raw)
  To: Benson Leung, Tzung-Bi Shih
  Cc: chrome-platform, Arnd Bergmann, Heiko Carstens, linux-kernel,
	Niklas Schnelle

In a future patch HAS_IOPORT=n will disable inb()/outb() and friends at
compile time. We thus need to add HAS_IOPORT as dependency for those
drivers using them.

Co-developed-by: Arnd Bergmann <arnd@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@kernel.org>
Acked-by: Tzung-Bi Shih <tzungbi@kernel.org>
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
---
Note: This patch does not depend any not-yet-mainline HAS_IOPORT changes
and may be merged via subsystem specific trees at your earliest
convenience.

 drivers/platform/chrome/Kconfig          | 1 +
 drivers/platform/chrome/wilco_ec/Kconfig | 1 +
 2 files changed, 2 insertions(+)

diff --git a/drivers/platform/chrome/Kconfig b/drivers/platform/chrome/Kconfig
index 7a83346bfa53..073616b5b5a0 100644
--- a/drivers/platform/chrome/Kconfig
+++ b/drivers/platform/chrome/Kconfig
@@ -132,6 +132,7 @@ config CROS_EC_UART
 config CROS_EC_LPC
 	tristate "ChromeOS Embedded Controller (LPC)"
 	depends on CROS_EC && ACPI && (X86 || COMPILE_TEST)
+	depends on HAS_IOPORT
 	help
 	  If you say Y here, you get support for talking to the ChromeOS EC
 	  over an LPC bus, including the LPC Microchip EC (MEC) variant.
diff --git a/drivers/platform/chrome/wilco_ec/Kconfig b/drivers/platform/chrome/wilco_ec/Kconfig
index 49e8530ca0ac..d1648fb099ac 100644
--- a/drivers/platform/chrome/wilco_ec/Kconfig
+++ b/drivers/platform/chrome/wilco_ec/Kconfig
@@ -3,6 +3,7 @@ config WILCO_EC
 	tristate "ChromeOS Wilco Embedded Controller"
 	depends on X86 || COMPILE_TEST
 	depends on ACPI && CROS_EC_LPC && LEDS_CLASS
+	depends on HAS_IOPORT
 	help
 	  If you say Y here, you get support for talking to the ChromeOS
 	  Wilco EC over an eSPI bus. This uses a simple byte-level protocol
-- 
2.40.1


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

* Re: [PATCH 1/1] platform: add HAS_IOPORT dependencies
  2024-04-05 13:41 ` [PATCH 1/1] platform: add " Niklas Schnelle
@ 2024-04-08  6:16   ` Tzung-Bi Shih
  0 siblings, 0 replies; 5+ messages in thread
From: Tzung-Bi Shih @ 2024-04-08  6:16 UTC (permalink / raw)
  To: Niklas Schnelle
  Cc: Benson Leung, chrome-platform, Arnd Bergmann, Heiko Carstens,
	linux-kernel

On Fri, Apr 05, 2024 at 03:41:51PM +0200, Niklas Schnelle wrote:
> In a future patch HAS_IOPORT=n will disable inb()/outb() and friends at
> compile time. We thus need to add HAS_IOPORT as dependency for those
> drivers using them.
> 
> Co-developed-by: Arnd Bergmann <arnd@kernel.org>
> Signed-off-by: Arnd Bergmann <arnd@kernel.org>
> Acked-by: Tzung-Bi Shih <tzungbi@kernel.org>
> Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>

Applied with a slight title change.

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

* Re: [PATCH 0/1] platform: Handle HAS_IOPORT dependencies
  2024-04-05 13:41 [PATCH 0/1] platform: Handle HAS_IOPORT dependencies Niklas Schnelle
  2024-04-05 13:41 ` [PATCH 1/1] platform: add " Niklas Schnelle
@ 2024-04-08  6:20 ` patchwork-bot+chrome-platform
  2024-04-08  6:20 ` patchwork-bot+chrome-platform
  2 siblings, 0 replies; 5+ messages in thread
From: patchwork-bot+chrome-platform @ 2024-04-08  6:20 UTC (permalink / raw)
  To: Niklas Schnelle; +Cc: bleung, tzungbi, chrome-platform, arnd, hca, linux-kernel

Hello:

This patch was applied to chrome-platform/linux.git (for-kernelci)
by Tzung-Bi Shih <tzungbi@kernel.org>:

On Fri,  5 Apr 2024 15:41:50 +0200 you wrote:
> Hi Benson, Tzung-Bi,
> 
> This is a follow up in my ongoing effort of making inb()/outb() and
> similar I/O port accessors compile-time optional. Previously I sent this
> as a treewide series titled "treewide: Remove I/O port accessors for
> HAS_IOPORT=n" with the latest being its 5th version[0]. With a significant
> subset of patches merged I've changed over to per-subsystem series. These
> series are stand alone and should be merged via the relevant tree such
> that with all subsystems complete we can follow this up with the final
> patch that will make the I/O port accessors compile-time optional.
> 
> [...]

Here is the summary with links:
  - [1/1] platform: add HAS_IOPORT dependencies
    https://git.kernel.org/chrome-platform/c/3b89336c9ccf

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



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

* Re: [PATCH 0/1] platform: Handle HAS_IOPORT dependencies
  2024-04-05 13:41 [PATCH 0/1] platform: Handle HAS_IOPORT dependencies Niklas Schnelle
  2024-04-05 13:41 ` [PATCH 1/1] platform: add " Niklas Schnelle
  2024-04-08  6:20 ` [PATCH 0/1] platform: Handle " patchwork-bot+chrome-platform
@ 2024-04-08  6:20 ` patchwork-bot+chrome-platform
  2 siblings, 0 replies; 5+ messages in thread
From: patchwork-bot+chrome-platform @ 2024-04-08  6:20 UTC (permalink / raw)
  To: Niklas Schnelle; +Cc: bleung, tzungbi, chrome-platform, arnd, hca, linux-kernel

Hello:

This patch was applied to chrome-platform/linux.git (for-next)
by Tzung-Bi Shih <tzungbi@kernel.org>:

On Fri,  5 Apr 2024 15:41:50 +0200 you wrote:
> Hi Benson, Tzung-Bi,
> 
> This is a follow up in my ongoing effort of making inb()/outb() and
> similar I/O port accessors compile-time optional. Previously I sent this
> as a treewide series titled "treewide: Remove I/O port accessors for
> HAS_IOPORT=n" with the latest being its 5th version[0]. With a significant
> subset of patches merged I've changed over to per-subsystem series. These
> series are stand alone and should be merged via the relevant tree such
> that with all subsystems complete we can follow this up with the final
> patch that will make the I/O port accessors compile-time optional.
> 
> [...]

Here is the summary with links:
  - [1/1] platform: add HAS_IOPORT dependencies
    https://git.kernel.org/chrome-platform/c/3b89336c9ccf

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



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

end of thread, other threads:[~2024-04-08  6:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-05 13:41 [PATCH 0/1] platform: Handle HAS_IOPORT dependencies Niklas Schnelle
2024-04-05 13:41 ` [PATCH 1/1] platform: add " Niklas Schnelle
2024-04-08  6:16   ` Tzung-Bi Shih
2024-04-08  6:20 ` [PATCH 0/1] platform: Handle " patchwork-bot+chrome-platform
2024-04-08  6:20 ` patchwork-bot+chrome-platform

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