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

Commit 1443f5b0 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: dwc3: Add a check for the DWC_usb3 core" into msm-4.9

parents 536ab493 15c64510
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1283,6 +1283,12 @@ void dwc3_set_mode(struct dwc3 *dwc, u32 mode);
u32 dwc3_core_fifo_space(struct dwc3_ep *dep, u8 type);
int dwc3_gadget_resize_tx_fifos(struct dwc3 *dwc);

/* check whether we are on the DWC_usb3 core */
static inline bool dwc3_is_usb3(struct dwc3 *dwc)
{
	return !(dwc->revision & DWC3_REVISION_IS_DWC31);
}

/* check whether we are on the DWC_usb31 core */
static inline bool dwc3_is_usb31(struct dwc3 *dwc)
{