Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp178212pxb; Thu, 7 Apr 2022 02:35:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyU4LwadlbPs4/CTl2BjHXPL2XOlgNKyFSp/B+XtlO3dbsQ0S0LnM9u13huy+Ed1UVfXgXU X-Received: by 2002:a17:907:1c0a:b0:6da:7ac4:5349 with SMTP id nc10-20020a1709071c0a00b006da7ac45349mr12179482ejc.596.1649324125902; Thu, 07 Apr 2022 02:35:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649324125; cv=none; d=google.com; s=arc-20160816; b=b8VZ6gQmATfRTWJ8O9DHYWNz9aDlvKPpuG3Bywp7ywwGxGtVYUOLnwE7BuzGFWZ2+L /2j1dH23BG0+3nKvc9OZ7722q/IrrHfh84N2SeXCWGFBpOvNeLgqJWkps2nO6CGhYxOX rIpCVXeu/kxkg9s7AGcRQvVGmUoRKbif/MLNwdnfGbFwdq2WQD+rekmJdUvgHOSF4P0X cjbzrFOMAg5w5aVCyAtDT4z2KMUVsq+OpKv0furgMUVGwREMFWMng65f4IpqsyPd3c2+ /XistANjq5V8suIsm523t+p06vUya7sLsa2OCRnx8pWx39yI3hHIwnCiocktwp3LqREF baFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=sbY3Wzr9HKVvHGCbyuRCDaeA51Wn5EE4UWrcPvuI/a4=; b=dzbGf+36EKvyhh5xkUPbsL+N+Uw8gWBMg6ZxQL9RlfshYH5ukiXR7Bx5ScICHGHmbW ccc8QEPGw8OQ92thkvpUGsbsJXZ1EAsUL2CtO31XEstsGyA+S0SQmQjozKhPCf6A3mre 8FyKzHiSjNWGRWK7VyUce7j4kk+FJFeKIbzL1JAa+8rElLSAqWxH5AJUV6HLW3kjrkGP F3huOwwATjUVGOLLIpIyH2inXt1QtyXRMrfqHD7qaHdcYA4rgaj5G7ZGKPViSY2fYgDu En0q0C58j0u/q68Harc0YRbbNKRvQ4eGRq5H+K3xaOJBpohVsBH46N897E+lRjpB+U22 KL3w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w13-20020a170906384d00b006df9383488bsi13353846ejc.511.2022.04.07.02.35.00; Thu, 07 Apr 2022 02:35:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238887AbiDGHMV (ORCPT + 99 others); Thu, 7 Apr 2022 03:12:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233200AbiDGHMR (ORCPT ); Thu, 7 Apr 2022 03:12:17 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B75471116C; Thu, 7 Apr 2022 00:10:18 -0700 (PDT) Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id E72A2813C; Thu, 7 Apr 2022 07:07:53 +0000 (UTC) From: Tony Lindgren To: Daniel Lezcano , Thomas Gleixner Cc: linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Keerthy , Nishanth Menon , Vignesh Raghavendra , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org Subject: [PATCH 2/4] clocksource/drivers/timer-ti-dm: Update defines for am6 for inline functions Date: Thu, 7 Apr 2022 10:10:04 +0300 Message-Id: <20220407071006.37031-2-tony@atomide.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220407071006.37031-1-tony@atomide.com> References: <20220407071006.37031-1-tony@atomide.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We have pwm-omap-dmtimer tagged with COMPILE_TEST, so we need to use the ifdefs around the inline functions. Let's add ARCH_K3 to the list of SoCs to allow using timer-ti-dm on these SoCs. Cc: Keerthy Cc: Nishanth Menon Cc: Vignesh Raghavendra Signed-off-by: Tony Lindgren --- include/clocksource/timer-ti-dm.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/clocksource/timer-ti-dm.h b/include/clocksource/timer-ti-dm.h --- a/include/clocksource/timer-ti-dm.h +++ b/include/clocksource/timer-ti-dm.h @@ -251,7 +251,8 @@ int omap_dm_timers_active(void); * The below are inlined to optimize code size for system timers. Other code * should not need these at all. */ -#if defined(CONFIG_ARCH_OMAP1) || defined(CONFIG_ARCH_OMAP2PLUS) +#if defined(CONFIG_ARCH_OMAP1) || defined(CONFIG_ARCH_OMAP2PLUS) || \ + defined(CONFIG_ARCH_K3) static inline u32 __omap_dm_timer_read(struct omap_dm_timer *timer, u32 reg, int posted) { @@ -390,5 +391,5 @@ static inline void __omap_dm_timer_write_status(struct omap_dm_timer *timer, { writel_relaxed(value, timer->irq_stat); } -#endif /* CONFIG_ARCH_OMAP1 || CONFIG_ARCH_OMAP2PLUS */ +#endif /* CONFIG_ARCH_OMAP1 || CONFIG_ARCH_OMAP2PLUS || CONFIG_ARCH_K3 */ #endif /* __CLOCKSOURCE_DMTIMER_H */ -- 2.35.1