]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
serial: 8250_dw: Add DMA support for non-ACPI platforms
authorRay Jui <rjui@broadcom.com>
Wed, 8 Oct 2014 00:35:47 +0000 (17:35 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Nov 2014 03:24:07 +0000 (19:24 -0800)
commita8b26e1af94825296f29eee6bfc001c5543d3c7e
treec52a4952234096d27ff71ac360fb303c97462ecb
parent10263f656a23e303d9d2ae1336ea6ff83f0714ef
serial: 8250_dw: Add DMA support for non-ACPI platforms

The dma pointer under struct uart_8250_port is currently left
unassigned for non-ACPI platforms. It should be pointing to the dma
member in struct dw8250_data like how it was done for ACPI, so the core
8250 code will try to request for DMA when registering the port

If DMA is not enabled in device tree, request DMA will fail and the
driver will fall back to PIO

Signed-off-by: Ray Jui <rjui@broadcom.com>
Reviewed-by: JD (Jiandong) Zheng <jdzheng@broadcom.com>
Reviewed-by: Scott Branden <sbranden@broadcom.com>
Tested-by: Scott Branden <sbranden@broadcom.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_dw.c