Skip to content

: x86: Honor IO_DELAY IO port settings

Simon Kagstrom linux-serial lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2: serial8250: Use native_io_delay on the x86drivers/serial/8250.c+5 -75 replies
2/2: x86 real mode: Set delay port according to kernel configarch/x86/boot/boot.h+5 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2]: x86: Honor IO_DELAY IO port settings

Greetings!

The kernel can be configured to use IO port 0xed instead of port 0x80 for IO delay writes and some boards also require this to function properly. These two patches fix two places where port 0x80 is hardcoded.

* Patch 1: Use native_io_delay for the serial/8250 driver instead of always using 0x80.

* Patch 2: Honor CONFIG_IO_DELAY_0XED if set for real-mode boot code

The board we have works fine with using 0x80, but we're debugging a BIOS issue and are logging writes to port 0x80 (BIOS post codes). Avoiding the extra port 0x80 writes makes it easier to weed out the important information.

// Simon