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

Commit 5baaf3b9 authored by Lee Jones's avatar Lee Jones
Browse files

usb: dwc3: st: Use explicit reset_control_get_exclusive() API



We're making all reset line users specify whether their lines are
shared with other IP or they operate them exclusively.  In this case
the line is exclusively used only by this IP, so use the *_exclusive()
API accordingly.

Acked-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent f5f35830
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -227,7 +227,8 @@ static int st_dwc3_probe(struct platform_device *pdev)
	dev_vdbg(&pdev->dev, "glue-logic addr 0x%p, syscfg-reg offset 0x%x\n",
	dev_vdbg(&pdev->dev, "glue-logic addr 0x%p, syscfg-reg offset 0x%x\n",
		 dwc3_data->glue_base, dwc3_data->syscfg_reg_off);
		 dwc3_data->glue_base, dwc3_data->syscfg_reg_off);


	dwc3_data->rstc_pwrdn = devm_reset_control_get(dev, "powerdown");
	dwc3_data->rstc_pwrdn =
		devm_reset_control_get_exclusive(dev, "powerdown");
	if (IS_ERR(dwc3_data->rstc_pwrdn)) {
	if (IS_ERR(dwc3_data->rstc_pwrdn)) {
		dev_err(&pdev->dev, "could not get power controller\n");
		dev_err(&pdev->dev, "could not get power controller\n");
		ret = PTR_ERR(dwc3_data->rstc_pwrdn);
		ret = PTR_ERR(dwc3_data->rstc_pwrdn);