Revert "usb: core: Remove helper APIs returning dcba dma address"
This reverts commit 039bcf340e
.
Add back helper APIs to return dcba dma address.
Change-Id: Ia65e98691d1a3c241694f07215c12605832f574d
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
This commit is contained in:
parent
ca3d15e44b
commit
d2b0c86b23
4 changed files with 23 additions and 0 deletions
|
@ -2241,6 +2241,17 @@ usb_hcd_get_sec_event_ring_dma_addr(struct usb_device *udev,
|
|||
return hcd->driver->get_sec_event_ring_dma_addr(hcd, intr_num);
|
||||
}
|
||||
|
||||
dma_addr_t
|
||||
usb_hcd_get_dcba_dma_addr(struct usb_device *udev)
|
||||
{
|
||||
struct usb_hcd *hcd = bus_to_hcd(udev->bus);
|
||||
|
||||
if (!HCD_RH_RUNNING(hcd))
|
||||
return 0;
|
||||
|
||||
return hcd->driver->get_dcba_dma_addr(hcd, udev);
|
||||
}
|
||||
|
||||
dma_addr_t
|
||||
usb_hcd_get_xfer_ring_dma_addr(struct usb_device *udev,
|
||||
struct usb_host_endpoint *ep)
|
||||
|
|
|
@ -697,6 +697,16 @@ usb_get_sec_event_ring_dma_addr(struct usb_device *dev,
|
|||
}
|
||||
EXPORT_SYMBOL(usb_get_sec_event_ring_dma_addr);
|
||||
|
||||
dma_addr_t
|
||||
usb_get_dcba_dma_addr(struct usb_device *dev)
|
||||
{
|
||||
if (dev->state == USB_STATE_NOTATTACHED)
|
||||
return 0;
|
||||
|
||||
return usb_hcd_get_dcba_dma_addr(dev);
|
||||
}
|
||||
EXPORT_SYMBOL(usb_get_dcba_dma_addr);
|
||||
|
||||
dma_addr_t usb_get_xfer_ring_dma_addr(struct usb_device *dev,
|
||||
struct usb_host_endpoint *ep)
|
||||
{
|
||||
|
|
|
@ -753,6 +753,7 @@ extern int usb_sec_event_ring_cleanup(struct usb_device *dev,
|
|||
extern dma_addr_t
|
||||
usb_get_sec_event_ring_dma_addr(struct usb_device *dev,
|
||||
unsigned intr_num);
|
||||
extern dma_addr_t usb_get_dcba_dma_addr(struct usb_device *dev);
|
||||
extern dma_addr_t usb_get_xfer_ring_dma_addr(struct usb_device *dev,
|
||||
struct usb_host_endpoint *ep);
|
||||
extern int usb_get_controller_id(struct usb_device *dev);
|
||||
|
|
|
@ -451,6 +451,7 @@ extern int usb_hcd_sec_event_ring_cleanup(struct usb_device *udev,
|
|||
extern dma_addr_t
|
||||
usb_hcd_get_sec_event_ring_dma_addr(struct usb_device *udev,
|
||||
unsigned intr_num);
|
||||
extern dma_addr_t usb_hcd_get_dcba_dma_addr(struct usb_device *udev);
|
||||
extern dma_addr_t
|
||||
usb_hcd_get_xfer_ring_dma_addr(struct usb_device *udev,
|
||||
struct usb_host_endpoint *ep);
|
||||
|
|
Loading…
Add table
Reference in a new issue