]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8f72964f240e11d676c810cb6eb59c706efc94ee
treedd167e381e31826ef95c1d9718908494c2f8fdcf
parent2509bc7eaae852b108f58ee0cbef617e6fee2ea7
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