Re: [PATCH 4/8] serial: imx: get rid of unbounded busy-waiting loop

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 30, 2019 at 06:29:46PM +0300, Sergey Organov wrote:
> imx_set_termios(): remove busy-waiting "drain Tx FIFO" loop. Worse
> yet, it was potentially unbounded wait due to RTS/CTS (hardware)
> handshake.
> 
> Let user space ensure draining is done before termios change, if
> draining is needed in the first place.

I don't know for sure what the intended behaviour is here, but I tend to
think that changing the unbounded wait to a timeout and then return
-EBUSY (?) would be more suitable. With your change you're possibly
breaking existent software.

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux