Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp373560pxb; Thu, 7 Apr 2022 07:52:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOJ8qu21jE+ywXZZoU/eG5TDVzNpYERRxemEIlh7Xrdd14MhanHg99zJXglpx38GJdBbJs X-Received: by 2002:a05:6402:278f:b0:41b:79b1:39b4 with SMTP id b15-20020a056402278f00b0041b79b139b4mr14804189ede.163.1649343168914; Thu, 07 Apr 2022 07:52:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649343168; cv=none; d=google.com; s=arc-20160816; b=draxYoVMTf2VRO3yI+LEuVZzmTXNDJD5RAAmZS1s748pRVoz7dKm6SCXtlIe+jzsuH 4QrJO00wi+pVTLkxGATEgGrXECA5IMyVvJhzYx+IIIhtn+vWqLRo0XFHS+s41r/dJFrS 7jdaC719PDZpWpo+P/ePGNZn6Zb0BnyGt8a5AGL+dhvRFpowfiKjegLODvIslOV6bxTo pYEbYS/oc5qryCQpuNTozRhXUyxiy86nvFrE+zrex/mO9DU/Tyv0hygEAWLZTNy53Jsd C1HhP9u45KaamYw8EKj1VXD1zkRBLFO187QawexR4zT7Y6kkeYvWMDkSKLbrUyae9Qu0 rMpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=2gzyO9EetMlpUJSbIyUgrB6/YPn3f65mHl1Id25ZaiI=; b=gQems0EPuYLBdq0STixl8VB6FGG60GAwarpSAr4VlZGGey0p/NbAwsdqFCK7SX8Kpa T2VVkutQPMOu9gtrN4IRvR7fDLYxon2VNI0NSSr6LyPV6lX8P2MUQKR4AAS+QlwAAfak +DkwLMuXYphFxDJ6RCD3vk97WJz1IndNM4IPOQpJZn0nzhkXj7A4VqEJ+TLTr2THFgbk caUEG5FDqZU+I+CC2A1Kt7qEI09vJHiIZruuJLVRDEB6AlSuH8qqdOUFUrrY651byCBP iFDfbBfE3eYhw3U0Z18tU0oIQsW16G3ZWYWOrHKtnhwEECtgdUTGcsgQWrehEKLbX0jE caEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="JNSnl/Mc"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v7-20020a1709061dc700b006df8bc5f3e3si13594515ejh.9.2022.04.07.07.52.09; Thu, 07 Apr 2022 07:52:48 -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; dkim=pass header.i=@linaro.org header.s=google header.b="JNSnl/Mc"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242699AbiDGIHB (ORCPT + 99 others); Thu, 7 Apr 2022 04:07:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242840AbiDGIGf (ORCPT ); Thu, 7 Apr 2022 04:06:35 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5CCC1B2168 for ; Thu, 7 Apr 2022 01:04:14 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id q20so2985677wmq.1 for ; Thu, 07 Apr 2022 01:04:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=2gzyO9EetMlpUJSbIyUgrB6/YPn3f65mHl1Id25ZaiI=; b=JNSnl/MccPRq/JyLKjZcEpZv1BRBIjUmnJDdvDzyqambjlq4a8Iuu4KeogT26kdMbR wvZcmxkx/tnJ0s5oGMLwpE4x5Eqf+wWcEUOch8i35ggyu4KvYUpeiLtx7SwpIrrx2tfj l/DGCyoWO0FBhsUsODWiwAnkvOJ15UCtv9/zm1bFkZci8gaYOoOS23eyV6Dl+LavN5jB dPHuvekkf8/Nqg2P68D0dvuZMo0uvavSbUzCx/8QJlGaCpgc9xsAfXJKvhvtkgz2isOF FPI5bQVwYK/JNJewbqw93CPGcvaryFR2Ra5qKssD/DKSx/IyXQLiqmpdUl2yaRisqxPo 1p5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=2gzyO9EetMlpUJSbIyUgrB6/YPn3f65mHl1Id25ZaiI=; b=Dgy7wNH1PFHUlRkumHUj2rx3RQ+UFIZJV0gvSCS7IdkGJRlvuSagnixyNmgKAskNhd BqP4M/tlF7edBiSbXuVCm5By08m8FvUqZ4oqWFyF9ySF/5/9Td/BXsDI9pyn9FxEIwTj WY4bePkKnTbLO+6m/qKodB8djmYGguNFl/St8StKbSZKQSdkeASfDSe8l2k5IB4ThsrA Jln8OBhhTMjP5Yup2+fqq4UFAztVeRsgANwqaU9IOozEbEIq2gFNftq/lJj5S1PEeExU iGoWBowaJ8cft2j72jYeCx0gpuPfJYnS5iyTHPcPa6ho4EB3/CJo12BqPI3xNDa/9ST+ HVRQ== X-Gm-Message-State: AOAM531LlsY7IAPqnya4AnLINN+3p9FgyB/rKjCuYXYDdTBAz3dOrBQ9 MbzQSr7v8lXuPldqJau46AbHKA== X-Received: by 2002:a05:600c:1e23:b0:38e:7138:de0e with SMTP id ay35-20020a05600c1e2300b0038e7138de0emr11238118wmb.188.1649318653322; Thu, 07 Apr 2022 01:04:13 -0700 (PDT) Received: from ?IPV6:2a01:e34:ed2f:f020:f2a2:7d81:4e67:6c1c? ([2a01:e34:ed2f:f020:f2a2:7d81:4e67:6c1c]) by smtp.googlemail.com with ESMTPSA id a12-20020a5d53cc000000b00205a0ee9c74sm15660932wrw.89.2022.04.07.01.04.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 Apr 2022 01:04:12 -0700 (PDT) Message-ID: <9671f0a5-6860-8a75-d65e-345ce890cd88@linaro.org> Date: Thu, 7 Apr 2022 10:04:11 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH 2/4] clocksource/drivers/timer-ti-dm: Update defines for am6 for inline functions Content-Language: en-US To: Tony Lindgren , 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 References: <20220407071006.37031-1-tony@atomide.com> <20220407071006.37031-2-tony@atomide.com> From: Daniel Lezcano In-Reply-To: <20220407071006.37031-2-tony@atomide.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On 07/04/2022 09:10, Tony Lindgren wrote: > 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) Why not replace the above by CONFIG_OMAP_DM_TIMER ? > 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 */ -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog