Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1573618iog; Sat, 25 Jun 2022 13:06:59 -0700 (PDT) X-Google-Smtp-Source: AGRyM1skm4jlO92ueHAI3MzJM67Sqp2BLbi+ggV33u310Iwbep/x/8RAouUJRAj+6yY3nh7OlOcT X-Received: by 2002:a63:1152:0:b0:3fd:b58f:5be7 with SMTP id 18-20020a631152000000b003fdb58f5be7mr4796435pgr.164.1656187619678; Sat, 25 Jun 2022 13:06:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656187619; cv=none; d=google.com; s=arc-20160816; b=Gf9V+W7sTrCe0fw7/jG0HXUnJfzIlJma035U4JPWpaFQ03beg2IWE95kN+mIy9HvRY rD+8cWTpEnuGuAt8DQ97Gq5NW3+uPpXniXhaRx2vDSHzFq+DbIyZbn63CiasAViLZPPE w+eGwa7yKvIfQIsfqA7Jk8cKLve97lHGPPDxqZ6viNBtGx3nONGXGOuPUUdAd5Ol/qeG +1fl2TC1mhw7rMN7ETJ1H6yUjmjjghDUc/lTelfmqniyYtv+GHBCtbeMsDAev6iteWnl e2No5FvXqzo/TgTU1GgvfMMSYDiVgadQhFv261a9J0Igvf9b/ovHQ3Drptl1RUV21KbR KV2Q== 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=GoHTL5pc7929tKgNPXg2nW2kzENqcme0/+lvG0VCiB8=; b=D9eJAvt6HsCvSiMxHrY/4UWqOusDxHxoKiv5JIuNdj7sKbUZRi7Ofh2M3C67TVC7Jg BmVyWjIPqyT1Z+bJsw2OrPCxqtPf+l/QOqO59tnHmr0NrFDYZE7PbmXWZ5KLyBY374o/ LvsBE25qMxC56sr4GR7PEYJ3SE4S4FqGnMPQpgLf4AjOzT/J+8Z9A6QRNI8buQeC1Zg3 d6TgRieBCA7SBBCYS+2Yz1y6rzuTZm4n6J1POHcgppJ2+bRj9z9LrSk22KCQNDt1zZ1O nGBSmaiZAYEWm0rMj93ZWWs1yfclu7YwCPpiSsvvkDtqdK028hWxwVGjo8JDxgjJXyPk tuTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="P9/d2vqi"; 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 gz1-20020a17090b0ec100b001dc72c6382csi11204223pjb.31.2022.06.25.13.06.47; Sat, 25 Jun 2022 13:06:59 -0700 (PDT) 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="P9/d2vqi"; 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 S233337AbiFYUAp (ORCPT + 99 others); Sat, 25 Jun 2022 16:00:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233329AbiFYUAn (ORCPT ); Sat, 25 Jun 2022 16:00:43 -0400 Received: from mail-oa1-x30.google.com (mail-oa1-x30.google.com [IPv6:2001:4860:4864:20::30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8064B7EF for ; Sat, 25 Jun 2022 13:00:39 -0700 (PDT) Received: by mail-oa1-x30.google.com with SMTP id 586e51a60fabf-101ab23ff3fso8194431fac.1 for ; Sat, 25 Jun 2022 13:00:39 -0700 (PDT) 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=GoHTL5pc7929tKgNPXg2nW2kzENqcme0/+lvG0VCiB8=; b=P9/d2vqi0S4nDX0/Q7iwQJQXtcSWzOF+75qBFEQXnxYG012L7l7Y6rZtrqpnV8sn/H g6rkxGsOBdw13y9r9b2vdilnR5zuwrJOXtyxuvDPJzKEf0Lbq+ZBVoAyKOKdkC/cB4XA 62sQOQ5g6gDJMRDKtabVKkCKdTOvHdHeGBsPV9KIPRaS27ikp7AkPtt0Iup0UrRyTAx4 Sm+rnL8iYjCrhJmFosCSClpgwoO51DrA9dEU3vmnEzFAZpUGk2Usoy/yg9y1Pe0Sf3qH wpM6zJpivs+tmMMYDJ1iK2sapz3k1ejoqNaNhp9r3IcEcRy66Hq93qfnhpX+EDBbrlS3 XqHA== 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=GoHTL5pc7929tKgNPXg2nW2kzENqcme0/+lvG0VCiB8=; b=1+XjYQu8wTz1WNMVCSt544zgJih4w0mokkN4mT7Ku5xe1rsSvg7oUT4UzBm3mIyblc 1owvHJiqUUZT0hyQ3T1uW2O8HfiNJo7TBynXM5EJ6zlTzewbYp29I/RQXSVfDn70BApU xR5HOLqGH3XviYet3ld4cUx8aO2/eySO/VvH9lyX+V+jD1OwapGoxlwhJnXAbWQ3BDgt 5srEBrLH0ilJS2wVEW8w4yP3LxLJz7SKDx9DJZ54crUfrNnYnenzUcet9QShu9ZfXxsZ NJXWLZtRjJfmjeFGBuaBJe5P86KwZoi+XyhrxQSqYk7689nTKOCo24Zg/9jS8Qohf5gr CTTQ== X-Gm-Message-State: AJIora8Ei6/sQbLSG/dIVSeJfDGxozOdtDlG3PJ9czQ4P4KhwjPn5Prx XiG1f3DVy7N+e+dgiRmn0vUvV3zyVG08iQ== X-Received: by 2002:a05:6870:3920:b0:101:d628:b053 with SMTP id b32-20020a056870392000b00101d628b053mr6084774oap.111.1656187239166; Sat, 25 Jun 2022 13:00:39 -0700 (PDT) Received: from builder.lan (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id y21-20020a056870419500b000f3321caa73sm4160632oac.16.2022.06.25.13.00.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Jun 2022 13:00:38 -0700 (PDT) Date: Sat, 25 Jun 2022 15:00:36 -0500 From: Bjorn Andersson To: Stephen Boyd Cc: Michael Turquette , Stephen Boyd , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, patches@lists.linux.dev, linux-arm-msm@vger.kernel.org, Alex Elder , Taniya Das Subject: Re: [PATCH] clk: qcom: rpmh: Add note about sleep/wake state for BCMs Message-ID: References: <20220517190949.2922197-1-swboyd@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220517190949.2922197-1-swboyd@chromium.org> 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=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 Tue 17 May 14:09 CDT 2022, Stephen Boyd wrote: > The sleep/wake state doesn't need to be set here because of specific > RPMh behavior that carries over the active state when sleep/wake state > hasn't been modified. Add a note to the code so we aren't tempted to set > the sleep/wake states. > > Cc: Alex Elder > Cc: Taniya Das Reviewed-by: Bjorn Andersson > Signed-off-by: Stephen Boyd > --- > > This superseedes a previous patch[1] I sent that tried to fix this. > > drivers/clk/qcom/clk-rpmh.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/drivers/clk/qcom/clk-rpmh.c b/drivers/clk/qcom/clk-rpmh.c > index aed907982344..c07cab6905cb 100644 > --- a/drivers/clk/qcom/clk-rpmh.c > +++ b/drivers/clk/qcom/clk-rpmh.c > @@ -274,6 +274,11 @@ static int clk_rpmh_bcm_send_cmd(struct clk_rpmh *c, bool enable) > cmd.addr = c->res_addr; > cmd.data = BCM_TCS_CMD(1, enable, 0, cmd_state); > > + /* > + * Send only an active only state request. RPMh continues to > + * use the active state when we're in sleep/wake state as long > + * as the sleep/wake state has never been set. > + */ > ret = clk_rpmh_send(c, RPMH_ACTIVE_ONLY_STATE, &cmd, enable); > if (ret) { > dev_err(c->dev, "set active state of %s failed: (%d)\n", > > base-commit: 42226c989789d8da4af1de0c31070c96726d990c > -- > https://chromeos.dev > [1] https://lore.kernel.org/r/20220412194505.614002-1-swboyd@chromium.org