From patchwork Fri Jan 24 09:29:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 232839 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DA6A6C35242 for ; Fri, 24 Jan 2020 11:40:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A1D70206F0 for ; Fri, 24 Jan 2020 11:40:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579866004; bh=QuLnnKDn/OU0rM9V+Dnb0xKOJJwr2DKUZ0JuC/ZyCow=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=GIrZvNi0S2HvZe/Dra1M5ks90XXO8fbIbKLHrU7N8imflBM3T+iy0sl/bAT2GTJoT aucz8ejgT3kFFr/VYcIcJ4XXW2xjYUzMeg3m5ixsfdG29qTXqSJ6s1Wo8U0xRJZT1s OEiyY0EfVwSk2fbNJp/m4Za2YNW+TpThqqeaF49Q= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391601AbgAXLkD (ORCPT ); Fri, 24 Jan 2020 06:40:03 -0500 Received: from mail.kernel.org ([198.145.29.99]:35618 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391294AbgAXLXO (ORCPT ); Fri, 24 Jan 2020 06:23:14 -0500 Received: from localhost (ip-213-127-102-57.ip.prioritytelecom.net [213.127.102.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EB89A214DB; Fri, 24 Jan 2020 11:23:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579864993; bh=QuLnnKDn/OU0rM9V+Dnb0xKOJJwr2DKUZ0JuC/ZyCow=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S/M+/4+mbLbWH6urbO6wwEsnBFbE3qP6EPfD+VBRC35cLmkEd9b/Tue69AKnUne2m lHCdggEQqJqzhOqDxPSHSpBg+bB5H1KzgQ/Fqc2aH3hvwaHZrKyTKxS4GjaqSHqRfx jDRfy8iXNBOT2KdhPbiPHRFQioyY7P6sM2P6Qe8M= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Peng Fan , Sudeep Holla , Sasha Levin Subject: [PATCH 4.19 423/639] firmware: arm_scmi: update rate_discrete in clock_describe_rates_get Date: Fri, 24 Jan 2020 10:29:53 +0100 Message-Id: <20200124093140.036895698@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200124093047.008739095@linuxfoundation.org> References: <20200124093047.008739095@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Peng Fan [ Upstream commit c0759b9b5d411ab27c479125cee9bae391a96436 ] The boolean rate_discrete needs to be assigned to clk->rate_discrete, so that clock driver can distinguish between the continuous range and discrete rates. It uses this in scmi_clk_round_rate could get the rounded value if it's a continuous range. Fixes: 5f6c6430e904 ("firmware: arm_scmi: add initial support for clock protocol") Signed-off-by: Peng Fan [sudeep.holla: updated commit message] Signed-off-by: Sudeep Holla Signed-off-by: Sasha Levin --- drivers/firmware/arm_scmi/clock.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/firmware/arm_scmi/clock.c b/drivers/firmware/arm_scmi/clock.c index 30fc04e284312..0a194af924385 100644 --- a/drivers/firmware/arm_scmi/clock.c +++ b/drivers/firmware/arm_scmi/clock.c @@ -185,6 +185,8 @@ scmi_clock_describe_rates_get(const struct scmi_handle *handle, u32 clk_id, if (rate_discrete) clk->list.num_rates = tot_rate_cnt; + clk->rate_discrete = rate_discrete; + err: scmi_xfer_put(handle, t); return ret;