]> www.infradead.org Git - users/jedix/linux-maple.git/commit
serial: 8250: dw: enable using pdata with ACPI
authorMarcin Wojtas <mw@semihalf.com>
Mon, 20 Jun 2022 12:10:46 +0000 (14:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jun 2022 12:45:49 +0000 (14:45 +0200)
commitcd16044d7c38d76fe2f9b71a06619e9590e3e401
tree744cc0f25c61aa208066be51a1d1d631f6ff88b1
parenta111daf0c53ae91e71fd2bfe7497862d14132e3e
serial: 8250: dw: enable using pdata with ACPI

Commit ffd381445eac ("serial: 8250: dw: Move the USR register to pdata")
caused NULL-pointer dereference when booting with ACPI by unconditional
usage of the recently added pdata.

In order to fix that and prevent similar issues in future, hook the
default version of this structure in dw8250_acpi_match table.
While at it, sort all entries alphabetically.

Fixes: ffd381445eac ("serial: 8250: dw: Move the USR register to pdata")
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Marcin Wojtas <mw@semihalf.com>
Link: https://lore.kernel.org/r/20220620121046.1307412-1-mw@semihalf.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_dw.c