Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4453221rwb; Tue, 6 Sep 2022 07:45:44 -0700 (PDT) X-Google-Smtp-Source: AA6agR5DDvKIO4QOeWAclIQmSn2pqeIXslnCI97+e0u+4QZ6tsPtsqZoTo8utsjtY47LC9pEqYRJ X-Received: by 2002:a17:907:75c1:b0:730:aa62:7f65 with SMTP id jl1-20020a17090775c100b00730aa627f65mr38142596ejc.355.1662475544596; Tue, 06 Sep 2022 07:45:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662475544; cv=none; d=google.com; s=arc-20160816; b=RXlxXqcYKxGaMfMOurkL7/p6vR3/wngI9u2+wGTNvX4HjdcdPIG1UiAMCjUT6c8TfV oR6PcBJkuQCfs42ytXz0Yx81d3oo8RYcbUzcH1v9X3URxUNdw+usQJtZVDfB6L++CO5y Isww1HyX7CysHgJnMz+D0PujCgGS6CX8f3KCFavznsL0Xr6VGuqkavNIWYZ1N+c6BlQb njG6RvdbYBMVJuNX2hGwCRn0MjHO8sZfxYiN4vHM/wpHpz0dfUlwfYONLQ9nGTQnclXS faTnD4tfGgVS2HYBdLZMfSFKzNMMZ2HfTWRfX04lh88o05d32IoUauGWMfo6WKoa8QTr 62vg== 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=4nHhaKoOsyPdftnw/ugqPeo3eYHkRXwACjQypIom1es=; b=WiiO7gECGvKDcpKSBMrsce9BZk2A/vs4ncBEbTLPVF713QAIyveB8+ib1Vu9eVnWeW gHiBwaN14/AFK0c64xAWezis2P18MSyphzLW1Lzr9/m3Z3hqfcVxQeoEjcQsoPiJaEXo k+wQeu+NQ0ZQfvPmXH4V6UdD4v98PFfleOgzX+iVtdpAKtUOJv1rgm8MNUN7vZItBpAI 8Agx4E5d4tRUcz58FG7IEQ2K6bRb6etfeSZAMhfjlYIGPb7vX7BlEAhKtqabmf4ozxnG JJzQmB8Bpasqaoa07H63AQT56m6mtKP0VSaRT8HXooqKeR81GE+pEGYjkxIUYR+uijtZ 7JSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UVDCbT9W; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hu9-20020a170907a08900b0073da774ff40si9611196ejc.122.2022.09.06.07.45.17; Tue, 06 Sep 2022 07:45:44 -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=@kernel.org header.s=k20201202 header.b=UVDCbT9W; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239704AbiIFM3i (ORCPT + 99 others); Tue, 6 Sep 2022 08:29:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240251AbiIFM2m (ORCPT ); Tue, 6 Sep 2022 08:28:42 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C608C77; Tue, 6 Sep 2022 05:25:22 -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 98F2261518; Tue, 6 Sep 2022 12:25:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F237FC433D7; Tue, 6 Sep 2022 12:25:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662467121; bh=FVIz9jOcYZovbef6R7ziRzkYDGIwM247D7ae6/vYWLg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UVDCbT9WfXM6YFeFbxLTt7scCB/B1HbIkRDQXNdpzQas3y5MwiK5OJhKn1HhqVRij e7ZS/k+VZxYZl9Qb639i94Q1drkjC+E+0ozdRZRmBGBQKDrSi0dwZTTyEkUo0lUmtC 6wby4TpKl2dXSZAB2negF5YuN4pP3bXSu8XneZME3a2Ge5gPDn4SV/nxmdBJ43tpMJ 1yZB5CZinBgh2yVvcjcRwqxt27FUbm3oStpXkOanMYbtK6sLu00ZsPJQDO5z+lw/gn 7pSFabp4FtcjwMyLmw5ekHEQmlaF77/ODt3YcqtULiUBcDKOUv9G3hcqbNOWKgwzTq jVsd0NfK96Ggw== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1oVXdt-0008BH-3O; Tue, 06 Sep 2022 14:25:25 +0200 Date: Tue, 6 Sep 2022 14:25:25 +0200 From: Johan Hovold To: Greg Kroah-Hartman 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: 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:16:24PM +0200, Greg Kroah-Hartman wrote: > 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 :( Perhaps someone who cares about these old trees can do the backports. Should be as trivial. Can't be the patch submitters responsibility to maintain 8 stable trees. Johan