diff options
| author | Ryo Takakura <ryotkkr98@gmail.com> | 2025-04-12 09:25:44 +0900 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-04-15 14:37:43 +0200 |
| commit | 66f5f70ce07a5c4ad88709dc34c072673aaafa25 (patch) | |
| tree | 7844dc3e9110908e79d6012c6f1e409e767bfcf4 /scripts/lib/kdoc/kdoc_parser.py | |
| parent | 8bfabff0bfff8fbbe90673d1a557d15c42b4494a (diff) | |
serial: sifive: Switch to nbcon console
Add the necessary callbacks(write_atomic, write_thread, device_lock
and device_unlock) and CON_NBCON flag to switch the sifive console
driver to perform as nbcon console.
Both ->write_atomic() and ->write_thread() will check for console
ownership whenever they are accessing registers.
The ->device_lock()/unlock() will provide the additional serilization
necessary for ->write_thread() which is called from dedicated printing
thread.
Signed-off-by: Ryo Takakura <ryotkkr98@gmail.com>
Reviewed-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20250412002544.185038-1-ryotkkr98@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions
