]> git.karo-electronics.de Git - linux-beck.git/commit
serial: 8250: Validate dmaengine rx chan meets requirements
authorPeter Hurley <peter@hurleysoftware.com>
Sun, 10 Apr 2016 05:14:32 +0000 (22:14 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Apr 2016 16:26:55 +0000 (09:26 -0700)
commitec5a11a91eecd81ef19b8044a243b4ea56c809e6
tree9ddec17e4d8de766912e58be04561eec2d15ee16
parent06c5e362ce1fbb29cb9505b4a1191d9489d8bdd2
serial: 8250: Validate dmaengine rx chan meets requirements

8250 dma support requires the dmaengine driver support error-free
pause/terminate and better-than-descriptor residue granularity. Query
slave caps to determine if necessary commands/properties are supported;
disable dma if not.

Note this means dmaengine driver must support slave caps reporting
as well.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_dma.c