usb: hcd: use correct device pointer for dma ops
authorSekhar Nori <nsekhar@ti.com>
Mon, 3 Apr 2017 08:26:52 +0000 (13:56 +0530)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:22:23 +0000 (15:22 -0500)
commit1c89826bd2737a05cba0532168f052acd338d3d1
treed2dcb91ad7b813cbc9a9591f367106802655d5ea
parent8ff8e88596ebdc8e12c9675e2ebd549a176491ce
usb: hcd: use correct device pointer for dma ops

commit a8c06e407ef9 ("usb: separate out sysdev pointer from
usb_bus") converted to use hcd->self.sysdev for DMA
operations instead of hcd->self.controller but forgot to do
it for one instance.

This gets caught when DMA debugging is enabled since dma map
and unmap end up using different device pointers.

Fix it.

Fixes: a8c06e407ef9 ("usb: separate out sysdev pointer from usb_bus")
Reported-by: Carlos Hernandez <ceh@ti.com>
Acked-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit bde654a55adca166641361332e1f141de5197b02)
drivers/usb/core/hcd.c