[PATCH v2] serial: sifive: Switch to nbcon console

Ryo Takakura ryotkkr98 at gmail.com
Thu Apr 10 07:19:04 PDT 2025


Hi Petr!

On Thu, 10 Apr 2025 14:29:33 +0200, Petr Mladek wrote:
>On Sat 2025-04-05 23:59:15, Ryo Takakura wrote:
>> 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 at gmail.com>
>> Reviewed-by: John Ogness <john.ogness at linutronix.de>
>
>I do not have the hardware around so I could not test it.
>But the code looks good. With the added comment (reported
>by the robot):
>
>Reviewed-by: Petr Mladek <pmladek at suse.com>

Thanks for reviewing, I appreciate it!
I'll add your Reviewed-by with the comment for v3.

Sincerely,
Ryo Takakura

>Best Regards,
>Petr



More information about the linux-riscv mailing list