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: 10149593 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 118F7602CA for ; Mon, 8 Jan 2018 13:33:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E78B62890F for ; Mon, 8 Jan 2018 13:33:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D5B2D28943; Mon, 8 Jan 2018 13:33:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 46D6028A17 for ; Mon, 8 Jan 2018 13:32:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=sCQSR9Ch8ik6QUL501HXzHXZN1qqyc50ypf8+Li9zoo=; b=n8K/I1hA4JGwBwSjaa1XHgIhAL ygMm8gIk+jrSSn4XwkxuaS4w+2mR+IwpwRa6ybWt6dvU4iz7dSmurhH/J+3Nryum9sb3Upy6DHq7v 4qne7GeRecWURytvNYhjVo9JtTfparATqfKNQA4wNbxC0SGTHAULXHrVQwwYLcsEMlzu0wD9L0fs4 iO2YJVIamnYrTpwRQiUMaGCEQOL5KcWRnLLyqQgptF66LhWD6a2X4fIYHs33A6i48uZU4yMuOKjGh f4DalAtA8tzdddS9T9m+s7zoUWlzw1CAPZp8mpZlzEnAYEsjEpIcfO79rbYTgJKiwpefTrIc/U4XE vnz81PKA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eYXXm-0006Ly-Lq; Mon, 08 Jan 2018 13:32:50 +0000 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eYXUz-0003Ic-JX for linux-arm-kernel@lists.infradead.org; Mon, 08 Jan 2018 13:30:11 +0000 Received: by mail-wr0-x243.google.com with SMTP id 36so10742855wrh.1 for ; Mon, 08 Jan 2018 05:29:47 -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=kF8itnkCwEyVxfe/gmG1YSB57b5JVIkUUyc1v97IqDTZux9lOp4LjDo+DNMIZ3YS2i 9trVJSxX7o08XHkMMILPvO+9ujw76mGBWHGDifnYvKKZXXW/i6oapXKAdyvZsySpL7O8 PWwxyXJ9EHHTILy6e1z5C8IBudlkwHkg3K3HBD1CCbL9nuYjnJqFjrm2IOLvtsgB4SzS G75s0GSt26fDCfmMFAJQkR/bi2zFM9bNy1U/b4wiT7J6BVageWWC6srOBoYp9mIg4d2a QwVERyeRijyU8qtis6zOJZaspEULzJEsduW7hcIyp1hg2VYo6q1ViT8gfqDH2Xfr1Kcu 4ljg== X-Gm-Message-State: AKwxytf3/ul+CwREWtueKzufITtE/tvfhtqrl8ToBRwMWRPFwomZh7It vx8r6S7qV6iIQ2grnCCluQ1f6Q== X-Google-Smtp-Source: ACJfBotUtkKVnYy2AMCf+plojNQm6QFZiB20t1mIoxSJVzsRueujLW3a6rDUMvDhTLdB8C5gJfALaw== 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180108_052958_132908_97C582D9 X-CRM114-Status: GOOD ( 13.04 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "moderated list:ARM/STM32 ARCHITECTURE" , Alexandre Torgue , linux-kernel@vger.kernel.org, Maxime Coquelin , Benjamin Gaignard MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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;