[lvc-project] [PATCH v2] serial: 8250_mtk: correct max baud rate in set_termios() method

Sergey Shtylyov s.shtylyov at omp.ru
Tue Oct 14 19:50:16 MSK 2025


On 10/14/25 1:07 PM, Fedor Pchelkin wrote:

>> Mediatek MT798x datasheets (that I was able to get my hands on) claim

   Thank you, Fedor, BTW! :-)

>> the maximum supported baud rate to be 3 Mbps, while commit 81bb549fdf14
>> ("serial: 8250_mtk: support big baud rate.") claimed it to be 4 Mbps --
> 
> At least MT7987A datasheet claims to support up to 4 Mbps, so I think 4 Mbps
> should be chosen for the upper limit.

   FTR, this SoC doesn't seem to be supported by the mainline kernel (looking
at Linus' repo, at least).
   I think, we should "parametrize" the max (and maybe even min?) baud rate
adding more specific compatibles to mtk8250_of_match[] (and probably setting
this parameter to 4 Mbps for the existing entry)...

> + added the authors of 81bb549fdf14 ("serial: 8250_mtk: support big baud rate.")
> to Cc.

  Just noticed that the author of this "wonderful" patch didn't even sign off
on it. "Excellent" work! :-/

> --
> Fedor

MBR, Sergey




More information about the lvc-project mailing list