mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
USB: Fix compilation errors with host stack disabled
Compilation errors are seen if host configs are disabled. Hence fix those errors to make compilation successful with host configs disabled. Change-Id: Ib6fa2820dfada44a7a3fdeb2b2a9b9a18953b31b Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
This commit is contained in:
parent
b7903c2301
commit
deca272425
2 changed files with 8 additions and 4 deletions
|
|
@ -4829,7 +4829,9 @@ static int dwc3_otg_start_host(struct dwc3_msm *mdwc, int on)
|
|||
|
||||
|
||||
mdwc->host_nb.notifier_call = dwc3_msm_host_notifier;
|
||||
#ifdef USB_CONFIG
|
||||
usb_register_notify(&mdwc->host_nb);
|
||||
#endif
|
||||
|
||||
dwc3_set_prtcap(dwc, DWC3_GCTL_PRTCAP_HOST);
|
||||
if (!dwc->dis_enblslpm_quirk)
|
||||
|
|
@ -4908,7 +4910,9 @@ static int dwc3_otg_start_host(struct dwc3_msm *mdwc, int on)
|
|||
|
||||
mdwc->hs_phy->flags &= ~PHY_HOST_MODE;
|
||||
dwc3_host_exit(dwc);
|
||||
#ifdef USB_CONFIG
|
||||
usb_unregister_notify(&mdwc->host_nb);
|
||||
#endif
|
||||
|
||||
dwc3_set_prtcap(dwc, DWC3_GCTL_PRTCAP_DEVICE);
|
||||
dwc3_msm_write_reg_field(mdwc->base, DWC3_GUSB3PIPECTL(0),
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
/*
|
||||
* xHCI secondary ring APIs
|
||||
*
|
||||
* Copyright (c) 2019, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2019,2021 The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef __LINUX_XHCI_SEC_H
|
||||
|
|
@ -20,7 +20,7 @@ phys_addr_t xhci_get_xfer_ring_phys_addr(struct usb_device *udev,
|
|||
int xhci_stop_endpoint(struct usb_device *udev, struct usb_host_endpoint *ep);
|
||||
#else
|
||||
static inline int xhci_sec_event_ring_setup(struct usb_device *udev,
|
||||
unsigned int intr_num);
|
||||
unsigned int intr_num)
|
||||
{
|
||||
return -ENODEV;
|
||||
}
|
||||
|
|
@ -35,13 +35,13 @@ static inline phys_addr_t xhci_get_sec_event_ring_phys_addr(
|
|||
struct usb_device *udev, unsigned int intr_num,
|
||||
dma_addr_t *dma)
|
||||
{
|
||||
return NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline phys_addr_t xhci_get_xfer_ring_phys_addr(struct usb_device *udev,
|
||||
struct usb_host_endpoint *ep, dma_addr_t *dma)
|
||||
{
|
||||
return NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline int xhci_stop_endpoint(struct usb_device *udev,
|
||||
|
|
|
|||
Loading…
Reference in a new issue