MIPS-rb532-Fix-MMIO-UART-resource-registration.patch 644 B

1234567891011121314151617
  1. diff -Nur linux-4.19.320.orig/arch/mips/rb532/devices.c linux-4.19.320/arch/mips/rb532/devices.c
  2. --- linux-4.19.320.orig/arch/mips/rb532/devices.c 2024-08-19 05:32:18.000000000 +0200
  3. +++ linux-4.19.320/arch/mips/rb532/devices.c 2026-04-19 09:36:30.112899077 +0200
  4. @@ -225,11 +225,11 @@
  5. static struct plat_serial8250_port rb532_uart_res[] = {
  6. {
  7. .type = PORT_16550A,
  8. - .membase = (char *)KSEG1ADDR(REGBASE + UART0BASE),
  9. + .mapbase = REGBASE + UART0BASE,
  10. .irq = UART0_IRQ,
  11. .regshift = 2,
  12. .iotype = UPIO_MEM,
  13. - .flags = UPF_BOOT_AUTOCONF,
  14. + .flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP,
  15. },
  16. {
  17. .flags = 0,