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 15F54C6FD1F for ; Tue, 14 Mar 2023 16:09:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229886AbjCNQJI (ORCPT ); Tue, 14 Mar 2023 12:09:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229636AbjCNQJF (ORCPT ); Tue, 14 Mar 2023 12:09:05 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0805279BA for ; Tue, 14 Mar 2023 09:08:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1678810104; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ye+Zs2ZnlofuAeakJPo0MMXWynO6qrZaDf6LrDdzxr0=; b=FuGRN+O5J2T+kl32LSrkyeXlFZAvyvhSLdna8cnnEm8wuKIgX5SacMJd6ObwGJRTq3fQ3H IjFealHP6oQ3bpGXbx7uSiu6GhE3Z3LHdcjOGIkj1AKf+hhQmqJf5TSQm0GvwXTJIql64B g/5Cmz8ZuhXK74s2W5N/71Vg5Nye+i0= Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-128-qEIt1e48MeCyVe7ck4eGcA-1; Tue, 14 Mar 2023 12:08:23 -0400 X-MC-Unique: qEIt1e48MeCyVe7ck4eGcA-1 Received: by mail-qv1-f71.google.com with SMTP id g14-20020ad457ae000000b005aab630eb8eso2583467qvx.13 for ; Tue, 14 Mar 2023 09:08:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678810103; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ye+Zs2ZnlofuAeakJPo0MMXWynO6qrZaDf6LrDdzxr0=; b=4EYyWYv3CGCR/z5+7R9+UT+Xo8AXTINJC5LPCPkoFVObBk3qtpqH9uThAx2uQ3ztoN 2ekEv5rQ5OeMzYgQz/CVgmctV4hKYcn3O/paFrYs6ZIy8YAbwbmtqHk7U+2ybcUfP6rB qFmslaS94NNOixQ5PcXr6upGiTWBsXw+uAfWGqiG7ySwvNiWKHQof8dVP2dnHYCPG2SQ nFfeleRFuwIaf9AXRFw3pENRP76KO72q5R7XQWyrZFyRc6n/XdMyiGFe5zaX2hVNecE3 XQnlYWLpngaOrM5vSuhDEHQ3XkKwKk6c11cFnyxHxfk9/o+o3uBIqYbo2bGl6VJ+4jZr uzew== X-Gm-Message-State: AO0yUKXIVV1ZzVWrthELFKWOnDXYUsmfnPSkcs1l89avtHQVwbYHiZ5n QANuhrkUT4fMBbZFnto22/11FECJ4Z0VD/s3wNqb5dOTU6Anbv9+LEj5GhBe84gik08yO+KPTtZ 8xYGTw4DzTaLjmoKnBas5V/3b X-Received: by 2002:a05:622a:134b:b0:3b6:3260:fa1d with SMTP id w11-20020a05622a134b00b003b63260fa1dmr63288977qtk.45.1678810102778; Tue, 14 Mar 2023 09:08:22 -0700 (PDT) X-Google-Smtp-Source: AK7set8+Q/YIESpi+tpsA8aTC6oiVaMszVdOh9hZlBEg5fft+wCfZpLbUpRbaWQbPDeCDDmvmA+rsw== X-Received: by 2002:a05:622a:134b:b0:3b6:3260:fa1d with SMTP id w11-20020a05622a134b00b003b63260fa1dmr63288928qtk.45.1678810102361; Tue, 14 Mar 2023 09:08:22 -0700 (PDT) Received: from halaney-x13s (104-53-165-62.lightspeed.stlsmo.sbcglobal.net. [104.53.165.62]) by smtp.gmail.com with ESMTPSA id s81-20020a374554000000b007426b917031sm1989714qka.121.2023.03.14.09.08.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Mar 2023 09:08:21 -0700 (PDT) Date: Tue, 14 Mar 2023 11:08:18 -0500 From: Andrew Halaney To: Konrad Dybcio Cc: linux-kernel@vger.kernel.org, agross@kernel.org, andersson@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, vkoul@kernel.org, bhupesh.sharma@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, peppe.cavallaro@st.com, alexandre.torgue@foss.st.com, joabreu@synopsys.com, mcoquelin.stm32@gmail.com, richardcochran@gmail.com, linux@armlinux.org.uk, veekhee@apple.com, tee.min.tan@linux.intel.com, mohammad.athari.ismail@intel.com, jonathanh@nvidia.com, ruppala@nvidia.com, bmasney@redhat.com, andrey.konovalov@linaro.org, linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, ncai@quicinc.com, jsuraj@qti.qualcomm.com, hisunil@quicinc.com Subject: Re: [PATCH net-next 05/11] clk: qcom: gcc-sc8280xp: Add EMAC GDSCs Message-ID: <20230314160818.2yopv6yeczne7gfi@halaney-x13s> References: <20230313165620.128463-1-ahalaney@redhat.com> <20230313165620.128463-6-ahalaney@redhat.com> <3f37eede-6d62-fb92-9cff-b308de333ebd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3f37eede-6d62-fb92-9cff-b308de333ebd@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 14, 2023 at 04:13:18PM +0100, Konrad Dybcio wrote: > > > On 13.03.2023 17:56, Andrew Halaney wrote: > > Add the EMAC GDSCs to allow the EMAC hardware to be enabled. > > > > Signed-off-by: Andrew Halaney > > --- > Was it tested to not cause issues on access on "normal" 8280xp? > AFAICS if there would be any, they would happen at registration > time, as gdsc_init already accesses its registers No, I've only tested this series on the sa8540p-ride. I luckily also am working from an x13s, I will use that to confirm nothing strange happens with this applied before sending v2 and confirm the results. Thanks for the idea, Andrew > > Konrad > > drivers/clk/qcom/gcc-sc8280xp.c | 18 ++++++++++++++++++ > > include/dt-bindings/clock/qcom,gcc-sc8280xp.h | 2 ++ > > 2 files changed, 20 insertions(+) > > > > diff --git a/drivers/clk/qcom/gcc-sc8280xp.c b/drivers/clk/qcom/gcc-sc8280xp.c > > index b3198784e1c3..04a99dbaa57e 100644 > > --- a/drivers/clk/qcom/gcc-sc8280xp.c > > +++ b/drivers/clk/qcom/gcc-sc8280xp.c > > @@ -6873,6 +6873,22 @@ static struct gdsc usb30_sec_gdsc = { > > .pwrsts = PWRSTS_RET_ON, > > }; > > > > +static struct gdsc emac_0_gdsc = { > > + .gdscr = 0xaa004, > > + .pd = { > > + .name = "emac_0_gdsc", > > + }, > > + .pwrsts = PWRSTS_OFF_ON, > > +}; > > + > > +static struct gdsc emac_1_gdsc = { > > + .gdscr = 0xba004, > > + .pd = { > > + .name = "emac_1_gdsc", > > + }, > > + .pwrsts = PWRSTS_OFF_ON, > > +}; > > + > > static struct clk_regmap *gcc_sc8280xp_clocks[] = { > > [GCC_AGGRE_NOC_PCIE0_TUNNEL_AXI_CLK] = &gcc_aggre_noc_pcie0_tunnel_axi_clk.clkr, > > [GCC_AGGRE_NOC_PCIE1_TUNNEL_AXI_CLK] = &gcc_aggre_noc_pcie1_tunnel_axi_clk.clkr, > > @@ -7351,6 +7367,8 @@ static struct gdsc *gcc_sc8280xp_gdscs[] = { > > [USB30_MP_GDSC] = &usb30_mp_gdsc, > > [USB30_PRIM_GDSC] = &usb30_prim_gdsc, > > [USB30_SEC_GDSC] = &usb30_sec_gdsc, > > + [EMAC_0_GDSC] = &emac_0_gdsc, > > + [EMAC_1_GDSC] = &emac_1_gdsc, > > }; > > > > static const struct clk_rcg_dfs_data gcc_dfs_clocks[] = { > > diff --git a/include/dt-bindings/clock/qcom,gcc-sc8280xp.h b/include/dt-bindings/clock/qcom,gcc-sc8280xp.h > > index cb2fb638825c..721105ea4fad 100644 > > --- a/include/dt-bindings/clock/qcom,gcc-sc8280xp.h > > +++ b/include/dt-bindings/clock/qcom,gcc-sc8280xp.h > > @@ -492,5 +492,7 @@ > > #define USB30_MP_GDSC 9 > > #define USB30_PRIM_GDSC 10 > > #define USB30_SEC_GDSC 11 > > +#define EMAC_0_GDSC 12 > > +#define EMAC_1_GDSC 13 > > > > #endif >