Re: [PATCH] tty: serial: msm: Don't read off end of tx fifo

2016-06-05 Thread Andy Gross
On Thu, Jun 02, 2016 at 05:48:28PM -0700, Bjorn Andersson wrote: > For dm uarts in pio mode tx data is transferred to the fifo register 4 > bytes at a time, but care is not taken when these 4 bytes spans the end > of the xmit buffer so the loop might read up to 3 bytes past the buffer > and then sk

Re: [PATCH] tty: serial: msm: Don't read off end of tx fifo

2016-06-03 Thread Stephen Boyd
On 06/02, Bjorn Andersson wrote: > For dm uarts in pio mode tx data is transferred to the fifo register 4 > bytes at a time, but care is not taken when these 4 bytes spans the end > of the xmit buffer so the loop might read up to 3 bytes past the buffer > and then skip the actual data at the beginn

Re: [PATCH] tty: serial: msm: Don't read off end of tx fifo

2016-06-02 Thread Frank Rowand
On 06/02/16 17:48, Bjorn Andersson wrote: > For dm uarts in pio mode tx data is transferred to the fifo register 4 > bytes at a time, but care is not taken when these 4 bytes spans the end > of the xmit buffer so the loop might read up to 3 bytes past the buffer > and then skip the actual data at t

[PATCH] tty: serial: msm: Don't read off end of tx fifo

2016-06-02 Thread Bjorn Andersson
For dm uarts in pio mode tx data is transferred to the fifo register 4 bytes at a time, but care is not taken when these 4 bytes spans the end of the xmit buffer so the loop might read up to 3 bytes past the buffer and then skip the actual data at the beginning of the buffer. Fix this by, analogou