From mboxrd@z Thu Jan 1 00:00:00 1970 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,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable 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 1A46CC2BB55 for ; Thu, 16 Apr 2020 15:05:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EB86921D7E for ; Thu, 16 Apr 2020 15:04:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587049500; bh=C342YGSxZ7cHTwUi8UWJoDuCX2Aj+5ytjAAcmtQ8Fzc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=p2yccLGYd90AjqHQ8ODrG62B1eOdgdTYW+nZQoAiu7ZxhsMaWFOwOf3h0Qn5H1Sw2 eNu1+m4pY+bDDyXOEeOfLAq7e0oCAGRq/S/8fDT8mxmRCtvySkWDAgpukBtyPlNhQg i6ABLjG5xZAUHw27uZNKpb15khb926oMEo1Bds3M= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406526AbgDPNww (ORCPT ); Thu, 16 Apr 2020 09:52:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:39212 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2408787AbgDPNwv (ORCPT ); Thu, 16 Apr 2020 09:52:51 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 A27E82063A; Thu, 16 Apr 2020 13:52:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587045171; bh=C342YGSxZ7cHTwUi8UWJoDuCX2Aj+5ytjAAcmtQ8Fzc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OnAtf9ggn/ppFyXFR7WVbYs0gmHUnhFsQXbKsBCB+H6ThGy/fgVc5pz10z9Vs7rOq xl5AtzM4QVR6cnnM480RUfnfeNWdkoRxS96uu1zgPYfT66k7vIRsDeEBhgj4bkYkDt uwK/O+KtRlpi03MGUVuQCPQava0bsVH8+g1HOUiY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Claudiu Beznea , Daniel Lezcano , Sasha Levin Subject: [PATCH 5.6 026/254] clocksource/drivers/timer-microchip-pit64b: Fix rate for gck Date: Thu, 16 Apr 2020 15:21:55 +0200 Message-Id: <20200416131329.091921791@linuxfoundation.org> X-Mailer: git-send-email 2.26.1 In-Reply-To: <20200416131325.804095985@linuxfoundation.org> References: <20200416131325.804095985@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Claudiu Beznea [ Upstream commit 0585244523f0f4de7e4480375e871617a79cab98 ] Generic clock rate needs to be set in case it was selected as timer clock source in mchp_pit64b_init_mode(). Otherwise it will be enabled with wrong rate. Fixes: 625022a5f160 ("clocksource/drivers/timer-microchip-pit64b: Add Microchip PIT64B support") Signed-off-by: Claudiu Beznea Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/1584352376-32585-1-git-send-email-claudiu.beznea@microchip.com Signed-off-by: Sasha Levin --- drivers/clocksource/timer-microchip-pit64b.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clocksource/timer-microchip-pit64b.c b/drivers/clocksource/timer-microchip-pit64b.c index bd63d3484838a..59e11ca8ee73e 100644 --- a/drivers/clocksource/timer-microchip-pit64b.c +++ b/drivers/clocksource/timer-microchip-pit64b.c @@ -264,6 +264,7 @@ static int __init mchp_pit64b_init_mode(struct mchp_pit64b_timer *timer, if (!best_diff) { timer->mode |= MCHP_PIT64B_MR_SGCLK; + clk_set_rate(timer->gclk, gclk_round); goto done; } -- 2.20.1