Re: [PATCH 7/9] serial: imx: ensure that RX irqs are off if RX is off

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

 



On Wed, Feb 28, 2018 at 08:09:17AM +0100, Sascha Hauer wrote:
> Hi Uwe,
> 
> On Tue, Feb 27, 2018 at 10:45:01PM +0100, Uwe Kleine-König wrote:
> > Make sure that UCR1.RXDMAEN and UCR1.ATDMAEN (for the DMA case) and
> > UCR1.RRDYEN and UCR2.ATEN (for the PIO case) are off when UCR1.RXEN is
> > disabled. This ensures that the fifo isn't read with RX disabled which
> > results in an exception.
> > 
> > Signed-off-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx>
> > ---
> >  drivers/tty/serial/imx.c | 156 +++++++++++++++++++++++++++++------------------
> >  1 file changed, 97 insertions(+), 59 deletions(-)
> 
> This looks like a rebasing accident. The patch is huge and I can't see
> it has anything to do with the subject.
> 
> > @@ -416,23 +439,25 @@ static void imx_stop_tx(struct uart_port *port)
> >  	if (sport->dma_is_txing)
> >  		return;
> >  
> > -	temp = imx_uart_readl(sport, UCR1);
> > -	imx_uart_writel(sport, temp & ~UCR1_TXMPTYEN, UCR1);
> > +	ucr1 = imx_uart_readl(sport, UCR1);
> > +	ucr1 &= ~UCR1_TXMPTYEN;
> > +	imx_uart_writel(sport, ucr1, UCR1);
> 
> Particularly this hunk looks like a cosmetic cleanup and not something
> that should be in this patch.

OK, the renaming of the variable holding the register is unrelated and
could be separated. But the hunk isn't purely cosmetic, the relevant
difference is that ucr1 holds the right register value afterwards.

Anyhow, I will see how I can split this patch in simpler pieces. After
quickly looking over it, I don't consider it a rebasing accident at
least :-)

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
--
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