diff options
author | Tony Lindgren <[email protected]> | 2023-06-01 17:14:44 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-06-01 16:45:50 +0100 |
commit | 539914240a01c7d68476d10c07b7f4f9a05d38ed (patch) | |
tree | 555e983fc18d3e2a7827dce6f19728da95fe4405 /tools/perf/scripts/python/intel-pt-events.py | |
parent | d0a396083e91e3f118c90afa95c91f8c243a6c11 (diff) |
serial: core: Fix probing serial_base_bus devices
If a physical serial port device driver uses arch_initcall() we fail to
probe the serial_base_bus devices and the serial port tx fails. This is
because as serial_base_bus uses module_initcall().
Let's fix the issue by changing serial_base_bus to use arch_initcall().
Let's also return an error if a driver attempts to call uart_add_one_port()
too early.
Reported-by: Marek Szyprowski <[email protected]>
Tested-by: Marek Szyprowski <[email protected]>
Closes: https://lore.kernel.org/linux-serial/[email protected]/T/#m6a40440fc04d551d27b147da8602e065c982a115
Fixes: 84a9582fd203 ("serial: core: Start managing serial controllers to enable runtime PM")
Signed-off-by: Tony Lindgren <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions