Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp396808ybh; Wed, 15 Jul 2020 05:04:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdMEErSDyIWik91UIlLDfVOyK7va2rmO3yJkJirfz+xnollXiTtXsgqnW5i0b8hGQrvFDr X-Received: by 2002:a17:906:a459:: with SMTP id cb25mr8804814ejb.234.1594814652515; Wed, 15 Jul 2020 05:04:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594814652; cv=none; d=google.com; s=arc-20160816; b=M2y2agze5asUctWnix/t6ZOnZFaIvlZs1t8TDAYLdhoU+/Z8KmrITsqjCVSGVevHVr VCBNCL9UJvGQJl44tMJQgKXsWbPcmEyixMxAYc6n/JcyHkqUCnsADo1DdWqUcEjxkq5r jSz4tei6ooJwk4ndp6zQga3eUY+US2rWw622GWSse1duWMcCv8f3AaP6C0OiRD889loq 3odW7LinlWuog0W55QRxYi2hXMGfa/JFjSZZYaK3E3KqgNVvNbeuiz1lpueqPHZt08vS 68xU8XTVPyBvRy+UqUaaFuj+o1L1u+fJVZrF+k3snEHVvANVExiF7/pnX3BIkFICjSZP DEWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:ironport-sdr:dkim-signature; bh=MY0HaaEk87vjmlUydOa+KZIRQFHP7OcqfjfgS1xst88=; b=cJtuDyLu1+5RM+6fma67VEyeqJUjUbOVWSlQ+GU/H03KbAS0uwlK9g+JnBk7P2xaqk YYHepLDTja8GMo6LkXUDa2iUhUWCYN2t58VXph1OUDmnYgF8O82PpXnN1HFCb7UkGFzN ZnVH9hyAXeX3HnnD/Epl0yYQoSELwBmO8+Yz5OP4As/m9cJqr2q6eEtt8+wDJ5LRy28+ aiBaFjrd6XG3J5OOHyMQLTOOc/Hbjur3r51FuoN7fA/kqk+fW58AptJq7Q3pyjnSFWq8 1Gv4Nikl97fFHS9XVn9ApWYKHtrx8kNoKEBP2pcJ1SnNTH8BpP/Jqg3Gp/7RCB3IhVZt DjTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=X9usl+cZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d26si1236716ejy.594.2020.07.15.05.03.44; Wed, 15 Jul 2020 05:04:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=X9usl+cZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729897AbgGOLYs (ORCPT + 99 others); Wed, 15 Jul 2020 07:24:48 -0400 Received: from esa3.microchip.iphmx.com ([68.232.153.233]:62426 "EHLO esa3.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728010AbgGOLYq (ORCPT ); Wed, 15 Jul 2020 07:24:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1594812286; x=1626348286; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=NWRbAXwZzlbpLpztrBRlc5oG6laOjJ+4SYUh9eKkE6c=; b=X9usl+cZ7+LFR/izz88E2XpQb1dV/CwR7lVwGwqikstLx9k9r4V2XAZc Ctf6XE04JUUOE6ogDSphVQq+BVF24ZKpcuMBmVjtIrUklnqNcTCuo68PZ Ho38s72uCoKfbZ1i42cGyV7omeRqN+nCmahXTJjScKu+V86B4W5Dh6JWg XFOGv6cuMOc/4ZA0/H6+IdxF3pJL+g8aezkBa5KG8Ywh+8BfeXwAe1f3q utymZKcFKWE4yPmokLwFYtmJ3IqtUMH7yreMy8zQz/RoS2Z++FiSRGIvj Kuq2HbWl8DIti6c09t7WJUDc2p4vBvqdkU0TzPVcoexDF8+Cu0qjCX8GA g==; IronPort-SDR: q2TgooqmdlrZEw/PuKHZ5C1flNs0OoCwNLqcwEkyEeD2ZxbcVA4Zgg5fFnzb12pHrRRjrtEiEp r2v54TW7v6/c1ih47MoytP0/fHICopr3ZNpGF/j4XO5k9HzGblECTxbvuR2Ant0qER8m0zFRlB n5W0lW4EoPxfScra8TrTcv+mgz9rH7i8CgimljWb3eriyZwiJdNyd2tScwdvJe0frBFJc8j3Dg MGU6lVLA/R37hUc6uuuzFYDOJzsnrwKEGcYnkOlnFXOVA7TCyrDLdqsIYniyRLruGcIPz3WOJg PKY= X-IronPort-AV: E=Sophos;i="5.75,355,1589266800"; d="scan'208";a="83962778" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 15 Jul 2020 04:24:46 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Wed, 15 Jul 2020 04:24:13 -0700 Received: from m18063-ThinkPad-T460p.microchip.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.1979.3 via Frontend Transport; Wed, 15 Jul 2020 04:24:10 -0700 From: Claudiu Beznea To: , , , , CC: , , , , "Claudiu Beznea" Subject: [PATCH 03/19] clk: at91: clk-sam9x60-pll: fix mul mask Date: Wed, 15 Jul 2020 14:24:11 +0300 Message-ID: <1594812267-6697-4-git-send-email-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1594812267-6697-1-git-send-email-claudiu.beznea@microchip.com> References: <1594812267-6697-1-git-send-email-claudiu.beznea@microchip.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org According to datasheet mul mask is on bits 31..24. Fixes: a436c2a447e59 ("clk: at91: add sam9x60 PLL driver") Signed-off-by: Claudiu Beznea --- drivers/clk/at91/clk-sam9x60-pll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/at91/clk-sam9x60-pll.c b/drivers/clk/at91/clk-sam9x60-pll.c index e699803986e5..3522eae2edd6 100644 --- a/drivers/clk/at91/clk-sam9x60-pll.c +++ b/drivers/clk/at91/clk-sam9x60-pll.c @@ -15,7 +15,7 @@ #include "pmc.h" #define PMC_PLL_CTRL0_DIV_MSK GENMASK(7, 0) -#define PMC_PLL_CTRL1_MUL_MSK GENMASK(30, 24) +#define PMC_PLL_CTRL1_MUL_MSK GENMASK(31, 24) #define PLL_DIV_MAX (FIELD_GET(PMC_PLL_CTRL0_DIV_MSK, UINT_MAX) + 1) #define UPLL_DIV 2 -- 2.7.4