Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp777915pxm; Thu, 3 Mar 2022 04:33:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJxXC5tK4AvGZjMxC8IYZhiawxo+Kbo5w9X3sb7VM9ZG64m4JYL8xGdPGLwDBPW4zhSkC2Rl X-Received: by 2002:a17:90a:10d6:b0:1bc:48ad:c8c8 with SMTP id b22-20020a17090a10d600b001bc48adc8c8mr5091059pje.149.1646310833756; Thu, 03 Mar 2022 04:33:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646310833; cv=none; d=google.com; s=arc-20160816; b=Si9HVF2yedP3K8Y+ild4V6d37FyapgLWE6Zggti034zA5SQy/yImTOEmPS8K449Ilf dReIzVTlf0kya4d8R+2boNiPuM6B5GrCTFKdmgAME2bvO4EMYn5S3N7f4EJImsiv2Vo9 1Ail7zFGf2mIu3O3ZUJJKSg6Mw6EvA/XQF04ayuxdkFbl7PvJnLm0VLA7gMOwE4ZYFDe fsfG9Ea1z/dLchUVCKz28B07o/GJ9RI89kspGXRSK91TP18xbBOX+4TAxrxpmhDCxoWa tyqFQ9niPCq+yPlq168v8VLta2fb2v8dZwAiAiuQ50QMOCM0MrCWo8LEd8o8FtapgmOI hEWQ== 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=hIUIRXFBoXE7LKj0blqQPxppbo/nPIraWqBU8j6waVY=; b=l9/IGS9FrS4B9I8SK3WgDJb9EwdIYdO9g9+rbQuLuXGCcPgCneiOJwKFwVJFPVDgAp XBE5tvxDSD4LT3f6CkPGaJkoJfUo6Jufp2o8EJBPHzbbaEqIrg4YmMGpvuZg2g1KgPz0 /02Sim+TDRRz5Gy19FdbY3AXb4I70a7i2EuKzITwsh3lN7OBXIo/PoYnKZ2iBzfR21gi RCw9TCLJLMyH4NQygvDDBVnwKAiNXY4q1b6uUMSodvdwaZGryLEU+Yq56xmopLgoK1ez CW12oRUB04Bzf9/S8xtlwj9IeNmysZ7sQZep2om4FcSgYJckdDkRuF79XoEwDx1bq+XJ N9PQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VdUl2d8L; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x62-20020a636341000000b003734577c093si1888095pgb.125.2022.03.03.04.33.39; Thu, 03 Mar 2022 04:33:53 -0800 (PST) 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=@linaro.org header.s=google header.b=VdUl2d8L; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232389AbiCCKe0 (ORCPT + 99 others); Thu, 3 Mar 2022 05:34:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232382AbiCCKeW (ORCPT ); Thu, 3 Mar 2022 05:34:22 -0500 Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F10832EFD for ; Thu, 3 Mar 2022 02:33:32 -0800 (PST) Received: by mail-qt1-x82f.google.com with SMTP id bc10so4172364qtb.5 for ; Thu, 03 Mar 2022 02:33:32 -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=hIUIRXFBoXE7LKj0blqQPxppbo/nPIraWqBU8j6waVY=; b=VdUl2d8LLr7udWRlgutHX9PzKUBiepsWR4ZGSOZOMFfx4AWeOCur+bRsfqi1tbR81u A4E/PYgAMzgVyMWZQZuiIiscLz1FUCnSRb6F+V9OV+YTEokff5b7+/uMR8jigHZ6wIeR Ca1blU08Qz0fVJqoNlwxrclYlnOgMQMiZuuFvn9ass0VJRZLfggditK3iHpmZOAFOQY6 8CsOIemjBsMfjJ/dkxgBtrdOdEEStNkmr8W+cY3bLg/4ONpw8zJ6OtSum7vTE2hSmo5q cjv83xod6p2z7GZYj6Vn6C5Z60uj5hrtl/baKGgHEuMRwsApzircFKgSM+k/H5wxlDMg exKg== 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=hIUIRXFBoXE7LKj0blqQPxppbo/nPIraWqBU8j6waVY=; b=ly72IS67gfXZm2AecE1YRTZjLDA40EQ9TQhkYBb25yR7i4R2QYDtlgq1wk3N69tBCb YuZxvbXWVQUlmiQm8gun0qEV0q8lw5ktYA3JCbTMIMS7QvUfVk0ECrYiWyinNq38Bdxj B14SsXSZDEqZQHyBa2QVpJzcV0ay1rD5kU16yTuiQsdg9JZ0OoIVK7Im26/FJx3kpFko IK0ap6ACBRGB/lT+S7RP56u/cAnzsF2MKAfPiVM1seo3lVA2jGTHTWxrSbmVVelDGMG8 THN69fLhpn4BIjHUWjbJrVqIuAFFx6pDwQPRrabM+Z9r5A0rLbKPqmCW77jlCpJLfmZF NqqA== X-Gm-Message-State: AOAM531XNAJn1JAgVxrubjii1QkftctTr70hw//KMjTjkzOMPMVsCkNg AptpHiGOeBqpHbIgNmG7nj9wQzWI2v+KKHN74iY4Ig== X-Received: by 2002:a05:622a:1206:b0:2de:6fa4:41fb with SMTP id y6-20020a05622a120600b002de6fa441fbmr26633601qtx.295.1646303611639; Thu, 03 Mar 2022 02:33:31 -0800 (PST) MIME-Version: 1.0 References: <20220303084824.284946-1-bhupesh.sharma@linaro.org> <20220303084824.284946-4-bhupesh.sharma@linaro.org> In-Reply-To: <20220303084824.284946-4-bhupesh.sharma@linaro.org> From: Dmitry Baryshkov Date: Thu, 3 Mar 2022 13:33:20 +0300 Message-ID: Subject: Re: [PATCH v3 3/6] clk: qcom: gcc: Add emac GDSC support for SM8150 To: Bhupesh Sharma Cc: 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, bjorn.andersson@linaro.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,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 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. > +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