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

Commit 72d7b411 authored by Package Warehouse Build User's avatar Package Warehouse Build User Committed by Gerrit - the friendly Code Review server
Browse files

Merge "USB: Fix compilation errors with host stack disabled" into msm-5.4

parents 98dbd897 deca2724
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -4833,7 +4833,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)
@@ -4912,7 +4914,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),
+4 −4
Original line number Diff line number Diff line
@@ -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,