Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp452770imn; Wed, 3 Aug 2022 10:49:43 -0700 (PDT) X-Google-Smtp-Source: AA6agR6CTWCHLltIDjqNtSPpVPWqWNOD7d1De+zgq4jKuXE45R/9aFq10q06jwy4+LtLP3NLsIBf X-Received: by 2002:a17:902:e5cc:b0:16f:1153:c519 with SMTP id u12-20020a170902e5cc00b0016f1153c519mr5959403plf.151.1659548983276; Wed, 03 Aug 2022 10:49:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659548983; cv=none; d=google.com; s=arc-20160816; b=smyNFR20FvyAYtpEQ1nUVHfSsNR00QB+SaXVQlv3xXcsKuRK9yxXG3KrhonktfPe8U k9bbFhphFYVeZBXtO99TA1ltM4+CcNeWPCyeDnKkN92iKlnMhuGW3m7tucRFPElNvB5s x36j+9W56z1ZtEhF+ObwHwAzHRBMYiIv9U0eLQqWY9D9GMYf/CbWKSPQ5WbjmM1mTFyg 4F6FYFNBOXMresU59+oygpSFeaxQoLOU8kDHkcSNCRlqwmxIocQEJiCUbATVRXBmSnih ti/1Gg9uf569cAQnehF0ZnYI7lR9zQ8buqX77GQPLHI7KW7kSmK+oBztlkZEatA/dV+p 3/9g== 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=Dy6IYhyMjLV91h2ReHssZ9zYJNgTd/qtSQuKQsaMXrc=; b=m/HFHBUezUfsOuaG3zfeXARkTP2dBGXRbC+TkunoNUnHs10qI2F3LQ4PHcPNGLaXn1 jxqellPRb+N1QczH84pjv/UTmzA5Vx6XUPnOIKKGOhRWlJ1JaaNOOeP4IuMv3Z5Mdy4R yYoCmg4bDZTFi6Vc8C1WrKsRj/ELaecfQJExyZZVKG1+jxofjLL+punfa6Y1GlFzyTk1 u+mSWDld+t5uMLdgUJd+wTZw/D6gVbmUHY78eQhOUwgeCio0ivOEjY1ab504PVVMIO2h g3fyN+6+G8AeXP//dlUu0uqsKZziw/OHgISlt5T14Fp332hpJ87UC09NcyeHOqRpzSSD TkLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Nfb88RfP; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r134-20020a632b8c000000b0041bd0985ea9si12996973pgr.671.2022.08.03.10.49.29; Wed, 03 Aug 2022 10:49:43 -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=@chromium.org header.s=google header.b=Nfb88RfP; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238170AbiHCRdm (ORCPT + 99 others); Wed, 3 Aug 2022 13:33:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237639AbiHCRdj (ORCPT ); Wed, 3 Aug 2022 13:33:39 -0400 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFB375725A for ; Wed, 3 Aug 2022 10:33:32 -0700 (PDT) Received: by mail-pl1-x630.google.com with SMTP id x23so8383557pll.7 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=l+p2TvBdMpQV4ure18W9Cuhk8HQP1xQw9xK3HkM3XMEDHdp5pJ8UfArpefs8gGgJQV il7aYqf40BMWshqVl+eDQfwdeh0JC1kg2HcNbGu1X1w+lMVWz3pE9NI0EcIdnZZ57dpY MzRtF8XcZplVP0A8lqjh+/ib7gKA4E8LSM0XZvuKfWbQRHxghCP6+JM1oCO/cjZ4/Vjf 3cKFqxgc5AZOiYM0wSlAfuvmfs8smVKHsqzTbgrQrkSgouhMgCGvmV9cS8YzPELmDFoB GmOMepoUJuwEmnGHRrNjfF3+ZLCMUIMoJkwTfc3H2mbc8lhF0T6wxqXFw3niulLG4IyP oQBQ== X-Gm-Message-State: ACgBeo2jgnCOjruXs0pHoudMjtNLNMJl9UCVngYd42DRZZIH3zGTdm3F M7ib0BCk6semhkqCgLmeA9B1RA== 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> X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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, 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