From patchwork Mon Nov 4 14:22:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 178425 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp1549926ilf; Mon, 4 Nov 2019 06:23:21 -0800 (PST) X-Google-Smtp-Source: APXvYqyi+3vyOncMgkixmOhjihCF08vSgKqGgPxv7F1VCvUx2uo+BhGUtXs2h0hfhWPuXANrTWzA X-Received: by 2002:a50:c30d:: with SMTP id a13mr26440962edb.177.1572877401403; Mon, 04 Nov 2019 06:23:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572877401; cv=none; d=google.com; s=arc-20160816; b=RMdmpM4HB2XkWSbHXb0Wzm0SSSCyBJmvhSBfyI9+9M03ehpMArDiqvC3TqQv0ZAyZw Nx8WS8WoYFURUNpYKVxY0AX9iGSy3JpfNg39OcHSrIi2V0mYemDPtzabQeNJFbWy2ENB vKsJFPt2BLyFt9pSUB8FSZT8bZcuXjdhok3QBrHsCsjepFlFUsr2NnmgIf5UPL1owGrn 6GGlaEpt4Xh10t11VLXS5Hd4jSYdohZ5/NVuvATww/FOnRSog3hgo/EmD5Y+ZA3MMdRw Bl/xV0rAwkWnt2PcH0fZP3s/Yxa6ldsEjZtxLdpwYATidEoJkntNhZAl0qsoizGBbK2H XmYg== 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; bh=DlHGsHCYz6i9keGsLrYM+8DrDokVvhA17QRfhwApon4=; b=KZshQurWX/oGKqX1BbtJQMNXYpmxOTjQ8bLonRwUwE/EpEz6ti39HkDpDewSllKu+c UGFSiouom/OR7TMTeXXrBn88jEODWHToKBz/PNk+kwLUnSx1sW4dBa+OlJ8kq2KXa0we T09uAngfm9p8kG2ZyEEEtZJlgLjj8ehbZGD+J0JrqJvD8puS/+U6BQfpHePfy+okG8DA OTf5oaUGdMPCOTZkLPA/t7FxKDesCHKfIXg+UHSdWhtuAFkXbSqV+878aUtbCHP6RMPo kDWSMKqDCgJlQqeqoHRxvxe5CaP20nYc7r+C/AJ5eRwz1BX5HZJV41rFpL5hUjwmX+W+ coHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pformDiS; 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 k24si4642696ejv.111.2019.11.04.06.23.21; Mon, 04 Nov 2019 06:23:21 -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=pformDiS; 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 S1728666AbfKDOXR (ORCPT + 26 others); Mon, 4 Nov 2019 09:23:17 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:39702 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728624AbfKDOXQ (ORCPT ); Mon, 4 Nov 2019 09:23:16 -0500 Received: by mail-wm1-f67.google.com with SMTP id t26so12181106wmi.4 for ; Mon, 04 Nov 2019 06:23:15 -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=DlHGsHCYz6i9keGsLrYM+8DrDokVvhA17QRfhwApon4=; b=pformDiSnMnhGM0gWYP61EL4IsZN5i5fQ20RPhOIcGPtbvADApmq3GGz3ONVTEshHm wUje680PA6qM1Er/+RfRn3rLoXyJ3NpKVfmdZ8nVsuKHtCIStEltZD9vqc8Gru0cEJLj BBXQmTmeGmCPA0FSuvLswr1oygRQXRacmKn6mMNa7Wj5mCsqwfQ7W3jvUbNWOjsPrE5C +s9Tr0F8RqgF+zp6uKjx9lunA6aY0/AHe3l7bor+KvIjirdp5ndgS/qnucYbOCKyo4IN EoV8o3HmWJqw6Ffth7CtcZB8UJLk0rlpMe4fCx0380dohUIF1SUGT2Ksbfsdn3hdIR+b f/RA== 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=DlHGsHCYz6i9keGsLrYM+8DrDokVvhA17QRfhwApon4=; b=DTOeZKLJaXDV2IczwL44pvL4PHSjahYfRh07mAGshD13yuX7gSlIViNTUcoaFHyr7j WU1rmGQqcuqfkiXVB7KbJs2ELkPFQ9pdoMH0ZbkldvNq37iJyPi/LHuQuNO1LXFVZXkM AFwsHrjISw7mRaU4zXVTUcXDvYyNUelUxxWtxHsNFrb2pepOUAy+gHFUGWT80x3E2j5e 0w6oyzIA78T7dZyQ/k88F7s/vn0o/SWwI8m9RBRu56atevcvZjo10Qixf5kXPI4MkpqX XTYETKb5JJMA4jkZ0+mFswYzLaktBTh0JVKb6XJ+qP2v4bHB5I0nQ+/eaC8qklCUMTJV og+Q== X-Gm-Message-State: APjAAAUXqDQ8qZJFOoEOUqKyFWKn+3XZyzVrGGUxVOmVa8wQilkJ+bcf EVg6524CWaaWKGTpC2a4u7h4IA== X-Received: by 2002:a7b:cc89:: with SMTP id p9mr21507045wma.99.1572877394844; Mon, 04 Nov 2019 06:23:14 -0800 (PST) Received: from mai.imgcgcw.net ([2a01:e34:ed2f:f020:58da:b044:f184:d281]) by smtp.gmail.com with ESMTPSA id l18sm21692446wrn.48.2019.11.04.06.23.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Nov 2019 06:23:14 -0800 (PST) From: Daniel Lezcano To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, Geert Uytterhoeven , Maxime Coquelin , Alexandre Torgue , linux-stm32@st-md-mailman.stormreply.com (moderated list:ARM/STM32 ARCHITECTURE), linux-arm-kernel@lists.infradead.org (moderated list:ARM/STM32 ARCHITECTURE) Subject: [PATCH 4/5] clocksource/drivers/renesas-ostm: Use unique device name instead of ostm Date: Mon, 4 Nov 2019 15:22:56 +0100 Message-Id: <20191104142257.30029-4-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191104142257.30029-1-daniel.lezcano@linaro.org> References: <6fd4d800-b1f8-d757-458e-23742d20884c@linaro.org> <20191104142257.30029-1-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Geert Uytterhoeven Currently all OSTM devices are called "ostm", also in kernel messages. As there can be multiple instances in an SoC, this can confuse the user. Hence construct a unique name from the DT node name, like is done for platform devices. On RSK+RZA1, the boot log changes like: -clocksource: ostm: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 57352151442 ns +clocksource: timer@fcfec000: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 57352151442 ns sched_clock: 32 bits at 33MHz, resolution 30ns, wraps every 64440619504ns -ostm: used for clocksource -ostm: used for clock events +/soc/timer@fcfec000: used for clocksource +/soc/timer@fcfec400: used for clock events ... -clocksource: Switched to clocksource ostm +clocksource: Switched to clocksource timer@fcfec000 Signed-off-by: Geert Uytterhoeven Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20191016144747.29538-5-geert+renesas@glider.be --- drivers/clocksource/renesas-ostm.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) -- 2.17.1 diff --git a/drivers/clocksource/renesas-ostm.c b/drivers/clocksource/renesas-ostm.c index 46012d905604..3d06ba66008c 100644 --- a/drivers/clocksource/renesas-ostm.c +++ b/drivers/clocksource/renesas-ostm.c @@ -64,9 +64,9 @@ static int __init ostm_init_clksrc(struct timer_of *to) writeb(CTL_FREERUN, timer_of_base(to) + OSTM_CTL); writeb(TS, timer_of_base(to) + OSTM_TS); - return clocksource_mmio_init(timer_of_base(to) + OSTM_CNT, "ostm", - timer_of_rate(to), 300, 32, - clocksource_mmio_readl_up); + return clocksource_mmio_init(timer_of_base(to) + OSTM_CNT, + to->np->full_name, timer_of_rate(to), 300, + 32, clocksource_mmio_readl_up); } static u64 notrace ostm_read_sched_clock(void) @@ -190,13 +190,13 @@ static int __init ostm_init(struct device_node *np) goto err_cleanup; ostm_init_sched_clock(to); - pr_info("ostm: used for clocksource\n"); + pr_info("%pOF: used for clocksource\n", np); } else { ret = ostm_init_clkevt(to); if (ret) goto err_cleanup; - pr_info("ostm: used for clock events\n"); + pr_info("%pOF: used for clock events\n", np); } return 0;