Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1038647rwb; Wed, 7 Dec 2022 07:59:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf7vaKxxYblBQ+7nKF+o9+++tGZEa8tfgosvQb/cDrO6O7F6KtiO529T/54hUU63yh3dbcAn X-Received: by 2002:aa7:cb96:0:b0:461:bacd:c85d with SMTP id r22-20020aa7cb96000000b00461bacdc85dmr38766502edt.278.1670428761668; Wed, 07 Dec 2022 07:59:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670428761; cv=none; d=google.com; s=arc-20160816; b=TreyvRQBVonojqR8JNmTkyBMPsI9rDC5XROnSxoxSYOVZATN2N10Xwq1Hw/mbjVtLM ebnuhPCr3yZRS8DqtnZDzmHHPS99swl5UDCX9ZIq41I72lI2IiEANG1En43QocszTC9Y FuXf2/HanFqwW0wGOTMGrsS/+b57nMF8s0XIL2wBoIhETo8aQpMsu1tPae+OM/oNy7n+ FQTCWunETdhnek/edqEDap/CeGYwuF6OZOZbfNOY/iTIHEp7BsSDoliU2OsnpVtIe1YM Dyo22wkwKn0r1qlVrZxGCJEhZDqyHhl03/PLiXrY/pQn5aplmImR8xtv3FOVlypfBhtI 4lRw== 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=9GXVtFbyLH9bXbPp6XoAN6tnNePeiBDOdXpTyQdMNU8=; b=mOcgfkF8VkAJer+XyZ5Sr4ksorQSjuQOvcEoECp5qm3BoIjqODXyedplQgKJwv9pp5 8jGMWVBrTKVBITxtVLaJYP6KGJKZ7B3EbhzLWZ+Iy/WdOa3/aMWc1xyZd3rYO+dBkJlq WrdavFNGPKf4J3bsxk3stNnyff5ksNjnMMHdXitma47gwkLgsjuVPGX/ODhhY00KnoNE IDtn2D3Ae3QG+9n3Y+mqDRBvqtciZeX3TemN6pQZq1nneQGX4Z4gzioYqFtAZEBmwrce ON0EZlZT2dwOzK3aOs6Zmiv0A4VPrrqJ0bp8wGlAC9UuP6SMv9JPpUJGnRmju7ucwqPb 56Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qBxziTGI; 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 tl2-20020a170907c30200b007c0efb68351si6378592ejc.577.2022.12.07.07.59.03; Wed, 07 Dec 2022 07:59:21 -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=qBxziTGI; 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 S229699AbiLGPrh (ORCPT + 77 others); Wed, 7 Dec 2022 10:47:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229660AbiLGPrf (ORCPT ); Wed, 7 Dec 2022 10:47:35 -0500 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8ADA2C63 for ; Wed, 7 Dec 2022 07:47:33 -0800 (PST) Received: by mail-pj1-x1035.google.com with SMTP id w15-20020a17090a380f00b0021873113cb4so2067072pjb.0 for ; Wed, 07 Dec 2022 07:47:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=9GXVtFbyLH9bXbPp6XoAN6tnNePeiBDOdXpTyQdMNU8=; b=qBxziTGIEROT7SzFrJFkWDorJCQs/P38DM7vdfqHze/nkpaFKYGBCX14OryUXqwC6U 0js3/UxKdJRK+y7bI55wnV1GJNiPPxagXJssETECJoLRMa4N+utAOam1dN9EIQFi7M8z Yc3sa1SxKfuVxfI9ky3VUawKcgQzJ4PunzOxx4+z15IswpsslAMOjtxtbYMavVoVFOxR d/yqfycBOQHg3N3dK9hMSVIACD+xVPqoCTFwp0qPdlssuqjS/NXnseecyzS/SOLdE8J7 QphHNRlExgkTaUfGepgyxMVI7dEeQKlXawqczZZsB85U45fezwIzFIv6qVRHA8FhDjKp +9bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9GXVtFbyLH9bXbPp6XoAN6tnNePeiBDOdXpTyQdMNU8=; b=7BZ/mDZFAz1rAr6KWLAa9fEoXc5jwlgoGDn8jd+LpU/Y2fUEW5JnQtKR6ZFHbwRs8G bxJhldZbIAC+NPx2whON6q/tOWADwnYQ7JzkGBRpOS7wGlrG04ToeDu07uBAMOovvEoL uWa/J390e+s35RbdwaKo9up09o2RfQprdkZAlQpxqbsvP4iRLSKi28++hBzlbW30u2lN hXfXRkk5uMF8ANcVw3lbkaEI+vWyslYzf+QS50SxrVxpwYMOm+8PgNwxWSO6sLUNyEkm deRRT4KSDn/c8Jtf+MrfxN44QXvCX+R7UmIDMz6MasU5KqCGVnikZFl5NcxhwKbA34Mp ZZWA== X-Gm-Message-State: ANoB5pn0GDqRFffKNu4ThSE3+JHt4XGmCZYAffDJdEFd/HE5pcQq34jW Y0vADMahSYGCzpeHhfUJQc0dlNOEEMYj3jX5qHuUqA== X-Received: by 2002:a17:90b:268b:b0:219:ff4d:b64b with SMTP id pl11-20020a17090b268b00b00219ff4db64bmr8237396pjb.164.1670428053074; Wed, 07 Dec 2022 07:47:33 -0800 (PST) MIME-Version: 1.0 References: <1664960824-20951-1-git-send-email-quic_akhilpo@quicinc.com> <20221005143618.v7.4.I5e64ff4b77bb9079eb2edeea8a02585c9e76778f@changeid> In-Reply-To: <20221005143618.v7.4.I5e64ff4b77bb9079eb2edeea8a02585c9e76778f@changeid> From: Ulf Hansson Date: Wed, 7 Dec 2022 16:46:56 +0100 Message-ID: Subject: Re: [PATCH v7 4/6] clk: qcom: gpucc-sc7280: Add cx collapse reset support To: Akhil P Oommen Cc: freedreno , dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, Rob Clark , Bjorn Andersson , Stephen Boyd , Dmitry Baryshkov , Philipp Zabel , Douglas Anderson , krzysztof.kozlowski@linaro.org, Andy Gross , Konrad Dybcio , Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.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 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 Wed, 5 Oct 2022 at 11:08, Akhil P Oommen wrote: > > Allow a consumer driver to poll for cx gdsc collapse through Reset > framework. Would you mind extending this commit message, to allow us to better understand what part is really the consumer part. I was expecting the consumer part to be the GPU (adreno) driver, but I may have failed to understand correctly. It would be nice to see an example of a typical sequence, where the reset is being asserted/deasserted, from the consumer point of view. Would you mind explaining this a bit more? > > Signed-off-by: Akhil P Oommen > Reviewed-by: Dmitry Baryshkov Kind regards Uffe > --- > > (no changes since v3) > > Changes in v3: > - Convert 'struct qcom_reset_ops cx_gdsc_reset' to 'static const' (Krzysztof) > > Changes in v2: > - Minor update to use the updated custom reset ops implementation > > drivers/clk/qcom/gpucc-sc7280.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/drivers/clk/qcom/gpucc-sc7280.c b/drivers/clk/qcom/gpucc-sc7280.c > index 9a832f2..fece3f4 100644 > --- a/drivers/clk/qcom/gpucc-sc7280.c > +++ b/drivers/clk/qcom/gpucc-sc7280.c > @@ -433,12 +433,22 @@ static const struct regmap_config gpu_cc_sc7280_regmap_config = { > .fast_io = true, > }; > > +static const struct qcom_reset_ops cx_gdsc_reset = { > + .reset = gdsc_wait_for_collapse, > +}; > + > +static const struct qcom_reset_map gpucc_sc7280_resets[] = { > + [GPU_CX_COLLAPSE] = { .ops = &cx_gdsc_reset, .priv = &cx_gdsc }, > +}; > + > static const struct qcom_cc_desc gpu_cc_sc7280_desc = { > .config = &gpu_cc_sc7280_regmap_config, > .clks = gpu_cc_sc7280_clocks, > .num_clks = ARRAY_SIZE(gpu_cc_sc7280_clocks), > .gdscs = gpu_cc_sc7180_gdscs, > .num_gdscs = ARRAY_SIZE(gpu_cc_sc7180_gdscs), > + .resets = gpucc_sc7280_resets, > + .num_resets = ARRAY_SIZE(gpucc_sc7280_resets), > }; > > static const struct of_device_id gpu_cc_sc7280_match_table[] = { > -- > 2.7.4 >