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

Commit b42196b1 authored by Skylar Chang's avatar Skylar Chang
Browse files

msm: ipa: register with PM for USB only once



Register with IPA PM framework only once for all USB tethering
protocols.

Change-Id: I65fa965ac493762c1ef76db8a8344b8e1e419366
CR-Fixed: 2158711
Acked-by: default avatarAdy Abraham <adya@qti.qualcomm.com>
Signed-off-by: default avatarSkylar Chang <chiaweic@codeaurora.org>
parent 4728a0a0
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -741,6 +741,10 @@ static int ipa3_usb_register_pm(enum ipa3_usb_transport_type ttype)
		&ipa3_usb_ctx->ttype_ctx[ttype];
	int result;

	/* create PM resources for the first tethering protocol only */
	if (ipa3_usb_ctx->num_init_prot > 0)
		return 0;

	memset(&ttype_ctx->pm_ctx.reg_params, 0,
		sizeof(ttype_ctx->pm_ctx.reg_params));
	ttype_ctx->pm_ctx.reg_params.name = (ttype == IPA_USB_TRANSPORT_DPL) ?