Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp492214rwe; Fri, 26 Aug 2022 08:40:02 -0700 (PDT) X-Google-Smtp-Source: AA6agR6xKieUPPhMj1Dm+/OHFpXc6KiL8B/Ugc8/MhypZOotupXms3s/uW5hMZMR5ebmKcHhw/ep X-Received: by 2002:a17:907:9814:b0:73d:cb9f:c0b8 with SMTP id ji20-20020a170907981400b0073dcb9fc0b8mr5881194ejc.648.1661528402006; Fri, 26 Aug 2022 08:40:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661528401; cv=none; d=google.com; s=arc-20160816; b=DIT+KD5xZzvLAcIitG2jors0lQyRMxbiaJ5f1x7zevoZqY0uZORE4SlJZlX0m8i/3F +RPjXZ0/KUavTKf8fO2Eo0el59aJMwC5UK4VnmsA68AYk9Go/8NMMicejxl6bfqcFc6N QebWjR9yVvP5QSkuCvYdth7Gajm/gECwsm7A7nntef/1I55xw7SalNuiTNDVVHE+VIgc mnhlT3ff7Ade6dMaqoTaOyYfw8+hTmVOApEgRQL2gzFPCBnd6SZLFuxnktdEluKeMILd 3B1nqIKK8QPzKrr1m+Kpd6+3V+rW9eTDQsSHGeUSZ4c85Q1RQWBaS9rw31qzMYDx18pb p13w== 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=H5aKhL0H5aovfWEQe3Yl5wVuG9Fmcah6YUsPGQ5/tTo=; b=Cej5osMIoxWlPa8K9jfGdPSsczMsgkFMySQmuj+k13jwrToxbQXWRqE0GEINywgaBv eCd4ymJApiUdmwTHdzM/N3YJMicfnT54iCsYj3a5ryJL7VOKBnFlni77XzoEW2rd9Civ 3qLXj74+hRYMlrJX5z4XlEw1ulC4voObWZRmy5Ctw98ISO1FtzUmK/qLG4W1SBxLpypi izcpq+pOjBNovPOqmM2Vuv6Wx+wn1NRermMqop0bjtIQKQyYAN6iZ+hDOLO4JUSRTVu3 kNNxp2QQ8dBch6rUqSzjQ4MeSu0n6PPQffvPM8nZlAmiBButm0u+N6w6ebffrknIqOu6 RuiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ObkFWLkU; 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 u3-20020a509503000000b00447b2f52d55si1571662eda.627.2022.08.26.08.39.36; Fri, 26 Aug 2022 08:40:01 -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=ObkFWLkU; 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 S1344533AbiHZPSv (ORCPT + 99 others); Fri, 26 Aug 2022 11:18:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344522AbiHZPSe (ORCPT ); Fri, 26 Aug 2022 11:18:34 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEBF8E1AA6 for ; Fri, 26 Aug 2022 08:12:22 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id a65so1834564pfa.1 for ; Fri, 26 Aug 2022 08:12:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc; bh=H5aKhL0H5aovfWEQe3Yl5wVuG9Fmcah6YUsPGQ5/tTo=; b=ObkFWLkU/W6NS0S5cvTChiL+vaXssKRwVhvY3/BYrQfY1cdJLyW0tnc0OQwYCn1F69 YiUJh5Q+5PGyeraq4IXMbPladtjkb4SaQHupeleX75BfSFJoPwgfvGs5Q05+MwmMrbZY lmcsLF2kpusabWR1QDZcwTMGPazOwTFykhkns= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=H5aKhL0H5aovfWEQe3Yl5wVuG9Fmcah6YUsPGQ5/tTo=; b=0TroGZaUqnKHbpQB601I9Fss/dxOSWC5ALrzU38HFYdZgPdvVHYuqc6AlJr5T7Pl0U YRfOuDlzLCJiZGAQQ23olsfZm2PhglXHYR1/qL86kPB4F5A3bMDrmcRmPlzYEXEtQAWg gR5n11NGGWfc/ZngQCdYxjgMfrMR5fPuiSfPcTdkjlK2Qjs0dU9V/mgB+mm/3O08/0Qy r1n+mkGwvGO0xvt1LrplBQqNHuGBMTEhCXJN3zVZWBcqGOLTp2+miROTMh+chR+tcpUn PI6ebUjQtHevzm9Wi6SvHusRmjPfWNO38hhi2m68J69bexXEmYHTQh4fG+YW/ZIhJyeF 9OOg== X-Gm-Message-State: ACgBeo0MjJ1KK1I8IKTxWBZTVr/XoJkoDsl7px8j3W2RU+2HirUTewEr aebYczaFQKJVvKdCr/91m4YQaw== X-Received: by 2002:a05:6a00:1a89:b0:536:5dca:a673 with SMTP id e9-20020a056a001a8900b005365dcaa673mr4311507pfv.71.1661526732189; Fri, 26 Aug 2022 08:12:12 -0700 (PDT) Received: from localhost ([2620:15c:11a:202:87ff:bd4c:214b:f283]) by smtp.gmail.com with UTF8SMTPSA id z1-20020a17090a014100b001f1694dafb1sm1789508pje.44.2022.08.26.08.12.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 26 Aug 2022 08:12:11 -0700 (PDT) Date: Fri, 26 Aug 2022 08:12:09 -0700 From: Matthias Kaehlcke To: Johan Hovold Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Johan Hovold , linux-clk@vger.kernel.org, Krishna Kurapati , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Douglas Anderson , Bjorn Andersson Subject: Re: [PATCH v2 2/2] clk: qcom: gcc-sc7280: Keep the USB GDSCs always on Message-ID: References: <20220825182152.v2.1.I45235b7c40997bc2abf813e4722b4dcdd6aecf6b@changeid> <20220825182152.v2.2.If09027f73daa6e1ed95f5eab02326b543c67132e@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 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,T_SCC_BODY_TEXT_LINE 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 Fri, Aug 26, 2022 at 09:16:38AM +0200, Johan Hovold wrote: > On Thu, Aug 25, 2022 at 06:21:59PM -0700, Matthias Kaehlcke wrote: > > When the GDSC is disabled during system suspend USB is broken on > > sc7280 when the system resumes. Mark the GDSC as always on to > > make sure USB still works after system suspend. > > > > Signed-off-by: Matthias Kaehlcke > > --- > > > > Changes in v2: > > - set the flags of the GDSC not of the GDSC power domain > > - updated commit message > > > > drivers/clk/qcom/gcc-sc7280.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/clk/qcom/gcc-sc7280.c b/drivers/clk/qcom/gcc-sc7280.c > > index 7ff64d4d5920..adef68d2cb0b 100644 > > --- a/drivers/clk/qcom/gcc-sc7280.c > > +++ b/drivers/clk/qcom/gcc-sc7280.c > > Perhaps you can add a comment here about why this is needed similar to > what I did for sc8280xp: > > https://lore.kernel.org/all/20220805121250.10347-3-johan+linaro@kernel.org/ From Bjorn's comment on the sc7180 patch it seems it's not an dwc3 implementation issue. IIUC the GDSCs should have a retention state that would be used during suspend. > > @@ -3127,7 +3127,7 @@ static struct gdsc gcc_usb30_prim_gdsc = { > > .name = "gcc_usb30_prim_gdsc", > > }, > > .pwrsts = PWRSTS_OFF_ON, > > - .flags = VOTABLE, > > + .flags = VOTABLE | ALWAYS_ON, > > }; > > > > static struct gdsc gcc_usb30_sec_gdsc = { > > Look good otherwise. For both patches: > > Reviewed-by: Johan Hovold Thanks!