Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b8360b2a authored by Hemant Kumar's avatar Hemant Kumar
Browse files

usb: core: Remove helper APIs returning dcba dma address



Since dcba dma address is not required by class driver
therefore remove the API definitions.

Change-Id: I2623cf3bf406ca0d47ea2549b5163d9e9b7351a1
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent 0e596c5f
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -2269,17 +2269,6 @@ 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)
+0 −10
Original line number Diff line number Diff line
@@ -856,16 +856,6 @@ 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)
{
+0 −12
Original line number Diff line number Diff line
@@ -5128,17 +5128,6 @@ dma_addr_t xhci_get_sec_event_ring_dma_addr(struct usb_hcd *hcd,
	return 0;
}

dma_addr_t xhci_get_dcba_dma_addr(struct usb_hcd *hcd,
	struct usb_device *udev)
{
	struct xhci_hcd *xhci = hcd_to_xhci(hcd);

	if (!(xhci->xhc_state & XHCI_STATE_HALTED) && xhci->dcbaa)
		return xhci->dcbaa->dev_context_ptrs[udev->slot_id];

	return 0;
}

dma_addr_t xhci_get_xfer_ring_dma_addr(struct usb_hcd *hcd,
	struct usb_device *udev, struct usb_host_endpoint *ep)
{
@@ -5235,7 +5224,6 @@ static const struct hc_driver xhci_hc_driver = {
	.sec_event_ring_cleanup =	xhci_sec_event_ring_cleanup,
	.get_sec_event_ring_dma_addr =	xhci_get_sec_event_ring_dma_addr,
	.get_xfer_ring_dma_addr =	xhci_get_xfer_ring_dma_addr,
	.get_dcba_dma_addr =		xhci_get_dcba_dma_addr,
	.get_core_id =			xhci_get_core_id,
};

+0 −1
Original line number Diff line number Diff line
@@ -833,7 +833,6 @@ 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 int 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);
+0 −3
Original line number Diff line number Diff line
@@ -414,8 +414,6 @@ struct hc_driver {
			unsigned int intr_num);
	dma_addr_t (*get_xfer_ring_dma_addr)(struct usb_hcd *hcd,
			struct usb_device *udev, struct usb_host_endpoint *ep);
	dma_addr_t (*get_dcba_dma_addr)(struct usb_hcd *hcd,
			struct usb_device *udev);
	int (*get_core_id)(struct usb_hcd *hcd);
};

@@ -461,7 +459,6 @@ extern int usb_hcd_sec_event_ring_cleanup(struct usb_device *udev,
	unsigned int intr_num);
extern dma_addr_t usb_hcd_get_sec_event_ring_dma_addr(struct usb_device *udev,
		unsigned int 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);
extern int usb_hcd_get_controller_id(struct usb_device *udev);