[Spice-devel] [RFC 26/32] drm: handle HAS_IOPORT dependencies

2021-12-27 Thread Niklas Schnelle
just skip this as for example s390 which doesn't have I/O port support also doesen't support suspend/resume. Co-developed-by: Arnd Bergmann Signed-off-by: Arnd Bergmann Signed-off-by: Niklas Schnelle --- drivers/gpu/drm/qxl/Kconfig | 1 + drivers/gpu/drm/tiny/Kconfig | 1 + drive

[Spice-devel] [RFC v2 08/39] drm: handle HAS_IOPORT dependencies

2022-04-29 Thread Niklas Schnelle
fined. There is also a direct and hard coded use in cirrus.c which according to the comment is only necessary during resume. Let's just skip this as for example s390 which doesn't have I/O port support also doesen't support suspend/resume. Co-developed-by: Arnd Bergmann Signed-off

Re: [Spice-devel] [PATCH 31/37] drm: handle HAS_IOPORT dependencies

2022-04-29 Thread Niklas Schnelle
On Fri, 2022-04-29 at 15:50 +0200, Niklas Schnelle wrote: > In a future patch HAS_IOPORT=n will result in inb()/outb() and friends > not being declared. We thus need to add HAS_IOPORT as dependency for > those drivers using them. There is also a direct and hard coded use in > ci

[Spice-devel] [PATCH 31/37] drm: handle HAS_IOPORT dependencies

2022-04-29 Thread Niklas Schnelle
just skip this as for example s390 which doesn't have I/O port support also doesen't support suspend/resume. Co-developed-by: Arnd Bergmann Signed-off-by: Niklas Schnelle --- drivers/gpu/drm/qxl/Kconfig | 1 + drivers/gpu/drm/tiny/Kconfig | 1 + drivers/gpu/drm/tiny/cirrus.c | 2 ++

[Spice-devel] [PATCH v3 07/38] drm: handle HAS_IOPORT dependencies

2023-03-14 Thread Niklas Schnelle
fined. There is also a direct and hard coded use in cirrus.c which according to the comment is only necessary during resume. Let's just skip this as for example s390 which doesn't have I/O port support also doesen't support suspend/resume. Co-developed-by: Arnd Bergmann Signed-off

Re: [Spice-devel] [PATCH v3 07/38] drm: handle HAS_IOPORT dependencies

2023-03-23 Thread Niklas Schnelle
On Wed, 2023-03-15 at 13:54 +0200, Jani Nikula wrote: > On Tue, 14 Mar 2023, Niklas Schnelle wrote: > > In a future patch HAS_IOPORT=n will result in inb()/outb() and friends > > not being declared. We thus need to add HAS_IOPORT as dependency for > > those drivers using them

[Spice-devel] [PATCH v4 07/41] drm: handle HAS_IOPORT dependencies

2023-05-16 Thread Niklas Schnelle
ff-by: Arnd Bergmann Signed-off-by: Niklas Schnelle --- Note: The HAS_IOPORT Kconfig option was added in v6.4-rc1 so per-subsystem patches may be applied independently drivers/gpu/drm/qxl/Kconfig | 1 + drivers/gpu/drm/tiny/bochs.c | 17 + drivers/gpu/drm/tiny/cirrus.c | 2

[Spice-devel] [PATCH v5 09/44] drm: handle HAS_IOPORT dependencies

2023-05-24 Thread Niklas Schnelle
ff-by: Arnd Bergmann Signed-off-by: Niklas Schnelle --- drivers/gpu/drm/qxl/Kconfig | 1 + drivers/gpu/drm/tiny/bochs.c | 17 + drivers/gpu/drm/tiny/cirrus.c | 2 ++ 3 files changed, 20 insertions(+) diff --git a/drivers/gpu/drm/qxl/Kconfig b/drivers/gpu/drm/qxl/Kconfi

[PATCH v7 4/5] tty: serial: handle HAS_IOPORT dependencies

2024-10-09 Thread Niklas Schnelle
a device can't be supported with the current configuration. Co-developed-by: Arnd Bergmann Signed-off-by: Arnd Bergmann Signed-off-by: Niklas Schnelle --- drivers/tty/Kconfig | 4 ++-- drivers/tty/serial/8250/8250_early.c | 4 drivers/tty/serial/8250/8250_

[PATCH v8 4/5] tty: serial: handle HAS_IOPORT dependencies

