USB: dwc3: fix runtime pm imbalance on probe errors
stable inclusion from stable-v5.10.180 commit 27dc207c386eb6719e9cb695f7afb15e52b07d28 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I8DDFN Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=27dc207c386eb6719e9cb695f7afb15e52b07d28 -------------------------------- commit 9a8ad10c upstream. Make sure not to suspend the device when probe fails to avoid disabling clocks and phys multiple times. Fixes: 32808237 ("usb: dwc3: fix runtime PM in error path") Cc: stable@vger.kernel.org # 4.8 Cc: Roger Quadros <rogerq@ti.com> 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-2-johan+linaro@kernel.org Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment