diff options
| author | Andy Shevchenko <[email protected]> | 2025-01-24 16:10:46 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2025-02-04 13:44:35 +0000 |
| commit | 166ac2bba167d575e7146beaa66093bc7c072f43 (patch) | |
| tree | 19a516dceb8cc77c7b7dd2e64c65b8d316076fb5 /tools/testing/selftests/net/lib/py/utils.py | |
| parent | serial: sc16is7xx: Fix IRQ number check behavior (diff) | |
| download | kernel-166ac2bba167d575e7146beaa66093bc7c072f43.tar.gz kernel-166ac2bba167d575e7146beaa66093bc7c072f43.zip | |
serial: port: Assign ->iotype correctly when ->iobase is set
Currently the ->iotype is always assigned to the UPIO_MEM when
the respective property is not found. However, this will not
support the cases when user wants to have UPIO_PORT to be set
or preserved. Support this scenario by checking ->iobase value
and default the ->iotype respectively.
Fixes: 1117a6fdc7c1 ("serial: 8250_of: Switch to use uart_read_port_properties()")
Fixes: e894b6005dce ("serial: port: Introduce a common helper to read properties")
Cc: stable <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions
