Received: by 2002:a17:90a:9103:0:0:0:0 with SMTP id k3csp11791437pjo; Thu, 2 Jan 2020 14:20:52 -0800 (PST) X-Google-Smtp-Source: APXvYqwb7A/07oiKPnaA2Rg37WxWcV3NiTT7HWifKQQGTYbh9WZNt1qnkIlmR57wOGFHhlVFtkap X-Received: by 2002:a9d:6b12:: with SMTP id g18mr91616658otp.211.1578003652099; Thu, 02 Jan 2020 14:20:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578003652; cv=none; d=google.com; s=arc-20160816; b=FEyI5sWvfXJpuKfTO+OvxS58ePQR+jNLibFGCRCDyrBfpqjoHHqdGINhUqsLhIxyGe 0+Vvw4v5bW+1v9S7PS9I4A+sN5oDF5n3YmET30WJOU8o0K97NEcNA/ifD/Vx/1NP0yOY t8xw0gGXjlFR03qB0AViR18bnPOApmdBC+L2UCQvvcmgp2RmIS63W3xTe267DAe0ExlW MRX3RHQ7LFScHg/j38Ae3B8nV4V+vkKtqfuYjNf0z3o9T9deFVI1k5gzcREL/RByXfSL 6IZbn+qEA1ar4xTjbFc4gzKQClPpAtte/Bygul8pkBoDs8Cv1NyQ09L9zDImIM60KV5x EG/A== 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=sZiEeJb4FGuccUwiDIgx3uZ4V8+XJtBNp3uQVEmUz2Q=; b=JxEU4AE/Oj+7OoFF4YdJP7wI7HeAbCYpyum/QClaoZ6/zxEq57fwLzVcom2gHow7sI puI5khvcQXUKLTAtKdI5HfOhtaFdK09Ud0c6PNELUMaFtZUy7/ZmiEnRsHnH1lsWtiC4 XBXtpK/ewhOewO2H/FL0ytuJG/KKPaJi4U/HybB0P6SEdThjkpHmUlVhOInceUGNU+L1 5XNh4cU3alfZttPL93P4oBUaFKBLrHM5W1kkFgeaQdcpDIxUOkNK1HwruZ6/jeP97Np8 7E+XMRKc5ORJ/ZiZoi9iRFuRt6xU0Q9Wj3bWYEppyoC2s3AeRmqbTnAkgQIr3RZWmtat 9VSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dZEDuSIW; 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 k7si27153036otb.90.2020.01.02.14.20.40; Thu, 02 Jan 2020 14:20:52 -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=dZEDuSIW; 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 S1728729AbgABWUC (ORCPT + 99 others); Thu, 2 Jan 2020 17:20:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:36880 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728718AbgABWUB (ORCPT ); Thu, 2 Jan 2020 17:20:01 -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 9253E22525; Thu, 2 Jan 2020 22:20:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578003601; bh=TWVBE6ZH+zWuFWama4+85rMhPVw+P4FoSC8lH2pdYuU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dZEDuSIWJBSRQlw+rIDif06twFOCUZpUSqPhy3oLtA3gi88F8q1NEciRglhPFLtBi qlkw3jM9E071dYOdcD57lgljfttcsKG2JpI36rnefQCraGdWMQTAO/UjQ6xzut75Z4 ypk1aaUwC0xbkA226Xe/NQe4K0Vy0jsKKkpDo4L4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Geert Uytterhoeven , Rob Herring , Daniel Lezcano , Sasha Levin Subject: [PATCH 4.19 019/114] clocksource/drivers/timer-of: Use unique device name instead of timer Date: Thu, 2 Jan 2020 23:06:31 +0100 Message-Id: <20200102220031.064182128@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200102220029.183913184@linuxfoundation.org> References: <20200102220029.183913184@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: Geert Uytterhoeven [ Upstream commit 4411464d6f8b5e5759637235a6f2b2a85c2be0f1 ] If a hardware-specific driver does not provide a name, the timer-of core falls back to device_node.name. Due to generic DT node naming policies, that name is almost always "timer", and thus doesn't identify the actual timer used. Fix this by using device_node.full_name instead, which includes the unit addrees. Example impact on /proc/timer_list: -Clock Event Device: timer +Clock Event Device: timer@fcfec400 Signed-off-by: Geert Uytterhoeven Reviewed-by: Rob Herring Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20191016144747.29538-3-geert+renesas@glider.be Signed-off-by: Sasha Levin --- drivers/clocksource/timer-of.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/timer-of.c b/drivers/clocksource/timer-of.c index 06ed88a2a8a0..6e2cb3693ed8 100644 --- a/drivers/clocksource/timer-of.c +++ b/drivers/clocksource/timer-of.c @@ -199,7 +199,7 @@ int __init timer_of_init(struct device_node *np, struct timer_of *to) } if (!to->clkevt.name) - to->clkevt.name = np->name; + to->clkevt.name = np->full_name; to->np = np; -- 2.20.1