lkml.org 
[lkml]   [2024]   [Apr]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] tty: serial: fixed uart irq maybe cause irq storm
On Mon, 1 Apr 2024, Feng Chunguo wrote:

> Hi Greg KH,
>
> Sent this path again.
>
>  the irq should not be turned off here, what happens if some data comes in while this
> function is running?  Will it be lost?
> --> lost,not receive other irq.
>
>  When the uart was switching the baud rate from one to other,  this issue can be
> reproduced.


>> This feels wrong,
>> the irq should not be turned off here, what happens if some data comes in while this
>> function is running? Will it be lost? thanks, greg k-h

Changing rate always risks losing what's currently on wire due to timing
related corruption, I don't think there there's a way around that IRQ
being enabled or not.


--
i.
\
 
 \ /
  Last update: 2024-05-27 16:19    [W:0.030 / U:1.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site