Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6195831ybv; Wed, 12 Feb 2020 07:43:56 -0800 (PST) X-Google-Smtp-Source: APXvYqwslm46Zv/6SbDGBqGUUBBgFD50gT+B4ELoxuHF4Bvf/I4MDw/NwkohpgCr2NsfTy8mFbMb X-Received: by 2002:aca:b504:: with SMTP id e4mr6826303oif.28.1581522235854; Wed, 12 Feb 2020 07:43:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581522235; cv=none; d=google.com; s=arc-20160816; b=OWFaNKu08Ey4g4lON1ufOuxCbJ4dZRkxwGiSvhSfcFw/l0X5oaG78dlJo1zKze6FD6 k3SsMzBH+m46rTmm63Bi/hACvrFk/6Vr5/6QyP/yOVwF1Yq3tIU4KHPrs1AapaNkv0vI gqKf5zuG4cr7TAxw30qRHRuW0yLHP6nTFqlrBCWcPMY1DFs1ZGzLBsyaX574WpJ/DJxc AAsm+PFFseuKRs42nE810eOf4rl0uEVu2vo+5V/uMjfC9nnMj8TbKos5hRl3+6q/r9KM ASxLrSDUp+kGYG0Iymkg9JQoNaYrZQ14L9OYa0uOXICYhTrNeb7+XwloOdZgRferz6k1 K5HQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=cACQsJWwFiJ//Fu4o4mSWW0Y1rR0wMyJpy57QHPtjPY=; b=lgWUPGwokDXUfhAu7bZt8gKTf+J94/X85YIRchvvnoFBz8wRFaoSR10avvNhuLp25f Q0dvBDwObqo0tH4igDBwMYJxuOa7Egvrgu1sDpRAOzNPK9uStEHu+lHwqZbl8bpzUphC ttPyTI7/yw4Q0EiwR2XOlDYpuaTu4AEslw1pvgXMVUIhdqVN08KBojQ3bvRrC8e2r4va QYZMovmqqe0M4gG9C4lF7F24HHqLMJuyGq3lYI2HfdTVTutD1ocb17tSp+7bRUEkvroO WolC0PnPoXYH47LA8hdhHRayNsA2bfXXCG5FfBgYbVOOFKvsQFn2mOakXcolKBD4NcdB 231w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=QS0q6vs5; 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 a12si3180530oie.87.2020.02.12.07.43.44; Wed, 12 Feb 2020 07:43:55 -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=fail header.i=@monstr-eu.20150623.gappssmtp.com header.s=20150623 header.b=QS0q6vs5; 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 S1728539AbgBLPmg (ORCPT + 99 others); Wed, 12 Feb 2020 10:42:36 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:40272 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727026AbgBLPmf (ORCPT ); Wed, 12 Feb 2020 10:42:35 -0500 Received: by mail-wm1-f65.google.com with SMTP id t14so3030339wmi.5 for ; Wed, 12 Feb 2020 07:42:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=cACQsJWwFiJ//Fu4o4mSWW0Y1rR0wMyJpy57QHPtjPY=; b=QS0q6vs54hVcocgFUFeK+4LINB+ftiuYx3YaH2ZUQloL2B9Ib6fut8o1VorSdq6RLI XQmW3qkpXYvzFVgyr+OQhPEC12Z9VYPkpnli3/9QlzOlfUMcRK+0roA1weQzHRnKPxdS wklsQhODuG87Ynos/740IvX1K9ia/mPkB6duJi9kmoqMMbgQ3krmWauUBpwizoNd56Y2 tsdPX6kXueM/IJLDmLify8bKrHeD/+H1dQfInoUtMWejcfKtSrNnCZJMD3OYzfDXhi6G 9x/yQCNQ1AU+iN7QzG0TlHrDYUx1p+UJcHA2nBiC0Sn4XjtrWQRDT4khMUSgubfy3NEG IKpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=cACQsJWwFiJ//Fu4o4mSWW0Y1rR0wMyJpy57QHPtjPY=; b=W5CKpS267W5v0okWBGChPlqeWN0fOfmDYH8mCQ5jpiYs/b6y6udb3IGyAJY5zwWwcF Nz4jzel53Dxmv1waVqxFppFSs9uvlzyrmBsNrJbBJGUqLM3H2dOakYYVT8bb5eTxYgE/ W02uvqGjGlAGHAd6r90BYM8hiL+PIdBjSBjQPyUCDMKo2+kKfAaLpB0rCHLt4eypaDMv hIU4iX9IluyX8HlOIZTTlEC0fhx+fTtNT2Hg2Bu66zkS00f9/3PebLG4sPI0blKsC+3z I4gw56UppUWhfRO2/HMLB5t1zFj/Qhr57tI1sYaFoIO8e1mKVLqDh7MjTmtVnhI8+Rz5 b9aA== X-Gm-Message-State: APjAAAUku3nRB/fler2cz1nHOH+d4HAc732Cs/w36FC98Ok3sluWmelm nBIvptK+1//JxSQXtHMuVC25gusdlGrK6xlA X-Received: by 2002:a7b:c416:: with SMTP id k22mr14021469wmi.25.1581522152442; Wed, 12 Feb 2020 07:42:32 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id 16sm1226250wmi.0.2020.02.12.07.42.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 Feb 2020 07:42:31 -0800 (PST) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com, arnd@arndb.de Cc: Stefan Asserhall Subject: [PATCH 1/7] microblaze: timer: Don't use cpu timer setting Date: Wed, 12 Feb 2020 16:42:23 +0100 Message-Id: <8e3b6647c57de3f6a65e1f46f852f019985fa893.1581522136.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no longer valid that timer runs at the same frequency as cpu. That's why don't use cpuinfo setup for timer clock base. Better is to error out instead of using incorrect frequency. Signed-off-by: Michal Simek Reviewed-by: Stefan Asserhall --- arch/microblaze/kernel/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/microblaze/kernel/timer.c b/arch/microblaze/kernel/timer.c index a6683484b3a1..65bce785e6ed 100644 --- a/arch/microblaze/kernel/timer.c +++ b/arch/microblaze/kernel/timer.c @@ -304,7 +304,7 @@ static int __init xilinx_timer_init(struct device_node *timer) if (!timer_clock_freq) { pr_err("ERROR: Using CPU clock frequency\n"); - timer_clock_freq = cpuinfo.cpu_clock_freq; + return -EINVAL; } freq_div_hz = timer_clock_freq / HZ; -- 2.25.0