base baud reporting strange on efm32
Hello Kees, hello Greg,
since commit
7d12b97 (serial: report base_baud after initialization)
my efm32 machine says during startup:
4000e400.uart: ttyefm4 at MMIO 0x4000e400 (irq = 25, base_baud = 0) is a efm32-uart
Is this "= 0" expected or is there something wrong in the driver?
(Sorry for not replying to the patch, but I didn't find it neither on lkml nor on linux-serial.)
Best regards
Uwe
Signature · 6 lines
Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | http://www.pengutronix.de/ | -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Greg Kroah-Hartman
maintainerQuoted 8 lines · Uwe Kleine-König
Hello Kees, hello Greg,
since commit
7d12b97 (serial: reportbase_baudafter initialization)
my efm32 machine says during startup:4000e400.uart: ttyefm4 at MMIO 0x4000e400 (irq = 25, base_baud = 0) is a efm32-uartIs this "= 0" expected or is there something wrong in the driver?
Does the hardware work properly? That's the best test of this, right?
thanks,
greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 11 lines · Greg Kroah-Hartman
Quoted 8 lines · Uwe Kleine-König
Hello Kees, hello Greg,
since commit
7d12b97 (serial: reportbase_baudafter initialization)
my efm32 machine says during startup:4000e400.uart: ttyefm4 at MMIO 0x4000e400 (irq = 25, base_baud = 0) is a efm32-uartIs this "= 0" expected or is there something wrong in the driver?
Does the hardware work properly? That's the best test of this, right?
Yes, it works fine. Still I wonder if there is a problem that the driver doesn't fill in port.uartclk early enough. In the efm32-uart driver (i.e. drivers/tty/serial/efm32-uart.c) this member is only assigned to in .startup.
Best regards
Uwe
Signature · 6 lines
Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | http://www.pengutronix.de/ | -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 9 lines · Uwe Kleine-König
Quoted 8 lines · Greg Kroah-Hartman
Quoted 7 lines · Uwe Kleine-König
Hello Kees, hello Greg,
since commit
7d12b97 (serial: reportbase_baudafter initialization)
my efm32 machine says during startup:4000e400.uart: ttyefm4 at MMIO 0x4000e400 (irq = 25, base_baud = 0) is a efm32-uart
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Is this "= 0" expected or is there something wrong in the driver?
Does the hardware work properly? That's the best test of this, right?
Yes, it works fine. Still I wonder if there is a problem that the driver doesn't fill in port.uartclk early enough. In the efm32-uart driver (i.e.
drivers/tty/serial/efm32-uart.c) this member is only assigned to in .startup.
Hm, yeah, it looks like uart_add_one_port() (which ultimately makes the printk call) is called in efm32_uart_probe(), but uartclk gets set during serial open (via efm32_uart_startup()).
So, it seems this "0" report is harmless. If the efm32 driver wants to have something meaningful there, I guess the clk code needs to move around.
-Kees
Signature · 6 lines
Kees Cook Chrome OS Security -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html