OSDN Git Service

usb: dwc2: host: don't use dma_alloc_coherent with irqs disabled
authorGregory Herrero <gregory.herrero@intel.com>
Wed, 29 Apr 2015 20:09:16 +0000 (22:09 +0200)
committerFelipe Balbi <balbi@ti.com>
Wed, 29 Apr 2015 20:20:00 +0000 (15:20 -0500)
commitdb62b9a804b465f5050438eb06151c99c625ec9a
treedd167e381e31826ef95c1d9718908494c2f8fdcf
parent33ad261aa62be02f0cedeb4d5735cc726de84a3f
usb: dwc2: host: don't use dma_alloc_coherent with irqs disabled

Align buffer must be allocated using kmalloc since irqs are disabled.
Coherency is handled through dma_map_single which can be used with irqs
disabled.

Reviewed-by: Julius Werner <jwerner@chromium.org>
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Gregory Herrero <gregory.herrero@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/hcd.c
drivers/usb/dwc2/hcd_intr.c
drivers/usb/dwc2/hcd_queue.c