Re: [PATCH v2] serial: sifive: Switch to nbcon console
From: Ryo Takakura
Date: Thu Apr 10 2025 - 10:24:53 EST
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@xxxxxxxxx>
>> Reviewed-by: John Ogness <john.ogness@xxxxxxxxxxxxx>
>
>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@xxxxxxxx>
Thanks for reviewing, I appreciate it!
I'll add your Reviewed-by with the comment for v3.
Sincerely,
Ryo Takakura
>Best Regards,
>Petr