Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1931281ybl; Tue, 3 Dec 2019 15:12:38 -0800 (PST) X-Google-Smtp-Source: APXvYqxcCIDVduw4a+nHIYNpxW/foH+TqkfLkFmrkIgqoaVv8ux1lZiJ+XOydupR40qfRQzfZZ8l X-Received: by 2002:a05:6830:130d:: with SMTP id p13mr303599otq.161.1575414758758; Tue, 03 Dec 2019 15:12:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575414758; cv=none; d=google.com; s=arc-20160816; b=iKS6exCMPwkjy6AsYarKrhm8GKXJtUjQydOqqTCt3SvHc8NWMQEFALfC1odYrWyns9 AukUY7AnhHSwFDCZ+tTBgcAZ3TFKH2Ofh5Zbnf1J+1QS3UShtjQnuWWUKEaYRjgaQUqD DdfP++bHv/G2dsmQXESCohjpD1OYHNoycjMbUP5Cdmvf2I3fegruawvnBGT6W0YF+tmB ofvzOQDayQDvgSPWs9Q6hSBJC30Ql3jiny6fcdve5yHhQ1tRQ7LkYZ8S7u08myD5F6qY JUS3lf7Fci8ZsojkguqLkz9l+R8KS8jLbZnMzRqxsiu1hGPgs72GgzJJcFLlOVFBaJDR 1P2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=VbYU7y04+KlvvvdtCH7nMu6Ho9VqqdPPtpXkCcD03XE=; b=IkupOjDUW5XXsDra/qoPJv72cd/HrUBdZEQc0ld75CYKOwO0ngeO3LI6ROZaDtfd0c kmcuCoeGfOA/FG3plXnAnM/ggZU3nEuvodEjuh/E9y8hDgM0ZQKpJNm6YfZdXQBMgbZp irFTh9lpYwvEgMuWjjXktn0ES06H66jc8diZFRSlREnjo3te/6N1F+h3gkzJbCd7jDni 5cZ1wN+1xm04uo76SRAom8q+bpxxpAs5uZr+wLDghbAlrMWrLSMrtvYCWecfGMMp/aMF GDbWNO6bMA3T3a+GNXxwSg4fAyAddzwJ3vpxc3oFX4BpZGrWOuZGBt0ekod/3O9yyCdZ BszA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AQeU2a+5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y4si775620otk.219.2019.12.03.15.12.27; Tue, 03 Dec 2019 15:12:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AQeU2a+5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728459AbfLCWlB (ORCPT + 99 others); Tue, 3 Dec 2019 17:41:01 -0500 Received: from mail.kernel.org ([198.145.29.99]:54834 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727731AbfLCWky (ORCPT ); Tue, 3 Dec 2019 17:40:54 -0500 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 CBA3420684; Tue, 3 Dec 2019 22:40:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575412854; bh=DbmV8Tc7S3hQcDoJhHZdPkFhSwiSaATw4JEzfkOUwB0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AQeU2a+5Y0FYDighp77oQxeJkjrOCZNPu463iPVKwMMqp7R4b/44YhwzzsV8ULfW8 1n+VH7kyHCxRXacjd6Bc6xXU7z0XP9WSHMOAnSpqP7jMM6PHvk0/3YZeBQCIoCUDox ynprr1Ij6AIB/VKxRnrlxaNCBEBh6MonhKlGBftg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Eugen Hristev , Nicolas Ferre , Alexandre Belloni , Stephen Boyd , Sasha Levin Subject: [PATCH 5.3 006/135] clk: at91: sam9x60: fix programmable clock Date: Tue, 3 Dec 2019 23:34:06 +0100 Message-Id: <20191203213006.960516373@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191203213005.828543156@linuxfoundation.org> References: <20191203213005.828543156@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Eugen Hristev [ Upstream commit 2200ab6a7403f4fcd052c55ca328fc942f9392b6 ] The prescaler mask for sam9x60 must be 0xff (8 bits). Being set to 0, means that we cannot set any prescaler, thus the programmable clocks do not work (except the case with prescaler 0) Set the mask accordingly in layout struct. Fixes: 01e2113de9a5 ("clk: at91: add sam9x60 pmc driver") Signed-off-by: Eugen Hristev Link: https://lkml.kernel.org/r/1569321191-27606-1-git-send-email-eugen.hristev@microchip.com Acked-by: Nicolas Ferre Acked-by: Alexandre Belloni Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/at91/sam9x60.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/at91/sam9x60.c b/drivers/clk/at91/sam9x60.c index 9790ddfa5b3cb..86238d5ecb4da 100644 --- a/drivers/clk/at91/sam9x60.c +++ b/drivers/clk/at91/sam9x60.c @@ -43,6 +43,7 @@ static const struct clk_pll_characteristics upll_characteristics = { }; static const struct clk_programmable_layout sam9x60_programmable_layout = { + .pres_mask = 0xff, .pres_shift = 8, .css_mask = 0x1f, .have_slck_mck = 0, -- 2.20.1