Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp73747rwe; Fri, 26 Aug 2022 00:32:05 -0700 (PDT) X-Google-Smtp-Source: AA6agR5wT3lKHdeNYH95ygVd1POkv4I2OV+mDR0JwjYgCyyU8BRtf5WhH39m4qsPGrZJb3ntlTuA X-Received: by 2002:a17:90a:c782:b0:1f7:a4ed:11a1 with SMTP id gn2-20020a17090ac78200b001f7a4ed11a1mr3062490pjb.12.1661499125421; Fri, 26 Aug 2022 00:32:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661499125; cv=none; d=google.com; s=arc-20160816; b=OWXglqMYSCi4QcZb+MRU8cUeZ9Z6t/v/jHD1W7T6hc9ReQ+EIgma6wRKB3g6DE5htj cnx/oIchy1a1exhfPoEg4lt8HrvASfthy5CO0noEzQKbVNsPsxxhev1df3fkv4GvQbL2 qM5mH5NYgp6zr5NidrBf3S9WOGh/QzdhsUxA5MnhCZwnFbnfY2WlIcOZXbkd1gtU0rnf UsrXnp77vrtnz31LZzJ4uPt54PUqxyDvJI3vwRnh6yc542TKc5kCslyvPV59+vM+gDVT LIwT44E5a2YIfKV6pzjwZ8gCLreTDNfdc0c6JVbIegtMJfL4ilGLAwYBN7x0vQDwWlUm YDhg== 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=BgiCJW5aGaFbL1sV2g8Gr06RbyZ/2eSF9Nwgj57x8f8=; b=FbzstyEVrgCBHhd0pR68Crh8fXvtUYX5Fhxs7MV/Ezptsc547S3Np3+lHKB3y/pTK8 zslT2l+UGPyFJwHGWCHM6zuY5iO+0BV+F6koT3vqmJbD51ZrSloL9zMO9d2+V+XzU5Hw nM4VcewYn9YVuYkxboCj34VYCq+V931hW/raYotoO92zBHdd5RwCVwothwc2gxiA9x4Y AeZmSFHg4os5xG4iimMqHVKU5PfjE8b30ZHy9k+b0xNGrYHxBysbRdTgQ1CpEwDlcu1w UvuxNRJGB7J+KJYpOkWatXrNJ97bF9xwN1eipmCYXVOiJHws+zVwKKyjIAFLLc2HVtY9 972A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eVJrRYxI; 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 m4-20020a625804000000b0050605f7112bsi1113580pfb.130.2022.08.26.00.31.54; Fri, 26 Aug 2022 00:32:05 -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=eVJrRYxI; 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 S244980AbiHZHQg (ORCPT + 99 others); Fri, 26 Aug 2022 03:16:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244493AbiHZHQd (ORCPT ); Fri, 26 Aug 2022 03:16:33 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D80587688; Fri, 26 Aug 2022 00:16:31 -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 AD26B61CC3; Fri, 26 Aug 2022 07:16:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09F75C433C1; Fri, 26 Aug 2022 07:16:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661498190; bh=wqk1HzXb2rBovh/rKpl4Yg9KEE+WbiP1hgGfqq5MXss=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eVJrRYxISVuTY3gzomQfPWUtggymAdcCxg6rwKwbVorTkbRqw1o9eeupvktWZ7nff 1jPNWAUuQnH2NyN21SeSNDa/gXMvuDUPkHgxubXZzsekGyCz7L6ZBTKTmL83TLaKso JmcUYh9cKrHMx2jJGHTLyL0W6jfErD4zzjlfeamj/n7BuhxgX6QL7IU4rJ8JY0eqPQ CkvBfeLNxDeMaxeMq0xSUQtvMQuzMuvfE4W1lLsG9DEwtzOq1i3ah5QzAubkbpeqbK tFFMBeEIDJu1Zk0E2anNPQRqiIKshhkqP0e2nRSFF/lH89TVa4q9UUhQ7TsrkFT/TZ LFlMB+9TnV46A== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1oRTa2-0000qb-31; Fri, 26 Aug 2022 09:16:38 +0200 Date: Fri, 26 Aug 2022 09:16:38 +0200 From: Johan Hovold To: Matthias Kaehlcke 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=us-ascii Content-Disposition: inline In-Reply-To: <20220825182152.v2.2.If09027f73daa6e1ed95f5eab02326b543c67132e@changeid> 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 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/ > @@ -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 Johan