Re: [PATCH] serial: imx: Fix buggy transmissions when baudrate mismatches

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

 



Hi Sascha,

On Thu, May 15, 2014 at 6:21 PM, Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> wrote:

>> --- a/drivers/serial/serial_imx.c
>> +++ b/drivers/serial/serial_imx.c
>> @@ -258,7 +258,8 @@ static int imx_serial_getc(struct console_device *cdev)
>>         while (readl(priv->regs + priv->devtype->uts) & UTS_RXEMPTY);
>>
>>         ch = readl(priv->regs + URXD0);
>> -
>> +       if (ch >= 0x80)
>> +               ch = '?';
>
> This is not part of the fix, right?

Correct, this is not part of the fix.

This code is just to help reproducing the issue in console, without
the need of hooking an oscilloscope to the UART pins or inspecting
directly the UART TX registers.

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux