From patchwork Tue Oct 27 13:53:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 307429 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=-12.8 required=3.0 tests=BAYES_00,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=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 5C65EC83029 for ; Tue, 27 Oct 2020 15:56:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 08DF420829 for ; Tue, 27 Oct 2020 15:56:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603814205; bh=mXlfEoOKvOoOf0/qxN5r3Z0mJdTrnEpMoaKhFUsxWcA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=rhzoeHQpQCddHf+HhJjIyZSbIll0jyRG8xCzNqvUqu9OerR0b/UGsgMeyIb4Kctf1 fL8WfZ/yfJi+UztpYz/EHlY5BqsqhDo7mBIth2Q8pkoY0+LMT7rauSIUnF6fQRk0v1 Jp7D8tDPbv/8CkjWxFR9z6VUXYQAn0omUGK5dGpM= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1802771AbgJ0PvR (ORCPT ); Tue, 27 Oct 2020 11:51:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:42286 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1802001AbgJ0PpV (ORCPT ); Tue, 27 Oct 2020 11:45:21 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 7ECE922265; Tue, 27 Oct 2020 15:45:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603813521; bh=mXlfEoOKvOoOf0/qxN5r3Z0mJdTrnEpMoaKhFUsxWcA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m+ItEi+zVVJ+PlAToBJutQi3Odj+ug8LHX3vAJG6utqZWvjTY677y7+kOykWASMLO 0gPXQ4zMSk3nFQ74EftCsCSLzndHU1VXQdh5x83cbRFb4tb3ludlXY4ioWi4RXgnFk B0kaTXKOK71fMsAK9ERSqTcYDMT1+j6jo4YEJQKc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Claudiu Beznea , Nicolas Ferre , Stephen Boyd , Sasha Levin Subject: [PATCH 5.9 548/757] clk: at91: sam9x60: support only two programmable clocks Date: Tue, 27 Oct 2020 14:53:18 +0100 Message-Id: <20201027135516.200143972@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135450.497324313@linuxfoundation.org> References: <20201027135450.497324313@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Claudiu Beznea [ Upstream commit fcedb589b5a88d73d3155c4a8690d6dda91a3156 ] According to datasheet (Chapter 29.16.13, PMC Programmable Clock Register) there are only two programmable clocks on SAM9X60. Fixes: 01e2113de9a5 ("clk: at91: add sam9x60 pmc driver") Signed-off-by: Claudiu Beznea Link: https://lore.kernel.org/r/1602686072-28296-1-git-send-email-claudiu.beznea@microchip.com Acked-by: Nicolas Ferre Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/at91/sam9x60.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/at91/sam9x60.c b/drivers/clk/at91/sam9x60.c index ab6318c0589e9..3c4c956035954 100644 --- a/drivers/clk/at91/sam9x60.c +++ b/drivers/clk/at91/sam9x60.c @@ -279,7 +279,7 @@ static void __init sam9x60_pmc_setup(struct device_node *np) parent_names[3] = "masterck"; parent_names[4] = "pllack_divck"; parent_names[5] = "upllck_divck"; - for (i = 0; i < 8; i++) { + for (i = 0; i < 2; i++) { char name[6]; snprintf(name, sizeof(name), "prog%d", i);