aboutsummaryrefslogtreecommitdiff
path: root/include/linux/serial_core.h
diff options
context:
space:
mode:
authorGravatar Tony Lindgren <tony@atomide.com> 2023-08-11 13:36:45 +0300
committerGravatar Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2023-08-11 21:19:22 +0200
commit04c7f60ca477ffbf7b7910320482335050f0d23a (patch)
treea3e6f4dfb824714970e71c25b6d1f864033b0c97 /include/linux/serial_core.h
parentserial: 8250: drop lockdep annotation from serial8250_clear_IER() (diff)
downloadlinux-04c7f60ca477ffbf7b7910320482335050f0d23a.tar.gz
linux-04c7f60ca477ffbf7b7910320482335050f0d23a.tar.bz2
linux-04c7f60ca477ffbf7b7910320482335050f0d23a.zip
serial: core: Fix serial core port id, including multiport devices
We want to fix the serial core port DEVNAME to use a port id of the hardware specific controller port instance instead of the port->line. For example, the 8250 driver sets up a number of serial8250 ports initially that can be inherited by the hardware specific driver. At that the port->line no longer decribes the port's relation to the serial core controller instance. Let's fix the issue by assigning port->port_id for each serial core controller port instance. Fixes: 7d695d83767c ("serial: core: Fix serial_base_match() after fixing controller port name") Tested-by: Guenter Roeck <linux@roeck-us.net> Reviewed-by: Dhruva Gole <d-gole@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20230811103648.2826-1-tony@atomide.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/serial_core.h')
0 files changed, 0 insertions, 0 deletions