serial: 8250_pnp: Support configurable reg shift property
authorGuanbing Huang <albanhuang@tencent.com>
Tue, 16 Apr 2024 03:16:59 +0000 (11:16 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Apr 2024 11:14:30 +0000 (13:14 +0200)
commit64c79dfbc45863821e172a606f453b39c8a8be6b
treed4a48e0336c765201baebb935c43d95388ea16a3
parent18ba7f2d99f698251294fe9521da3f00d03f96aa
serial: 8250_pnp: Support configurable reg shift property

The 16550a serial port based on the ACPI table requires obtaining the
reg-shift attribute. In the ACPI scenario, If the reg-shift property
is not configured like in DTS, the 16550a serial driver cannot read or
write controller registers properly during initialization.

Signed-off-by: Guanbing Huang <albanhuang@tencent.com>
Suggested-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Bing Fan <tombinfan@tencent.com>
Tested-by: Linheng Du <dylanlhdu@tencent.com>
Link: https://lore.kernel.org/r/4726ecea8f7bfbfe42501b4f6ad9fe5b38994574.1713234515.git.albanhuang@tencent.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_pnp.c