usb: host: ehci: Simplify qTD buffer synchronization
Only two buffers ever need to be sychronized and DMA direction of it
is always known based on the type of request we are
processing. Simplify the code by moving synchronization to be a part
of ehci_prepare_qtd(). While at it convert the code to use
dma_map_single() API.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 91c69e0 commit 42724155da89da38af46b01592d20b007448e5db
@Andrey Smirnov Andrey Smirnov authored on 22 May 2019
Sascha Hauer committed on 23 May 2019
Showing 2 changed files
View
drivers/usb/host/ehci-hcd.c
View
drivers/usb/host/ehci.h