210-disable-uart-dma.patch 747 B

1234567891011121314151617181920212223
  1. Based on following upstream patch by Tim Harvey (Gateworks):
  2. https://github.com/Gateworks/openwrt/commit/80a01b6582f94c4547f39d3a25e0a1e9b6eb9877
  3. TX complete DMA messages are getting missed.
  4. This is also currently an issue in mainline.
  5. For now we will disable DMA in serial/imx.c.
  6. This resolves an issue encountered with RS485 transmit.
  7. --- a/drivers/tty/serial/imx.c
  8. +++ b/drivers/tty/serial/imx.c
  9. @@ -1268,10 +1268,6 @@ static int imx_startup(struct uart_port
  10. writel(temp & ~UCR4_DREN, sport->port.membase + UCR4);
  11. - /* Can we enable the DMA support? */
  12. - if (!uart_console(port) && !sport->dma_is_inited)
  13. - imx_uart_dma_init(sport);
  14. -
  15. spin_lock_irqsave(&sport->port.lock, flags);
  16. /* Reset fifo's and state machines */
  17. i = 100;