From patchwork Mon Jan 8 13:28:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 123719 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp2729927qgn; Mon, 8 Jan 2018 05:32:11 -0800 (PST) X-Google-Smtp-Source: ACJfBotf5lmF/Fac9c1Yu4/bNkUpA67hXiQEHh4z1ulINjsF6bBNcp8h6I7HGlyG04ZTWPN0W7Sc X-Received: by 10.98.38.199 with SMTP id m190mr10532539pfm.24.1515418331035; Mon, 08 Jan 2018 05:32:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515418331; cv=none; d=google.com; s=arc-20160816; b=dnZzS8UeL+6KESS2mwOHf8jzGuUlyNDvzTZmFcSAuwxsNBkekX57by6qrSo9LGy5sg nAHE7C/SBHGTftZtmeq7ypYnM5QiVw3x3fXaitBmxvBtE5VHYqF6N2ZmvsRUIuErXR+B rB+kf3BxOA63ReHavSJ4DaZmFBnghCQmmCm+EPGVEwMumaxcBimIDp7CP+mahAz9XJ6e e2xUH8GSP1iPj6T7Q4wSUB6LJYlzJ7uw2E60t1i9nSsWKJNAxkvR7InM9o3M8Txer4BV O/InLv6D8hCacpL9MbGQp64j4BlVo+DbA/PhS9NeABf7832SnrF3L9C2meOottUv6xO6 vwrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=IIwRqDmquDqgK0FMDrwldHX2nmgazqM5/WnK6PktmIo=; b=oXfhxtTJC1uaUhUdK9jcE3/cVxmvY4PnOrJ4vHQPVJoUT8vAy7TYerCYxR2NvBKfJC LkI4UaEOAXrW4rPikU6kt1l21EEya4kTw+Mvey2r6DWzRmrYmqdynp0yoc1yp6kIyl5p A8n6cPhgF7jPCCCVGuKcvQnZOKXRfWIUl4NXeDUVsso52NdWFDvdNMLloD5iWS5dKcRq EP78agjQMa8NyDiqBOW9WyqJk9b25NE+R8G08u+dge8ZnWI824zGT/qUCq3WJTVy64Tp 9ZRYoHp9DDgXWWvzuXBpK6W198NuvMDfjSaCjN0On9KmdDDIV9IL4bKgUHUUXN4Xvehx 0tvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jU2MFACO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c187si8416771pfa.90.2018.01.08.05.32.10; Mon, 08 Jan 2018 05:32:11 -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=@linaro.org header.s=google header.b=jU2MFACO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933524AbeAHNcJ (ORCPT + 28 others); Mon, 8 Jan 2018 08:32:09 -0500 Received: from mail-wr0-f194.google.com ([209.85.128.194]:46596 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933350AbeAHN3r (ORCPT ); Mon, 8 Jan 2018 08:29:47 -0500 Received: by mail-wr0-f194.google.com with SMTP id g21so4951774wrb.13 for ; Mon, 08 Jan 2018 05:29:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=IIwRqDmquDqgK0FMDrwldHX2nmgazqM5/WnK6PktmIo=; b=jU2MFACO/TNaoqB5k85BwQfYy2C2JhjPHMBjXVZr6+fLJ21sWFGa9v120tiHNMlnvT dF1PKbodo9/KCIxB1FF4d9Cl5KOKm6kJ0AvDXArVYPj+m5KvXC9y/c++XbW0+6a1ll6F s/YOe66eg+/ILlem7h2mHdjd1xxqvFSUbdGpc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=IIwRqDmquDqgK0FMDrwldHX2nmgazqM5/WnK6PktmIo=; b=h8XKbKnmdbTKGMppO2etY+a11ie8p9JZWUIAaw8ytXdmXteeTPGeSj2M6ZwsF0QX/7 045EgKEOHOeo9QdpOZAdz9oxnzfDMcC9ldaWXHgzV3sHtGu+6ZCNfTi9dBEA/H3n+QDD 1BDlnin1EMG7WNzHyefmgifP1uXFVsbELXKGbujfCf2EsucdzVdfbSZdSXx6RePsXTN+ +TGBKMTjWjWH+NKWpXBX4yCbS4d0o1aLtZwmkaKDf89q8w1ZMxsJD/MMmyVnpP7LidC1 FTjJOEAlIiuBSNSQTJH8hlsIjNZORU27PQUXRHiYGxYA3JyrB7F/UWbZ/Q+DWhawizVG TP7g== X-Gm-Message-State: AKwxytebQro9i9W/YIkN9jOYH4FrTf9Fn7WvT0eCUlQy/+FgPMnazZhM rkUgP57Zknc4asXHt8M7/gFXhdxclWM= X-Received: by 10.223.196.147 with SMTP id m19mr93385wrf.56.1515418185942; Mon, 08 Jan 2018 05:29:45 -0800 (PST) Received: from mai.lan ([2001:41d0:fe90:b800:312a:53a5:1bef:6622]) by smtp.gmail.com with ESMTPSA id q196sm14354222wmb.22.2018.01.08.05.29.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 08 Jan 2018 05:29:45 -0800 (PST) From: Daniel Lezcano To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, Benjamin Gaignard , Maxime Coquelin , Alexandre Torgue , linux-arm-kernel@lists.infradead.org (moderated list:ARM/STM32 ARCHITECTURE) Subject: [PATCH 13/20] clocksource/drivers/stm32: Use the node name as timer name Date: Mon, 8 Jan 2018 14:28:52 +0100 Message-Id: <1515418139-23276-13-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515418139-23276-1-git-send-email-daniel.lezcano@linaro.org> References: <1bbaef2e-4080-3f54-7db3-a8989acfd691@free.fr> <1515418139-23276-1-git-send-email-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As there are different timers on the stm32, use the node name for the timer name in order to give the indication of which timer the kernel is using. The /proc/timer_list gives all the information with the right name, otherwise we end up digging in the kernel log and /proc/interrupt to do the connection between the used timer. Signed-off-by: Daniel Lezcano Tested-by: Benjamin Gaignard Acked-by: Benjamin Gaignard --- drivers/clocksource/timer-stm32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/clocksource/timer-stm32.c b/drivers/clocksource/timer-stm32.c index 3e4ab07..14b7a2b 100644 --- a/drivers/clocksource/timer-stm32.c +++ b/drivers/clocksource/timer-stm32.c @@ -85,7 +85,7 @@ static void __init stm32_clockevent_init(struct timer_of *to) unsigned long max_delta; int prescaler; - to->clkevt.name = "stm32_clockevent"; + to->clkevt.name = to->np->full_name; to->clkevt.features = CLOCK_EVT_FEAT_PERIODIC; to->clkevt.set_state_shutdown = stm32_clock_event_shutdown; to->clkevt.set_state_periodic = stm32_clock_event_set_periodic;