USB: dwc3: disable autosuspend on unbind
JIRA: https://issues.redhat.com/browse/RHEL-13058 commit 6b3b2402ca5be6a19f92968a5654bc64d3996d16 Author: Johan Hovold <johan+linaro@kernel.org> Date: Tue, 4 Apr 2023 09:25:16 +0200 Add the missing calls to disable autosuspend on probe errors and on driver unbind. Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com> Signed-off-by: Johan Hovold <johan+linaro@kernel.org> Link: https://lore.kernel.org/r/20230404072524.19014-4-johan+linaro@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Desnes Nunes <desnesn@redhat.com>
This commit is contained in:
parent
7351df5fc9
commit
302c1b8a48
|
@ -1966,6 +1966,7 @@ err3:
|
|||
err2:
|
||||
pm_runtime_allow(dev);
|
||||
pm_runtime_disable(dev);
|
||||
pm_runtime_dont_use_autosuspend(dev);
|
||||
pm_runtime_set_suspended(dev);
|
||||
pm_runtime_put_noidle(dev);
|
||||
disable_clks:
|
||||
|
@ -1993,6 +1994,7 @@ static int dwc3_remove(struct platform_device *pdev)
|
|||
|
||||
pm_runtime_allow(&pdev->dev);
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
pm_runtime_dont_use_autosuspend(&pdev->dev);
|
||||
pm_runtime_put_noidle(&pdev->dev);
|
||||
pm_runtime_set_suspended(&pdev->dev);
|
||||
|
||||
|
|
Loading…
Reference in New Issue