From patchwork Tue Mar 21 10:12:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 9636351 X-Patchwork-Delegate: sboyd@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DA4BD602D6 for ; Tue, 21 Mar 2017 10:20:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D16F42793B for ; Tue, 21 Mar 2017 10:20:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C51FD27D8D; Tue, 21 Mar 2017 10:20:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 10A0327B13 for ; Tue, 21 Mar 2017 10:20:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756440AbdCUKUi (ORCPT ); Tue, 21 Mar 2017 06:20:38 -0400 Received: from mail-wm0-f43.google.com ([74.125.82.43]:38694 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756491AbdCUKUi (ORCPT ); Tue, 21 Mar 2017 06:20:38 -0400 Received: by mail-wm0-f43.google.com with SMTP id t189so8678003wmt.1 for ; Tue, 21 Mar 2017 03:20:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=ZcNlh8SDyv6OqzQuMQCBr7fucgFJTSg6kbauPdZ8xC4=; b=W4oO5jLolhyIu43PzylHdy3MR176Al8hgZbFzoHtasQaa3zU1yEoS+wQdP1rssiUX0 WuCm/3Ex9+JacPVgWI6oX8VRhlfqR29w9jr9GIxrADVZlt4YHKVmlG93pnDISn9oaKEu 3TwBMzMaoTTLJaFwIZl6mUJwJJ/iiSPZdIjNU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ZcNlh8SDyv6OqzQuMQCBr7fucgFJTSg6kbauPdZ8xC4=; b=guQf4bPatFnObZI+AHT11mU39Zw5AfN+p6T+sI2Yq3ReEFW85mKGDaC+1Y2goZbufo 5N6nNxexUWZHxo2FcKOTE3x0KB2IF5OAutw2TwUYsj980SXnCMp99AmSaoemW96ijaqL svayG7dI7aQM3BCblj+FKNYTcDRkicTwHzjdBUsiyNR6RBQajP7PlsdKaCXFeESsKzjn lCrlYQjlZFRbyNS7WB54+WyNlE1349JoOMozo8Sly0G03vibQqY+JdO99KK62KDlvRpr vmd1+UQMRzzFR8UZXFSi73EV+Y2DaPZAtakDTLBXdGUMrvZVEDAvjfcUNx6RQ5AGZhLS Shtw== X-Gm-Message-State: AFeK/H3+cfqSGPH2098IRtm77ssjRXVa2iqZgRcyuIOsoXNLFPX/yu6Svn1UPUp7wk9uR0nl X-Received: by 10.28.150.194 with SMTP id y185mr1911682wmd.92.1490091219224; Tue, 21 Mar 2017 03:13:39 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id j24sm18909495wrd.36.2017.03.21.03.13.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 21 Mar 2017 03:13:38 -0700 (PDT) From: Srinivas Kandagatla To: Andy Gross , Stephen Boyd , linux-clk@vger.kernel.org Cc: Michael Turquette , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Srinivas Kandagatla Subject: [PATCH] clk: qcom: clk-smd-rpm: fix rate for branch clks during handoff Date: Tue, 21 Mar 2017 10:12:59 +0000 Message-Id: <1490091179-4348-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP rpm branch clk rate should requested as either 0 or 1 but not INT_MAX. This patch fixes rate request for branch clocks during clk handoff. Suggested-by: Bjorn Andersson Signed-off-by: Srinivas Kandagatla --- drivers/clk/qcom/clk-smd-rpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c index 3487c26..d990fe44 100644 --- a/drivers/clk/qcom/clk-smd-rpm.c +++ b/drivers/clk/qcom/clk-smd-rpm.c @@ -165,7 +165,7 @@ static int clk_smd_rpm_handoff(struct clk_smd_rpm *r) struct clk_smd_rpm_req req = { .key = cpu_to_le32(r->rpm_key), .nbytes = cpu_to_le32(sizeof(u32)), - .value = cpu_to_le32(INT_MAX), + .value = cpu_to_le32(r->branch ? 1 : INT_MAX), }; ret = qcom_rpm_smd_write(r->rpm, QCOM_SMD_RPM_ACTIVE_STATE,