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

Commit 002f17bc authored by Lee Jones's avatar Lee Jones
Browse files

usb: dwc3: st: Inform the reset framework that our reset line may be shared



On the STiH410 B2120 development board the MiPHY28lp shares its reset
line with the Synopsys DWC3 SuperSpeed (SS) USB 3.0 Dual-Role-Device
(DRD).  New functionality in the reset subsystems forces consumers to
be explicit when requesting shared/exclusive reset lines.

Acked-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 19599304
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -237,7 +237,8 @@ static int st_dwc3_probe(struct platform_device *pdev)
	/* Manage PowerDown */
	/* Manage PowerDown */
	reset_control_deassert(dwc3_data->rstc_pwrdn);
	reset_control_deassert(dwc3_data->rstc_pwrdn);


	dwc3_data->rstc_rst = devm_reset_control_get(dev, "softreset");
	dwc3_data->rstc_rst =
		devm_reset_control_get_shared(dev, "softreset");
	if (IS_ERR(dwc3_data->rstc_rst)) {
	if (IS_ERR(dwc3_data->rstc_rst)) {
		dev_err(&pdev->dev, "could not get reset controller\n");
		dev_err(&pdev->dev, "could not get reset controller\n");
		ret = PTR_ERR(dwc3_data->rstc_rst);
		ret = PTR_ERR(dwc3_data->rstc_rst);