Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3587311pxp; Tue, 8 Mar 2022 18:09:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJwZ5rIWwp0+bvx2HAFPN6mqXIXZgoWZsO+Zm9QW+t3v+/Kqcmb295v8K+eJf+MCLpi2OJym X-Received: by 2002:a17:90a:7082:b0:1bd:3838:3622 with SMTP id g2-20020a17090a708200b001bd38383622mr7877571pjk.101.1646791799801; Tue, 08 Mar 2022 18:09:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646791799; cv=none; d=google.com; s=arc-20160816; b=fW9yj/WjV2L16LcIEeJ9SWtO0quOcXT/pbvx6yd7AnK8VqwKNQ+UaOLXjCpzDN2T5h 5eJUcT5M5Ii58dgskWkyNRVky3iVyKS56iEKFrMUiBvPgSH3jrILJhNV6b/10Z7Iw6Nt htZI7z8XgrQjovaA9Dci4sohFlte0PQn32Szvy1xleYfQoIRsvpH+W5/xMXX+AFTLfj6 lwKX7jFFfSzqZa7AMnU2n3B+cHJQtQdaxXVr8dpX8rTqIc7KXPaHRp+KB1Gfb2vMOJMA KZ9FDWBKx0LTzqEzx5THzlrvRK81ao4HlxTU/R9pV0VP0pXUcP8VA4s2vtdS1Uz8Jvj2 6ZYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=einqUj8Wi+UvD8w2Ta+vJyxofhSyix4HSnpUvssthgk=; b=qG8m0CQ2X16Ag6mjPCwEkbDVCrdjHwiY5aBJxZV5e2S/h7beXUcPlRnjAaJ6l7f+p8 d04V+0SAHXT7Pdm0IM+U2G0fo3sZwRILJT1EpsFHM3Lwwsw+IpUgF5CBXlPE5NKb7jvI jrpstrRKhN+sCNK8OIgSQdgd+KSV5o1f0GpOHP+H27wwTvvUyuFjWFM6PaxYkMM1/96i tAYGJQO1H6ET631OU2amVMJBS3B+MwsGyFglcWLT4w/IXyOmspBg+4TIzgp4PHI4w5oN pGinOhTcEd+Df9l06KnMJd3Dj981V94OYqo7el836I1gtPcI5Qcs0d2HvjTwldIWBmXD fdoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CKAddMg6; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id b6-20020a170902b60600b0015201570edesi545897pls.382.2022.03.08.18.09.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 18:09:59 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CKAddMg6; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E3D5F25F251; Tue, 8 Mar 2022 16:39:38 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229958AbiCHXOA (ORCPT + 99 others); Tue, 8 Mar 2022 18:14:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229559AbiCHXN6 (ORCPT ); Tue, 8 Mar 2022 18:13:58 -0500 Received: from mail-qv1-xf34.google.com (mail-qv1-xf34.google.com [IPv6:2607:f8b0:4864:20::f34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AC2C2AC44 for ; Tue, 8 Mar 2022 15:12:52 -0800 (PST) Received: by mail-qv1-xf34.google.com with SMTP id j5so663287qvs.13 for ; Tue, 08 Mar 2022 15:12:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=einqUj8Wi+UvD8w2Ta+vJyxofhSyix4HSnpUvssthgk=; b=CKAddMg6Dq2FAD8EVcpxFwXN6hfdoCH0AXMFbVIPbC61cQk788y9T2Thx3pRqEA+Pq NGBF2xP1CZKX+9OEKOidtavyVZebq9UjF1q6yPZ/kG/n1VWbMa51u1yVoDjEakWNazqw 7qM+CIbEh/7wr+oHVMKBIz230FNDLsc5O1RwcVV6SKxeBIHkKtvmIxFF7GYyD3C6Z1jq NiAZ4GmQXM5+Zqzwpuf6qUJoF2jjPatDE95RuEcgfw2zK1KZbR4BfotbsEFAyxfWwhwq 4lg+Z0qiOCvukGomPenNFelv1ticP+T7TqY8JVlpW48i8VbPYHXEU2HR6wpCED8DZ0vq 5Klg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=einqUj8Wi+UvD8w2Ta+vJyxofhSyix4HSnpUvssthgk=; b=HBYB/tQCUouo/HRdUPMB/dZ5VD8r7yFrjYn0/BVtnf/4hpznzD/cksF41U/4zAHlDl 0Cvzf8dxNmxgpea1wOihySGXvfjEgmOwtfeluCFBTj57hPkxzEhjbYyngO3zkVbbqtTm cgaGzdyBXD9NXnIa/Z4abXc0dm3ATprFDhY9dk7IJM8X90lKmOFI2Twj1uXGA7hx6Pml 6fltyC//HDO633dDLh3MCeye08Q1zgDilti3ssF1Vo7+6qQcN5TIUK1PGTy+BRgwcDRc js96mxYFAw7KABK4p3E5B7R17dvBWMV7Xk9YhfXV1FSw95lgcqnlXaVtULEPxrcw3uv/ Z9Lg== X-Gm-Message-State: AOAM533us334MY/eCOHJ8l0Q7iUEMFtleiu+sIIILZ1EuFQAQgb5g8vB 7gcLgKMXy1ANSo9qsOa+H8ZzyOzkKZkAwvB8W1J5Ig== X-Received: by 2002:a0c:d807:0:b0:42c:1ff7:7242 with SMTP id h7-20020a0cd807000000b0042c1ff77242mr14521431qvj.119.1646781135658; Tue, 08 Mar 2022 15:12:15 -0800 (PST) MIME-Version: 1.0 References: <20220303084824.284946-1-bhupesh.sharma@linaro.org> <20220303084824.284946-4-bhupesh.sharma@linaro.org> In-Reply-To: From: Dmitry Baryshkov Date: Wed, 9 Mar 2022 02:12:04 +0300 Message-ID: Subject: Re: [PATCH v3 3/6] clk: qcom: gcc: Add emac GDSC support for SM8150 To: Bjorn Andersson Cc: Bhupesh Sharma , linux-arm-msm@vger.kernel.org, bhupesh.linux@gmail.com, agross@kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, sboyd@kernel.org, tdas@codeaurora.org, mturquette@baylibre.com, linux-clk@vger.kernel.org, robh+dt@kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Wed, 9 Mar 2022 at 02:09, Bjorn Andersson wrote: > > On Thu 03 Mar 04:33 CST 2022, Dmitry Baryshkov wrote: > > > On Thu, 3 Mar 2022 at 11:48, Bhupesh Sharma wrote: > > > > > > Add the EMAC GDSC defines and driver structures for SM8150. > > > > > > Cc: Stephen Boyd > > > Cc: Bjorn Andersson > > > Signed-off-by: Bhupesh Sharma > > > --- > > > drivers/clk/qcom/gcc-sm8150.c | 10 ++++++++++ > > > include/dt-bindings/clock/qcom,gcc-sm8150.h | 1 + > > > 2 files changed, 11 insertions(+) > > > > > > diff --git a/drivers/clk/qcom/gcc-sm8150.c b/drivers/clk/qcom/gcc-sm8150.c > > > index 85a431ac417b..08ba29e3a835 100644 > > > --- a/drivers/clk/qcom/gcc-sm8150.c > > > +++ b/drivers/clk/qcom/gcc-sm8150.c > > > @@ -3448,6 +3448,15 @@ static struct clk_branch gcc_video_xo_clk = { > > > }, > > > }; > > > > > > > Is it available on sm8150 or only on sa8155au? I think this deserves > > at least a comment. > > > > The ethernet controller is there on SM8150 as well. Ack > > Regards, > Bjorn > > > > +static struct gdsc emac_gdsc = { > > > + .gdscr = 0x6004, > > > + .pd = { > > > + .name = "emac_gdsc", > > > + }, > > > + .pwrsts = PWRSTS_OFF_ON, > > > + .flags = POLL_CFG_GDSCR, > > > +}; > > > + > > > static struct gdsc usb30_prim_gdsc = { > > > .gdscr = 0xf004, > > > .pd = { > > > @@ -3714,6 +3723,7 @@ static const struct qcom_reset_map gcc_sm8150_resets[] = { > > > }; > > > > > > static struct gdsc *gcc_sm8150_gdscs[] = { > > > + [EMAC_GDSC] = &emac_gdsc, > > > [USB30_PRIM_GDSC] = &usb30_prim_gdsc, > > > [USB30_SEC_GDSC] = &usb30_sec_gdsc, > > > }; > > > diff --git a/include/dt-bindings/clock/qcom,gcc-sm8150.h b/include/dt-bindings/clock/qcom,gcc-sm8150.h > > > index 3e1a91876610..40596b9ded06 100644 > > > --- a/include/dt-bindings/clock/qcom,gcc-sm8150.h > > > +++ b/include/dt-bindings/clock/qcom,gcc-sm8150.h > > > @@ -243,5 +243,6 @@ > > > /* GCC GDSCRs */ > > > #define USB30_PRIM_GDSC 4 > > > #define USB30_SEC_GDSC 5 > > > +#define EMAC_GDSC 6 > > > > > > #endif > > > -- > > > 2.35.1 > > > > > > > > > -- > > With best wishes > > Dmitry -- With best wishes Dmitry