diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2022-01-07 07:36:44 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-01-10 09:18:16 +0100 |
commit | daafe431e65e65d98f388f77673810bed93b58f8 (patch) | |
tree | 43c513846aaab2d038beda4676a3a79e1b3cdfd3 | |
parent | 9c1a78f959dd751c9b8ceb31e44926afc89d7769 (diff) | |
download | barebox-daafe431e65e65d98f388f77673810bed93b58f8.tar.gz barebox-daafe431e65e65d98f388f77673810bed93b58f8.tar.xz |
x86: <asm/io.h>: fix outl/outsl access size
outl so far behaved like outb, probably due to a copy-paste error when
it was first added. We have three users in-tree for outl:
* drivers/serial/serial_ns16550_pci.c
only for handling a Quatech qurik, which probably no one ever needed
* drivers/serial/serial_ns16550.c
For platform drivers with a 4 byte I/O port resource. Only possible
user is x86 and that has a 1 byte I/O port resource. Thus no one
used this either.
* drivers/watchdog/itco_wdt.c
Here it indeed triggers a bug, although in my testing the WDAT
was functional without.
Fix this up so new code doesn't have to track this down.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20220107063644.22595-1-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | arch/x86/include/asm/io.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/include/asm/io.h b/arch/x86/include/asm/io.h index 0971727bc6..23854128cb 100644 --- a/arch/x86/include/asm/io.h +++ b/arch/x86/include/asm/io.h @@ -63,13 +63,13 @@ BUILDIO(l, , int) #define outb outb #define outw outw -#define outl outb +#define outl outl #define inb inb #define inw inw #define inl inl #define outsb outsb #define outsw outsw -#define outsl outsb +#define outsl outsl #define insb insb #define insw insw #define insl insl |