2024-10-09 Thread Niklas Schnelle
a device can't be supported with the current configuration. Co-developed-by: Arnd Bergmann Signed-off-by: Arnd Bergmann Signed-off-by: Niklas Schnelle --- drivers/tty/Kconfig | 4 ++-- drivers/tty/serial/8250/8250_early.c | 4 drivers/tty/serial/8250/8250_

Re: [PATCH v6 4/5] tty: serial: handle HAS_IOPORT dependencies

2024-10-09 Thread Niklas Schnelle
On Tue, 2024-10-08 at 10:16 +0200, Niklas Schnelle wrote: > On Mon, 2024-10-07 at 22:09 +0100, Maciej W. Rozycki wrote: > > On Mon, 7 Oct 2024, Niklas Schnelle wrote: > > > > > diff --git a/drivers/tty/serial/8250/8250_pci.c > > > b/drivers/tty/s

Re: [PATCH v7 4/5] tty: serial: handle HAS_IOPORT dependencies

2024-10-09 Thread Niklas Schnelle
On Tue, 2024-10-08 at 13:32 +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 unconditionally. Some 8250 serial drivers support > MMIO

[PATCH v8 5/5] asm-generic/io.h: Remove I/O port accessors for HAS_IOPORT=n

2024-10-09 Thread Niklas Schnelle
=k7madf4e7wrrnp37e3qh6y10svhdc7o8sz_...@mail.gmail.com/ Co-developed-by: Arnd Bergmann Signed-off-by: Arnd Bergmann Signed-off-by: Niklas Schnelle --- include/asm-generic/io.h | 60 1 file changed, 60 insertions(+) diff --git a/include/asm-generic/io.h b/include/asm-generic

[PATCH v7 0/5] treewide: Remove I/O port accessors for HAS_IOPORT=n

2024-10-09 Thread Niklas Schnelle
Thanks, Niklas [0] https://lore.kernel.org/all/20230522105049.1467313-1-schne...@linux.ibm.com/ [1] https://git.kernel.org/pub/scm/linux/kernel/git/niks/linux.git [2] https://lore.kernel.org/lkml/CAHk-=wg80je=k7madf4e7wrrnp37e3qh6y10svhdc7o8sz_...@mail.gmail.com/ Signed-off-by: Niklas Schnelle

[PATCH v7 1/5] hexagon: Don't select GENERIC_IOMAP without HAS_IOPORT support

2024-10-09 Thread Niklas Schnelle
veloped-by: Arnd Bergmann Signed-off-by: Arnd Bergmann Signed-off-by: Niklas Schnelle --- arch/hexagon/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/hexagon/Kconfig b/arch/hexagon/Kconfig index e233b5efa2761e35c416cbc147f6b6422a7c5b8f..5ea1bf4b7d4f5471a9c39ee9fb5c701455d213

[PATCH v8 1/5] hexagon: Don't select GENERIC_IOMAP without HAS_IOPORT support

2024-10-09 Thread Niklas Schnelle
veloped-by: Arnd Bergmann Signed-off-by: Arnd Bergmann Signed-off-by: Niklas Schnelle --- arch/hexagon/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/hexagon/Kconfig b/arch/hexagon/Kconfig index e233b5efa2761e35c416cbc147f6b6422a7c5b8f..5ea1bf4b7d4f5471a9c39ee9fb5c701455d213

[PATCH v8 0/5] treewide: Remove I/O port accessors for HAS_IOPORT=n

2024-10-09 Thread Niklas Schnelle
Thanks, Niklas [0] https://lore.kernel.org/all/20230522105049.1467313-1-schne...@linux.ibm.com/ [1] https://git.kernel.org/pub/scm/linux/kernel/git/niks/linux.git [2] https://lore.kernel.org/lkml/CAHk-=wg80je=k7madf4e7wrrnp37e3qh6y10svhdc7o8sz_...@mail.gmail.com/ Signed-off-by: Niklas Schnelle

[PATCH v8 3/5] drm: handle HAS_IOPORT dependencies

2024-10-09 Thread Niklas Schnelle
Bergmann Signed-off-by: Niklas Schnelle --- drivers/gpu/drm/gma500/Kconfig | 2 +- drivers/gpu/drm/qxl/Kconfig| 1 + drivers/gpu/drm/tiny/bochs.c | 17 + drivers/gpu/drm/tiny/cirrus.c | 2 ++ drivers/gpu/drm/xe/Kconfig | 2 +- 5 files changed, 22 insertions(+),

[PATCH v7 3/5] drm: handle HAS_IOPORT dependencies

2024-10-09 Thread Niklas Schnelle
Bergmann Signed-off-by: Niklas Schnelle --- drivers/gpu/drm/gma500/Kconfig | 2 +- drivers/gpu/drm/qxl/Kconfig| 1 + drivers/gpu/drm/tiny/bochs.c | 17 + drivers/gpu/drm/tiny/cirrus.c | 2 ++ drivers/gpu/drm/xe/Kconfig | 2 +- 5 files changed, 22 insertions(+),

[PATCH v7 2/5] Bluetooth: add HAS_IOPORT dependencies

2024-10-09 Thread 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 Signed-off-by: Arnd Bergmann Signed-off-by: Niklas Schnelle --- drivers/bluetooth/Kconfig | 6

[PATCH v8 2/5] Bluetooth: add HAS_IOPORT dependencies

2024-10-09 Thread 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 Signed-off-by: Arnd Bergmann Signed-off-by: Niklas Schnelle --- drivers/bluetooth/Kconfig | 6

[PATCH v7 5/5] asm-generic/io.h: Remove I/O port accessors for HAS_IOPORT=n

2024-10-09 Thread Niklas Schnelle
=k7madf4e7wrrnp37e3qh6y10svhdc7o8sz_...@mail.gmail.com/ Co-developed-by: Arnd Bergmann Signed-off-by: Arnd Bergmann Signed-off-by: Niklas Schnelle --- include/asm-generic/io.h | 60 1 file changed, 60 insertions(+) diff --git a/include/asm-generic/io.h b/include/asm-generic

Re: [PATCH v6 4/5] tty: serial: handle HAS_IOPORT dependencies

2024-10-08 Thread Niklas Schnelle
On Mon, 2024-10-07 at 22:09 +0100, Maciej W. Rozycki wrote: > On Mon, 7 Oct 2024, Niklas Schnelle wrote: > > > diff --git a/drivers/tty/serial/8250/8250_pci.c > > b/drivers/tty/serial/8250/8250_pci.c > > index > > 6709b6a5f3

[PATCH v6 2/5] Bluetooth: add HAS_IOPORT dependencies

2024-10-07 Thread 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 Signed-off-by: Arnd Bergmann Signed-off-by: Niklas Schnelle --- drivers/bluetooth/Kconfig | 6

[PATCH v6 0/5] treewide: Remove I/O port accessors for HAS_IOPORT=n

2024-10-07 Thread Niklas Schnelle
PCI driver also handle fintek and moxi quirks - In 8250 ports code handle um's defined(__i385__) && defined(CONFIG_HAS_IOPORT) case - Use IS_ENABLED() early return also in is_upf_fourport() __always_inline to force constant folding Signed-off-by: Niklas Schnelle --- Niklas Schnel

[PATCH v6 5/5] asm-generic/io.h: Remove I/O port accessors for HAS_IOPORT=n

2024-10-07 Thread Niklas Schnelle
=k7madf4e7wrrnp37e3qh6y10svhdc7o8sz_...@mail.gmail.com/ Co-developed-by: Arnd Bergmann Signed-off-by: Arnd Bergmann Signed-off-by: Niklas Schnelle --- include/asm-generic/io.h | 60 1 file changed, 60 insertions(+) diff --git a/include/asm-generic/io.h b/include/asm-generic

[PATCH v6 4/5] tty: serial: handle HAS_IOPORT dependencies

2024-10-07 Thread Niklas Schnelle
a device can't be supported with the current configuration. Co-developed-by: Arnd Bergmann Signed-off-by: Arnd Bergmann Signed-off-by: Niklas Schnelle --- drivers/tty/Kconfig | 4 +-- drivers/tty/serial/8250/8250_early.c | 4 +++ drivers/tty/serial/8250/8250_pci.c

[PATCH v6 3/5] drm: handle HAS_IOPORT dependencies

2024-10-07 Thread Niklas Schnelle
Bergmann Signed-off-by: Niklas Schnelle --- drivers/gpu/drm/gma500/Kconfig | 2 +- drivers/gpu/drm/qxl/Kconfig| 1 + drivers/gpu/drm/tiny/bochs.c | 17 + drivers/gpu/drm/tiny/cirrus.c | 2 ++ drivers/gpu/drm/xe/Kconfig | 2 +- 5 files changed, 22 insertions(+),

[PATCH v6 1/5] hexagon: Don't select GENERIC_IOMAP without HAS_IOPORT support

2024-10-07 Thread Niklas Schnelle
veloped-by: Arnd Bergmann Signed-off-by: Arnd Bergmann Signed-off-by: Niklas Schnelle --- arch/hexagon/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/hexagon/Kconfig b/arch/hexagon/Kconfig index e233b5efa2761e35c416cbc147f6b6422a7c5b8f..5ea1bf4b7d4f5471a9c39ee9fb5c701455d213

