]> git.baikalelectronics.ru Git - kernel.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)
commit7b7f7b9bb9ab5416cada1cc3e712fd15e0f81e64
tree744cc0f25c61aa208066be51a1d1d631f6ff88b1
parent08aafa0d475a08e31a13403e9df41c7179f4bdcd
serial: 8250: dw: enable using pdata with ACPI

Commit 4cc50a5a41f7 ("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: 4cc50a5a41f7 ("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