Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4273934rwb; Tue, 6 Sep 2022 05:23:22 -0700 (PDT) X-Google-Smtp-Source: AA6agR6WXH3YCt2B4iSanrn0Oc5SLBNDJr2U60+S+FRpe2sZHq7/w4xrDOqns3VLXruPJfKcolA2 X-Received: by 2002:a17:907:6da6:b0:741:771f:1d0d with SMTP id sb38-20020a1709076da600b00741771f1d0dmr29918231ejc.125.1662467002585; Tue, 06 Sep 2022 05:23:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662467002; cv=none; d=google.com; s=arc-20160816; b=xSD7Fa1OSUDK4VM1+T7FjzSXO+hP23Qc4VB/csa/tZ5IRBOyWxeUYyozQSpfOUvgXN xXxZxxlQ3Oam6QC353WlwP+c4vVV7hUFgjeGRkLGstQrAr1cs8Fxwva7OG9ZAV/sAtVv oDuhiehEzXg6JQ8IOtZBP6tKfYVG7VdP7Y0KM2gv1jQnfN0VeylwnzpveI78C2u8KK0N JsM2zjJejuv02Cf9GDKcZdYdRnMaYkBulU7yVDYrsa7X6b9PyXcXPCvoazm8aWkCtzGh xLfk6DSoOMzenqDhd3nd/c9cy+qZncK+VcoVS59yL42TD7AzQyJAEKzx79W6jSbVZmq8 uBgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=NsHr2pSm76AvdurDQIxlnmxRkssE0koHapUCqo25CQs=; b=qA3nBDzYVFbWopI8B4GyXjdKMG8bx4dCfMrARAcetDGuyOQwiZ47MURy2NsI+XItBQ f4K06ZXEW0swnkKV018k2uqIQh2bIi4ABgswBaBXp8zds2ky4KNlNSPjubaZMXPzoZwy MVGvlyDf1m5SLwgYTMBw2ceqH2KG03qAsSWLt7w+RFDDxSa7Lp+Cls8Z2j7r4iFF6wJc xIBBHj5KCC9/dXUCM8L6+i+BLjzyapPVWaNIRLSZV4SL6CeiM0RTKPhxnn/vZ869zgBh LPEti+lIf/bbvF1GfehP0kOJ7TMStMgAbpVmbXPipFMelYet0qn3gjuuiAm+A0a3sY7y ccug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Mdb4fCh5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f11-20020a0564021e8b00b00447879e8221si11215860edf.247.2022.09.06.05.22.56; Tue, 06 Sep 2022 05:23:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Mdb4fCh5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239548AbiIFMUb (ORCPT + 99 others); Tue, 6 Sep 2022 08:20:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240081AbiIFMS5 (ORCPT ); Tue, 6 Sep 2022 08:18:57 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E23C47D7A8; Tue, 6 Sep 2022 05:16:48 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 938B0614E1; Tue, 6 Sep 2022 12:16:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7940C433C1; Tue, 6 Sep 2022 12:16:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1662466587; bh=xHc94Rc0HMe+8iekdjHOaPqGhryHGchHu4jOG+Pxxz0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Mdb4fCh5EaY1pRPyoc5cihtxJ3lK7vG/a4usrsPskGMdZLGYN2XB7sdyShrF45mfi qLlHYcnrT55oWCvhRX5RPvkJG9pjZhl4OtcKz7WOED20RLDGCZrKAssGUvHkJSpLNg KGSrvpxUiOhmi5uioYnWvn0OXXZV65x0jAFLVOLY= Date: Tue, 6 Sep 2022 14:16:24 +0200 From: Greg Kroah-Hartman To: Johan Hovold Cc: stable@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold , Andrew Halaney , Matthias Kaehlcke , Manivannan Sadhasivam Subject: Re: [PATCH stable-5.15 1/3] usb: dwc3: fix PHY disable sequence Message-ID: References: <20220906120702.19219-1-johan@kernel.org> <20220906120702.19219-2-johan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220906120702.19219-2-johan@kernel.org> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 06, 2022 at 02:07:00PM +0200, Johan Hovold wrote: > From: Johan Hovold > > commit d2ac7bef95c9ead307801ccb6cb6dfbeb14247bf upstream. > > Generic PHYs must be powered-off before they can be tore down. > > Similarly, suspending legacy PHYs after having powered them off makes no > sense. > > Fix the dwc3_core_exit() (e.g. called during suspend) and open-coded > dwc3_probe() error-path sequences that got this wrong. > > Note that this makes dwc3_core_exit() match the dwc3_core_init() error > path with respect to powering off the PHYs. > > Fixes: 03c1fd622f72 ("usb: dwc3: core: add phy cleanup for probe error handling") > Fixes: c499ff71ff2a ("usb: dwc3: core: re-factor init and exit paths") > Cc: stable@vger.kernel.org # 4.8 > Reviewed-by: Andrew Halaney > Reviewed-by: Matthias Kaehlcke > Reviewed-by: Manivannan Sadhasivam > Signed-off-by: Johan Hovold > Link: https://lore.kernel.org/r/20220804151001.23612-2-johan+linaro@kernel.org > Signed-off-by: Greg Kroah-Hartman > [ johan: adjust context to 5.15 ] > Signed-off-by: Johan Hovold > --- > drivers/usb/dwc3/core.c | 19 ++++++++++--------- > 1 file changed, 10 insertions(+), 9 deletions(-) This one did not apply to 4.9.y, 4.14.y, or 4.19.y :(