Re: [PATCH] serial: xuartps: reset TX state to initial after write

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

 



On Thu, 2016-07-28 at 10:38:25 +0200, Helmut Grohne wrote:
> In commit d3755f5e6cd2 ("tty: xuartps: Force enable the UART in
> xuartps_console_write") added some logic to enable TX before writing
> and resetting it back to the original state. Uwe Kleine-König
> discovered that commit e3538c37ee38 ("tty: xuartps: Beautify
> read-modify writes") breaks that logic and always leaves TX enabled.
> This commit reverts the unintended functional change.
> 
> Fixes: e3538c37ee38 ("tty: xuartps: Beautify read-modify writes")
> Signed-off-by: Helmut Grohne <h.grohne@xxxxxxxxxx>
> ---
>  drivers/tty/serial/xilinx_uartps.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> Note that e3538c37ee38 partially hides a hardware race condition that
> becomes visible again after applying this patch.

Is there any harm in this functional change? I'm more afraid of exposing
the race again, TBH.

	Sören
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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