diff options
author | Andy Shevchenko <[email protected]> | 2020-04-02 20:20:26 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2020-04-16 16:16:52 +0200 |
commit | 0f87aa66e8c314f95c00eeff978c8a0b41e05d50 (patch) | |
tree | 490c728a55e16b8f1ecda764c065cdf650c0f148 /tools/perf/scripts/python/Perf-Trace-Util | |
parent | 18cc7ac8a28e28cd005c2475f52576cfe10cabfb (diff) |
serial: sunhv: Initialize lock for non-registered console
The commit a3cb39d258ef
("serial: core: Allow detach and attach serial device for console")
changed a bit logic behind lock initialization since for most of the console
driver it's supposed to have lock already initialized even if console is not
enabled. However, it's not the case for Sparc HV console.
Initialize lock explicitly in the ->probe().
Note, there is still an open question should or shouldn't not this driver
register console properly.
Fixes: a3cb39d258ef ("serial: core: Allow detach and attach serial device for console")
Reported-by: Anatoly Pugachev <[email protected]>
Cc: David Miller <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
Tested-by: Anatoly Pugachev <[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/Perf-Trace-Util')
0 files changed, 0 insertions, 0 deletions