Skip to content

Commit b084116

Browse files
ossilatoramalon
authored andcommitted
MIPS: AR7: Ensure that serial ports are properly set up
Without UPF_FIXED_TYPE, the data from the PORT_AR7 uart_config entry is never copied, resulting in a dead port. Fixes: 154615d ("MIPS: AR7: Use correct UART port type") Signed-off-by: Oswald Buddenhagen <[email protected]> [jonas.gorski: add Fixes tag] Signed-off-by: Jonas Gorski <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Cc: Ralf Baechle <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Yoshihiro YUNOMAE <[email protected]> Cc: Nicolas Schichan <[email protected]> Cc: Oswald Buddenhagen <[email protected]> Cc: [email protected] Cc: [email protected] Cc: <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/17543/ Signed-off-by: James Hogan <[email protected]>
1 parent e6b03ab commit b084116

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/mips/ar7/platform.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,7 @@ static int __init ar7_register_uarts(void)
575575
uart_port.type = PORT_AR7;
576576
uart_port.uartclk = clk_get_rate(bus_clk) / 2;
577577
uart_port.iotype = UPIO_MEM32;
578+
uart_port.flags = UPF_FIXED_TYPE;
578579
uart_port.regshift = 2;
579580

580581
uart_port.line = 0;

0 commit comments

Comments
 (0)