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

Commit 1900bf4c authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: dwc3-msm: Avoid access of gsi_reg for non-GSI targets"

parents 0bec0881 53dc2145
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -2179,6 +2179,7 @@ static void dwc3_msm_notify_event(struct dwc3 *dwc, unsigned int event,
		break;
	case DWC3_CONTROLLER_NOTIFY_CLEAR_DB:
		dev_dbg(mdwc->dev, "DWC3_CONTROLLER_NOTIFY_CLEAR_DB\n");
		if (mdwc->gsi_reg)
			dwc3_msm_write_reg_field(mdwc->base,
			    GSI_GENERAL_CFG_REG(mdwc->gsi_reg[GENERAL_CFG_REG]),
			    BLOCK_GSI_WR_GO_MASK, true);