diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2025-01-24 19:10:47 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-04 16:44:41 +0300 |
commit | e8486bd50ecf63c9a1e25271f258a8d959f2672f (patch) | |
tree | cfa4185ca58e4d945bd8dced38ff9e4f57319e35 /tools/perf/scripts/python | |
parent | 166ac2bba167d575e7146beaa66093bc7c072f43 (diff) | |
download | linux-e8486bd50ecf63c9a1e25271f258a8d959f2672f.tar.xz |
serial: port: Always update ->iotype in __uart_read_properties()
The documentation of the __uart_read_properties() states that
->iotype member is always altered after the function call, but
the code doesn't do that in the case when use_defaults == false
and the value of reg-io-width is unsupported. Make sure the code
follows the documentation.
Note, the current users of the uart_read_and_validate_port_properties()
will fail and the change doesn't affect their behaviour, neither
users of uart_read_port_properties() will be affected since the
alteration happens there even in the current code flow.
Fixes: e894b6005dce ("serial: port: Introduce a common helper to read properties")
Cc: stable <stable@kernel.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20250124161530.398361-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions