From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9FF01C19F2C for ; Wed, 3 Aug 2022 17:33:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238292AbiHCRdk (ORCPT ); Wed, 3 Aug 2022 13:33:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236024AbiHCRdj (ORCPT ); Wed, 3 Aug 2022 13:33:39 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC7F757250 for ; Wed, 3 Aug 2022 10:33:32 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id t22so9310634pjy.1 for ; Wed, 03 Aug 2022 10:33:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Dy6IYhyMjLV91h2ReHssZ9zYJNgTd/qtSQuKQsaMXrc=; b=Nfb88RfP6LTCuL8dBDqDdh5UI6nFNU8KegwOL3F3TogolrjKRmHfAk7/BKpHwdDW5O K1GxOxMdZmzLEJXC82fmsI0F07sfzJrrrrl+50+7vp4n2xdF1yKh7sf1hL4udl/GKUrs r7wF/sNJAba2N0BzIvwwiQCmir5APDQxjGvxg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Dy6IYhyMjLV91h2ReHssZ9zYJNgTd/qtSQuKQsaMXrc=; b=KCmbg88qWa/woYKnQYTKrBJcbrM3x9E9BE1yjdL+726S2x6jKMxoZR/nh4HDIwjayU kbrM/xVds4wp89gF7Q9spnbfIX2d8uTQkVRCySvnFtNXMTG+ELXpUHG/lUckVtcBeBp6 eaKOyBL3q+X4l3gxUsRvmTaYu6Lk7agB+43bYD/+LSrVEyKr9vIuvnQlzmmjtwFbAmWV 4hD/loM+MfKki7KL4r5QWsHuBHwmPMbCKTu6N1NEDbSvGlfyfMKGwFwxr5/cr8HC6Hjx OVqTP3x6msHQVAW0HDvU9qnSm85A3J9RwqlFS5iC0kNUOolN0OSWMiCRtIGA85177uOq jVRA== X-Gm-Message-State: ACgBeo26IzJiYvlb+Dh7umWFIsu0zOKMx5mJUZlmWDh0QwJ9VwCx2LR8 JsZspmnnywVAVpuXJ4weIuP3pg== X-Google-Smtp-Source: AA6agR4OTofGOrxUeI0Yz5ovXwcIJgH+wgxqCKULul0vj1fASevyAdjtsOHPEKEqbnSejux4ft0vvA== X-Received: by 2002:a17:90b:4b91:b0:1f4:e116:8f1 with SMTP id lr17-20020a17090b4b9100b001f4e11608f1mr6031640pjb.121.1659548012211; Wed, 03 Aug 2022 10:33:32 -0700 (PDT) Received: from localhost ([2620:15c:11a:202:238b:c074:f5f8:56d0]) by smtp.gmail.com with UTF8SMTPSA id e6-20020a17090a728600b001f31468f2f4sm1883181pjg.46.2022.08.03.10.33.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Aug 2022 10:33:31 -0700 (PDT) Date: Wed, 3 Aug 2022 10:33:29 -0700 From: Matthias Kaehlcke To: Johan Hovold Cc: Greg Kroah-Hartman , Felipe Balbi , Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Manivannan Sadhasivam , Konrad Dybcio , Krishna Kurapati , Stephen Boyd , Doug Anderson , Pavankumar Kondeti , quic_ppratap@quicinc.com, quic_vpulyala@quicinc.com, linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH 1/8] usb: dwc3: fix PHY disable sequence Message-ID: References: <20220802151404.1797-1-johan+linaro@kernel.org> <20220802151404.1797-2-johan+linaro@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220802151404.1797-2-johan+linaro@kernel.org> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Tue, Aug 02, 2022 at 05:13:57PM +0200, Johan Hovold wrote: > 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 > Signed-off-by: Johan Hovold I also wondered about this earlier, but didn't take action. Reviewed-by: Matthias Kaehlcke