Re: [PATCH v2] serial: imx: disable Transmit Complete Interrupt when starting DMA

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

 



Hello Greg,

On Thu, Mar 01, 2018 at 09:35:38PM +0100, Uwe Kleine-König wrote:
> On an i.MX6Q based system using the imx-UART in rs485 mode the following
> could be observed: When a character is supposed to be sent,
> imx_start_tx() enables the Transmit Complete Interrupt (UCR4_TCEN) and
> then enables DMA. If then the Transmit Complete Interrupt triggers
> before the DMA request starts to send characters the irq handler
> disables the Transmitter Empty Interrupt (UCR1_TXMPTYEN) in
> imx_transmit_buffer() but not Transmit Complete Interrupt and so fails
> to remove this irq source which prevents the DMA request to start and
> completely locks up the system.
> 
> To prevent this lock-up also disable UCR4_TCEN when starting DMA and
> expand the comment accordingly.
> 
> Fixes: 17b8f2a3fdca ("serial: imx: add support for half duplex rs485")
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx>

With v4 of the imx-serial clean up series I'm about to send, this patch
is obsolete. So it's safe to delete it from your mailbox.

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