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

Commit 911059ef authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "dwc3-msm: Block doorbell to GSI from USB wrapper"

parents c0979e5b aae212f2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -966,6 +966,7 @@ struct dwc3_scratchpad_array {
#define DWC3_GSI_EVT_BUF_SETUP			11
#define DWC3_GSI_EVT_BUF_CLEANUP		12
#define DWC3_GSI_EVT_BUF_FREE			13
#define DWC3_CONTROLLER_NOTIFY_CLEAR_DB		14

#define MAX_INTR_STATS				10

+6 −0
Original line number Diff line number Diff line
@@ -1987,6 +1987,12 @@ static void dwc3_msm_notify_event(struct dwc3 *dwc, unsigned int event,
	case DWC3_CONTROLLER_NOTIFY_DISABLE_UPDXFER:
		dwc3_msm_dbm_disable_updxfer(dwc, value);
		break;
	case DWC3_CONTROLLER_NOTIFY_CLEAR_DB:
		dev_dbg(mdwc->dev, "DWC3_CONTROLLER_NOTIFY_CLEAR_DB\n");
		dwc3_msm_write_reg_field(mdwc->base,
			GSI_GENERAL_CFG_REG(mdwc->gsi_reg[GENERAL_CFG_REG]),
			BLOCK_GSI_WR_GO_MASK, true);
		break;
	default:
		dev_dbg(mdwc->dev, "unknown dwc3 event\n");
		break;
+4 −0
Original line number Diff line number Diff line
@@ -854,6 +854,10 @@ static void dwc3_stop_active_transfers(struct dwc3 *dwc)
		if (!(dep->flags & DWC3_EP_ENABLED))
			continue;

		if (dep->endpoint.ep_type == EP_TYPE_GSI && dep->direction)
			dwc3_notify_event(dwc,
				DWC3_CONTROLLER_NOTIFY_CLEAR_DB, 0);

		dwc3_remove_requests(dwc, dep);
	}
}