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

Unverified Commit 7bb14160 authored by Michael Bestas's avatar Michael Bestas
Browse files

usb: dwc3-msm: Set usb_data_enabled initial value earlier

Test: Boot with USB plugged in and have working USB data connection.
Change-Id: I009226d859cc73de08ab7ac7db576b3cb0a0986c
parent 082f70a8
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -5030,6 +5030,9 @@ static int dwc3_msm_probe(struct platform_device *pdev)

	mdwc->ss_redriver_node = of_parse_phandle(node, "ssusb_redriver", 0);

	/* set the initial value */
	mdwc->usb_data_enabled = true;

	if (of_property_read_bool(node, "usb-role-switch")) {
		role_desc.fwnode = dev_fwnode(&pdev->dev);
		mdwc->role_switch = usb_role_switch_register(mdwc->dev,
@@ -5112,8 +5115,6 @@ static int dwc3_msm_probe(struct platform_device *pdev)
		dwc3_ext_event_notify(mdwc);
	}

	/* set the initial value */
	mdwc->usb_data_enabled = true;
	device_create_file(&pdev->dev, &dev_attr_orientation);
	device_create_file(&pdev->dev, &dev_attr_mode);
	device_create_file(&pdev->dev, &dev_attr_speed);