From patchwork Wed Sep 7 08:00:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prabhakar X-Patchwork-Id: 12968585 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0F7C0ECAAD3 for ; Wed, 7 Sep 2022 08:11:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:Subject:Cc:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Ju9Ce8gGBbZvjb2GQOJ0MBR8Ox/6sN/kbPTgat+/aMA=; b=Idb/Xnu+tKnDT4 wt0oVJzuQ9DyaW497frp6p3mC/U68c5IpNGU22S2s2O/G5q0IlvcrpQOukdip11C/waQauWtoYKHB duuHCMxsGpV9AUoLkCppecqRqOafyTAfCJOSx3AENkgeMvTJsi7v9ceffrQ4Hi17RB/bjW/zvBEjO CT3+6xxWDgUF4ZeXx7/cGUtGYrYS+c4qow3WpdU++z7Sgky13mGc/0YvBXb7Kcax+0IQYZZLbe3Yh 1nF5+RoEon5p71h9q5Te2+/EMpbNw78teUv+p4QDc8rbg4qMge1M7321BSothy594TvUfOOCYO9p6 bN828Yrer8Hymhlfdh4w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVq87-0044FI-JM; Wed, 07 Sep 2022 08:09:52 +0000 Received: from relmlor1.renesas.com ([210.160.252.171] helo=relmlie5.idc.renesas.com) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVpzg-003ysW-6m for linux-arm-kernel@lists.infradead.org; Wed, 07 Sep 2022 08:01:11 +0000 X-IronPort-AV: E=Sophos;i="5.93,296,1654527600"; d="scan'208";a="131952805" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 07 Sep 2022 17:01:04 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 3CA06400A8A2; Wed, 7 Sep 2022 17:01:00 +0900 (JST) From: Lad Prabhakar To: Daniel Lezcano , Thomas Gleixner , Maxime Coquelin , Alexandre Torgue Cc: Geert Uytterhoeven , linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, Prabhakar , Biju Das , Lad Prabhakar Subject: [RESEND PATCH] clocksource/drivers/renesas-ostm: Add support for RZ/V2L SoC Date: Wed, 7 Sep 2022 09:00:56 +0100 Message-Id: <20220907080056.3460-1-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220907_010108_456792_79BE214C X-CRM114-Status: GOOD ( 12.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The OSTM block is identical on Renesas RZ/G2L and RZ/V2L SoC's, so instead of adding dependency for each SoC's add dependency on ARCH_RZG2L. The ARCH_RZG2L config option is already selected by ARCH_R9A07G044 and ARCH_R9A07G054. With the above change OSTM will be enabled on RZ/V2L SoC. Signed-off-by: Lad Prabhakar Reviewed-by: Geert Uytterhoeven --- Hi All, Resending this patch as this hasn't been merged and I haven't received any feedback from the maintainer. There are no code changes as compared to v1 [0] (I have included the RB tag from Geert). [0] https://patchwork.kernel.org/project/linux-renesas-soc/patch/20220406072417.14185-1-prabhakar.mahadev-lad.rj@bp.renesas.com/ Cheers, Prabhakar --- drivers/clocksource/renesas-ostm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/renesas-ostm.c b/drivers/clocksource/renesas-ostm.c index 21d1392637b8..8da972dc1713 100644 --- a/drivers/clocksource/renesas-ostm.c +++ b/drivers/clocksource/renesas-ostm.c @@ -224,7 +224,7 @@ static int __init ostm_init(struct device_node *np) TIMER_OF_DECLARE(ostm, "renesas,ostm", ostm_init); -#ifdef CONFIG_ARCH_R9A07G044 +#ifdef CONFIG_ARCH_RZG2L static int __init ostm_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev;