serial: 8250: Fix serial port driver for OF platform devices
PATCH 1/1 serial: 8250: Fix serial port driver for OF platform devices
Commit afd7f88f1577 ("serial: 8250: move of_serial code to 8250 directory") moved the serial port driver for Open Firmware platform devices from one directory to another, but a mixup in Kconfig options resulted in the driver never being built. This results in runtime failures for some xtensa, openrisc, and powerpc configurations.
---
It might make sense to merge this patch with the commit introducing the problem.
drivers/tty/serial/8250/8250_of.c | 3 +-- drivers/tty/serial/8250/Kconfig | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-)
drivers/tty/serial/8250/8250_of.c +1 -2
@@ -18,10 +18,9 @@#include <linux/of_address.h> #include <linux/of_irq.h> #include <linux/of_platform.h> -#include <linux/nwpserial.h> #include <linux/clk.h> -#include "8250/8250.h" +#include "8250.h" struct of_serial_info {struct clk *clk;
drivers/tty/serial/8250/Kconfig +5 -0
@@ -378,9 +378,14 @@ config SERIAL_8250_MID present on the UART found on Intel Medfield SOC and various other Intel platforms. +config SERIAL_8250_OF + tristate + depends on SERIAL_8250 && OF + config SERIAL_OF_PLATFORM tristate "Devicetree based probing for 8250 ports" depends on SERIAL_8250 && OF + select SERIAL_8250_OF help This option is used for all 8250 compatible serial ports that are probed through devicetree, including Open Firmware based
Signature · 1 line
2.1.4
Quoted 11 lines · On Wednesday 06 January 2016 16:23:41 Guenter Roeck wrote:
Commit
afd7f88f1577("serial: 8250: moveof_serialcode to 8250 directory") moved the serial port driver for Open Firmware platform devices from one directory to another, but a mixup inKconfigoptions resulted in the driver never being built. This results in runtime failures for some xtensa, openrisc, and powerpc configurations.Fixes afd7f88f1577 ("serial: 8250: move of_serial code to 8250 directory")Cc Arnd Bergmann <[email protected]>Signed-off-by Guenter Roeck <[email protected]>---
It might make sense to merge this patch with the commit introducing the problem.
Quoted 41 lines
drivers/tty/serial/8250/8250_of.c | 3 +-- drivers/tty/serial/8250/Kconfig | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-)drivers/tty/serial/8250/8250_of.c +1
-2@@ -18,10 +18,9 @@#include <linux/of_address.h> #include <linux/of_irq.h> #include <linux/of_platform.h> -#include <linux/nwpserial.h> #include <linux/clk.h> -#include "8250/8250.h" +#include "8250.h" struct of_serial_info {struct clk *clk;drivers/tty/serial/8250/Kconfig +5
-0@@ -378,9 +378,14 @@ config SERIAL_8250_MID present on the UART found on Intel Medfield SOC and various other Intel platforms. +config SERIAL_8250_OF + tristate + depends on SERIAL_8250 && OF + config SERIAL_OF_PLATFORM tristate "Devicetree based probing for 8250 ports" depends on SERIAL_8250 && OF + select SERIAL_8250_OF help This option is used for all 8250 compatible serial ports that are probed through devicetree, including Open Firmware based
Greg Kroah-Hartman
maintainerQuoted 9 lines · Guenter Roeck
Commit
afd7f88f1577("serial: 8250: moveof_serialcode to 8250 directory") moved the serial port driver for Open Firmware platform devices from one directory to another, but a mixup inKconfigoptions resulted in the driver never being built. This results in runtime failures for some xtensa, openrisc, and powerpc configurations.Fixes afd7f88f1577 ("serial: 8250: move of_serial code to 8250 directory")Cc Arnd Bergmann <[email protected]>Signed-off-by Guenter Roeck <[email protected]>
I have a patch from Peter that fixes this a bit differently, I'll go queue that up now, thanks.
greg k-h