Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp42184pxh; Thu, 7 Apr 2022 13:24:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9OJWE1PRZufsHLPgjBjuteqaVe8C5j012SZVTp/5Y61RZn0OerpKjsYPaMcW96KucJgpO X-Received: by 2002:a17:902:8ec3:b0:155:ff17:fb7 with SMTP id x3-20020a1709028ec300b00155ff170fb7mr15536037plo.135.1649363050929; Thu, 07 Apr 2022 13:24:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649363050; cv=none; d=google.com; s=arc-20160816; b=n2gNtdWXEohpYd7aJ8Qn5iqrnLD3Zp7FzDKYR0j+h5EDxKr7Wt+lrC0PgNX0lvnwaI 3o2Vy1NXkqXWBRX4Y1WgW8JMbiZMEOQew/2SPbvdi8iwHYnv541GHbs454D7J44Wrkpg 6Ddcg9Id+blgYLscESx0WRJrPKLuBpxjDtiCIGp4WoWDNT18BXJw716e/izhlBI+JPFB udz7UOaOFAlEBbqS9ZAr/dZ9/wDFF98xUjM4tmndYWZ0uI1oBrjTvDn/I+Z+5fVj91jv ckFWMOv7O7GYioILRaK++2psfuzbJfLWHXHva97sgxWnSZLGaFzF1CPwA1iC30oGCKXZ H8QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Wn2siDeIqoQqXF55Nb6AGqBBaw3gpwJY5C+xvvTvxeA=; b=p5T2+wZqLduSpNTe5jXquKJYzQ4H8LYMQPglETTMpUgtcE4Kx0LEK/Rqg6ousFtNPM BDTV4pyS3GV2M7WnVIvbZNlnfhfuC2bIT+XPLxBG2zoOSof5gNviqQKB7R3cjs6EMo2S m7ph5yeqGIPV1l+8jiTcMV/aYz2FBwBfbm0ZL7RQxpp/SPxO/pPv1AOgesGmodPgoA/Y 7jhk4YMyncJSLaJi80nDfzDMbptJeMthxOOdwWSOA8Rk+PW/oP1TxXBqYBXz3klrD1++ C2k4qr6p1eJCpNgWFO482WEbLgqW5Mvc3eysrpT02jD7xb80rZIr1TKdvfnqX0AUPpt8 NwPA== 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:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y13-20020a17090ad70d00b001bd14e01f4dsi2642104pju.59.2022.04.07.13.24.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 13:24:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 19AE22571F6; Thu, 7 Apr 2022 12:43:37 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237504AbiDGK2l (ORCPT + 99 others); Thu, 7 Apr 2022 06:28:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244236AbiDGK2f (ORCPT ); Thu, 7 Apr 2022 06:28:35 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9C89E972DC; Thu, 7 Apr 2022 03:26:29 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 110738125; Thu, 7 Apr 2022 10:24:06 +0000 (UTC) Date: Thu, 7 Apr 2022 13:26:27 +0300 From: Tony Lindgren To: Daniel Lezcano Cc: Thomas Gleixner , 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: Re: [PATCH 2/4] clocksource/drivers/timer-ti-dm: Update defines for am6 for inline functions Message-ID: References: <20220407071006.37031-1-tony@atomide.com> <20220407071006.37031-2-tony@atomide.com> <9671f0a5-6860-8a75-d65e-345ce890cd88@linaro.org> <7f3cbdf3-401c-6c30-20fa-b5121bd3f63d@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 * Tony Lindgren [220407 08:50]: > * Daniel Lezcano [220407 08:23]: > > On 07/04/2022 10:15, Tony Lindgren wrote: > > > * Daniel Lezcano [220407 08:01]: > > > > On 07/04/2022 09:10, Tony Lindgren wrote: > > > > > @@ -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) > > > > > > > > Why not replace the above by CONFIG_OMAP_DM_TIMER ? > > > > > > Hmm that's a good question for why it was not that way earlier. > > > > > > This series changes things for tristate "OMAP dual-mode timer driver" if > > > ARCH_K3 || COMPILE_TEST though. So the inline stubs are still needed for > > > COMPILE_TEST it seems. > > > > But if ARCH_K3 or COMPILE_TEST is set, CONFIG_DM_TIMER is also set, no? > > Right but I suspect that COMPILE_TEST will produce a build error on other > architectures. I need to check that though, maybe that is no longer the > case. We could use IS_ENABLED(CONFIG_OMAP_DM_TIMER), but looks like we can now just move the __omap_dm_timer_* inline functions to timer-ti-dm.c instead. I'll do that and repost after some testing. Regards, Tony