Re: [PATCH] Use RX_BUF_SIZE to set size of RX buffer

2017-09-28 Thread Martyn Welch
On Thu, Sep 28, 2017 at 12:00:19PM +0200, Uwe Kleine-König wrote: > On Thu, Sep 28, 2017 at 10:52:15AM +0100, Martyn Welch wrote: > > The imx serial driver uses PAGE_SIZE when allocating rx_buf, but then > > uses RX_BUF_SIZE (which is currently defined as PAGE_SIZE) to describe > > the length of th

Re: [PATCH] Use RX_BUF_SIZE to set size of RX buffer

2017-09-28 Thread Uwe Kleine-König
On Thu, Sep 28, 2017 at 10:52:15AM +0100, Martyn Welch wrote: > The imx serial driver uses PAGE_SIZE when allocating rx_buf, but then > uses RX_BUF_SIZE (which is currently defined as PAGE_SIZE) to describe > the length of the buffer when initialising the scatter gather list. > > In order to ensur

[PATCH] Use RX_BUF_SIZE to set size of RX buffer

2017-09-28 Thread Martyn Welch
The imx serial driver uses PAGE_SIZE when allocating rx_buf, but then uses RX_BUF_SIZE (which is currently defined as PAGE_SIZE) to describe the length of the buffer when initialising the scatter gather list. In order to ensure that this stays consistent, use RX_BUF_SIZE in both locations. --- dr