Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3587719pxp; Tue, 8 Mar 2022 18:10:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJx2fQ7iXhL99hvnQ4YHCjXFV+51pN0660ZFzRdvGOBojXE/oEFMuUj6q9WQ2aYCsUPWt2ha X-Received: by 2002:a17:90b:3886:b0:1bf:1a16:25d4 with SMTP id mu6-20020a17090b388600b001bf1a1625d4mr7884576pjb.193.1646791834059; Tue, 08 Mar 2022 18:10:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646791834; cv=none; d=google.com; s=arc-20160816; b=k9VAM6QkIic28fise2DyhKFvCTnK+3bycClO6x+wCjhRyFjue+8qUGJrwIQlaSjRf2 76efFYsH0YbnLQW8cXpRO5r5cQMDD9lSevCD/nVQVIks6gUr5C7LR07gdDZyhHOZUonI 08gumgcOwL+nDDSMtGlXfZpq/eUT4X2c5ps5rvWpVBzE/GmxBa9BzbbxSaYG6vl24uSx EBBb39VCa5fEcMYQOi73yIJvJg7Cw1i6ICiVYSNY//vyuikcw6Dn8Z+FuihbToB7sYqj TW4X6fSP4HuYRRpkDFdvk5wKN+R0H224oCGI+rfk35XGl5eZpnNKtoggWx/1hMY/i5cb CPrA== 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=xuc98iQ6lLN5ZWjfMkCi08X6OqD4xJL8S5CE7+O2xXo=; b=uzUH1XHKdykySlU9ouSsRIYlRFtmcwxX4LgCtbs8gXD5eqeIqFJqrTe+e1rUcQC+j5 xUYQ2TKJBC6X/pCM8xwPhKw/8eiChmRdngf+IKQGmAJqqestIlebo/bxGsgVp11NL9pr GffBLoOuGuiwKsg40KRKkffmEpL3AZ8Bx1O7zsGEiziO1cTI3CqEJvERI9iLjAatrevN tv3bwPD04LssPV8mXoKeysJF9RtsRW56dYKVcqelmTfBM3QIUA2idPiV/erhUaojwOg8 vT2mHw1FbDsOeEvJ80ko/a+7/xrzc2H8r3QO3S34axIy5cNZSJkLVf1n6QED6sO/VLs4 NWDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ufjwvyzN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id s29-20020a056a00179d00b004f7572b0041si338400pfg.71.2022.03.08.18.10.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 18:10:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ufjwvyzN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 1221326879F; Tue, 8 Mar 2022 16:40:13 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229885AbiCHXKt (ORCPT + 99 others); Tue, 8 Mar 2022 18:10:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229598AbiCHXKs (ORCPT ); Tue, 8 Mar 2022 18:10:48 -0500 Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com [IPv6:2607:f8b0:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AF0E6F4AE for ; Tue, 8 Mar 2022 15:09:48 -0800 (PST) Received: by mail-ot1-x329.google.com with SMTP id w17-20020a056830111100b005b22c584b93so455379otq.11 for ; Tue, 08 Mar 2022 15:09:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=xuc98iQ6lLN5ZWjfMkCi08X6OqD4xJL8S5CE7+O2xXo=; b=ufjwvyzNLdj8kL4OhOSrTDZr9TwtTMGBSYKptuax0eItS0/K2Li7gLDPnKGMSVhxb0 AVhfV82OUzj4q6JGYm3SJjk7imPLYPvVWFEO7Hnvu22PjY7s+7eefgq1tGg2xQvMD5C2 sZV0znnqEGyrfEKDzwX/Pzt7gjZvZapFf2MyBY3NHA1dRW+G5mrX2h6l7yXqZEdMRepF QQmuDgriXkK7wdMr2PHSVgeKuxkIB90+avmkKV5p17EWJln+MVCytyavDctuDJJIAJqM 1YjRl1H5BKzo5yrDI8SbzUe8CKigHm7BWSTWlwIG0IoeV9jb8JsLgg96waj9ZOHo9jGk P6ZA== 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=xuc98iQ6lLN5ZWjfMkCi08X6OqD4xJL8S5CE7+O2xXo=; b=PnedKXmNjDToJhyL+pWOVt6eHg9H+ZNDCXuFQJSKwKOlCfxiT1MKHxZhH3tHhBfB10 GGK1TgwRSnsQZf9W5446TNrlt2Vf91ROMp/KTrWlt1+4zTsd6KuJcCUE2XRH5vxzhPhS LlyfckNcyMWCrfLI4VKAr/RuCfIq7pvfo8Wk6cSWfxQ7VV/3GbiVa7s4Kb8+ZE8iYvj5 Acpq88FOcc7F9V5Syr7On3YotbLb9zZrKzm2GrgQmqjilJfKF7iPpKp5aO8wArLcSyf3 PYck+l2n1JZRK5/iXaZ3x1piVPQ+4sCMrykrX9nLdeDEvp9W4JM2yY6OmpEW/+OcaGY9 MYxw== X-Gm-Message-State: AOAM531iyPt33yrI6Fdtj9vsMLlmoufcTHwqIXhk6GLjQPNqyd7SLZWL TmEdcxY+sua5djtp1eLDNOb46A== X-Received: by 2002:a9d:518c:0:b0:5b2:364b:7fbd with SMTP id y12-20020a9d518c000000b005b2364b7fbdmr5766151otg.255.1646780987672; Tue, 08 Mar 2022 15:09:47 -0800 (PST) Received: from builder.lan ([2600:1700:a0:3dc8:3697:f6ff:fe85:aac9]) by smtp.gmail.com with ESMTPSA id z26-20020a9d62da000000b005b23f5488cdsm68215otk.52.2022.03.08.15.09.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 15:09:46 -0800 (PST) Date: Tue, 8 Mar 2022 17:09:45 -0600 From: Bjorn Andersson To: Dmitry Baryshkov 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 Subject: Re: [PATCH v3 3/6] clk: qcom: gcc: Add emac GDSC support for SM8150 Message-ID: References: <20220303084824.284946-1-bhupesh.sharma@linaro.org> <20220303084824.284946-4-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 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. 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