[PATCH v9 2/5] Bluetooth: add HAS_IOPORT dependencies

2024-10-27 Thread 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 Signed-off-by: Arnd Bergmann Signed-off-by: Niklas Schnelle --- drivers/bluetooth/Kconfig | 6

Re: [PATCH v8 3/5] drm: handle HAS_IOPORT dependencies

2024-10-27 Thread Niklas Schnelle
On Mon, Oct 21, 2024 at 01:18:20PM +0200, Niklas Schnelle wrote: > On Mon, 2024-10-21 at 12:58 +0200, Thomas Zimmermann wrote: > > Hi > > > > Am 21.10.24 um 12:08 schrieb Arnd Bergmann: > > > On Mon, Oct 21, 2024, at 07:52, Thomas Zimmermann wrote: > > >

[PATCH v9 3/5] drm: handle HAS_IOPORT dependencies

2024-10-27 Thread Niklas Schnelle
d Bergmann Acked-by: Lucas De Marchi # xe Signed-off-by: Niklas Schnelle --- drivers/gpu/drm/gma500/Kconfig | 2 +- drivers/gpu/drm/qxl/Kconfig| 2 +- drivers/gpu/drm/tiny/bochs.c | 19 ++- drivers/gpu/drm/tiny/cirrus.c | 2 ++ drivers/gpu/drm/xe/Kconfig | 2 +-

[PATCH v9 4/5] tty: serial: handle HAS_IOPORT dependencies

2024-10-27 Thread Niklas Schnelle
a device can't be supported with the current configuration. Co-developed-by: Arnd Bergmann Signed-off-by: Arnd Bergmann Acked-by: Greg Kroah-Hartman Reviewed-by: Maciej W. Rozycki Signed-off-by: Niklas Schnelle --- drivers/tty/Kconfig | 4 ++-- drivers/tty/serial

Re: [PATCH v8 3/5] drm: handle HAS_IOPORT dependencies

2024-10-27 Thread Niklas Schnelle
On Mon, 2024-10-21 at 12:58 +0200, Thomas Zimmermann wrote: > Hi > > Am 21.10.24 um 12:08 schrieb Arnd Bergmann: > > On Mon, Oct 21, 2024, at 07:52, Thomas Zimmermann wrote: > > > Am 08.10.24 um 14:39 schrieb Niklas Schnelle: > > d 100644 > > > > --- a

[PATCH v9 1/5] hexagon: Don't select GENERIC_IOMAP without HAS_IOPORT support

2024-10-27 Thread Niklas Schnelle
veloped-by: Arnd Bergmann Signed-off-by: Arnd Bergmann Signed-off-by: Niklas Schnelle --- arch/hexagon/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/hexagon/Kconfig b/arch/hexagon/Kconfig index e233b5efa2761e35c416cbc147f6b6422a7c5b8f..5ea1bf4b7d4f5471a9c39ee9fb5c701455d213

[PATCH v9 0/5] treewide: Remove I/O port accessors for HAS_IOPORT=n

2024-10-27 Thread Niklas Schnelle
Thanks, Niklas [0] https://lore.kernel.org/all/20230522105049.1467313-1-schne...@linux.ibm.com/ [1] https://git.kernel.org/pub/scm/linux/kernel/git/niks/linux.git [2] https://lore.kernel.org/lkml/CAHk-=wg80je=k7madf4e7wrrnp37e3qh6y10svhdc7o8sz_...@mail.gmail.com/ Signed-off-by: Niklas Schnelle

[PATCH v9 5/5] asm-generic/io.h: Remove I/O port accessors for HAS_IOPORT=n

2024-10-27 Thread Niklas Schnelle
=k7madf4e7wrrnp37e3qh6y10svhdc7o8sz_...@mail.gmail.com/ Co-developed-by: Arnd Bergmann Signed-off-by: Arnd Bergmann Signed-off-by: Niklas Schnelle --- include/asm-generic/io.h | 60 1 file changed, 60 insertions(+) diff --git a/include/asm-generic/io.h b/include/asm-generic

Re: [PATCH v9 0/5] treewide: Remove I/O port accessors for HAS_IOPORT=n

2024-10-27 Thread Niklas Schnelle
On Fri, 2024-10-25 at 13:41 +, Arnd Bergmann wrote: > On Thu, Oct 24, 2024, at 17:54, Niklas Schnelle wrote: > > Hi All, > > > > This is a follow up in my long running effort of making inb()/outb() and > > similar I/O port accessors compile-time optional. After init