Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp63834pxh; Thu, 7 Apr 2022 14:04:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCMGftkV+yT0AZHjb7pdob7ZlnJXcIjM5+qoXAMO6e9X4ijmvqouYK+5S/1YGZ6Mw3p7nM X-Received: by 2002:a17:902:8496:b0:156:a95d:69c7 with SMTP id c22-20020a170902849600b00156a95d69c7mr15889339plo.131.1649365489607; Thu, 07 Apr 2022 14:04:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649365489; cv=none; d=google.com; s=arc-20160816; b=jkXkWId9f+SrK7xMK/bwzV+Abbc9YbeftTgmVNoYsGIL87Dis9CgcfUH4qeIOJX0QH QVGE9Q17zpZvJypjFG1ho+R6Pltdg9pyoVjPLlVXhLUqgwYGmhQuSnOoNEEZ8VReW5rI 90hX0EqkMdAmgz2+kw+wi7+KR+2HoQKeOiV3WFGhjaWUDgqQiZZoosM+DYBVQVaC0dho dbQfDVEhvak88i9WlGPJIBVCRP7gfC8h0FjmIW5yAY34gNyH5ms7kmBaklBna0N4Tl6b eC9ivIRPLTWsG/KpPxQQInJpfVKY2v4dnJJiMr83Trv26Bm0rXebZCEVXElbV2jytjg1 7Lhw== 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=WFekK56Gey0nwjwSFnx0O6aDoHsXBZvzYZ5aCHEoU+Q=; b=DDu+b9CD12HWCEehN+S746Ux7y4b+blw/xWiKIgArMqRnam2kGWZbQ5jZA3KMRoVWD PoezoiiOlsNzbFSrl1/DIhNqSgXRiP6+n+/KIHxUTpQdDRD5ROExRZo+G13SyIjt3Q+9 1UuxCtonn11Vj6aiKi1mmqWjRnz5LT32kbjA5NblG81zGixeVIUNmsgMaZeRzysHG+UT TSnlI0smpt5vwYGTrL0TTks7Fjb4YvXU9NVk/qZgGeIAOiquvuUIMqvQe1AZuL5zpxAD rSn8AJ2VOvtZRxLw7DlUNYhlZKNL/+mjxsp/nKCS0Y2XDtNiWNhdj4/zucP6LyeYQFcV K1SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fss10bR3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id d2-20020a170903230200b0015492827ec0si808589plh.302.2022.04.07.14.04.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 14:04:49 -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; dkim=pass header.i=@linaro.org header.s=google header.b=fss10bR3; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id ED4C92BE94E; Thu, 7 Apr 2022 13:10:02 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244964AbiDGLuM (ORCPT + 99 others); Thu, 7 Apr 2022 07:50:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236885AbiDGLuJ (ORCPT ); Thu, 7 Apr 2022 07:50:09 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3847235878 for ; Thu, 7 Apr 2022 04:48:09 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id h189-20020a1c21c6000000b0038ccb70e239so573075wmh.3 for ; Thu, 07 Apr 2022 04:48:09 -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=WFekK56Gey0nwjwSFnx0O6aDoHsXBZvzYZ5aCHEoU+Q=; b=fss10bR3bROT9qAiIjftMdGUyAxbS+hSjahXvNa5oNK2t0r3zNv6qqfpEvqMoMFIIu i6dxHsLbYmyBPl+8V3FtoKhIH+Qn7OXwxa1lNCG3cU0t3Bki5wkDHOTqFMOciHPI+W4M iN5DDZ3IDi8rkB/V928MqOmRTxXHgGNhiP+X2iIDuBjG36g2gzSR8bze17fdd+LJq15W J4MhVSBGJpme302mRdlm90AKGhQ6F/WvPMdPaKdwerzYTDHlR85+NTUdy6VXuHnjg9W9 Jlwpt3rRR265vssH0rVpHuPgTE2EwEL+ciWi7xErcTTtMzWPYZNLVpZ/SOuxTwOWOr0E QGuw== 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=WFekK56Gey0nwjwSFnx0O6aDoHsXBZvzYZ5aCHEoU+Q=; b=PI/zbebo+dHYTo3kyyc/9JfXiWOciMBL3FldNf9AzoADmoXSdsH731jNCRJMDjk5ZG +covcw2F+DCpouFtk60O02QgG2zLijdYAM5JQE+ST4sYUw+CrDJFn7nwSMeXtBKdI7Ck gZZ/zEQleYy9YgWCpjbG7x2UQb2sEnAQ6tGa5ScIcKNzpsV5JrAfXTQZZ0CABx66GBVa pQWVBMz2R5G2GxA8HK1Pk9esa75bGcopnAxZ711j/lq1S/Q3i+vOyaYi5r96pSxN/UIF 6pLPbZ/BtPMnLyMjR8MlyMrPueMpeAZJqGlcKYuSlhqDBHMP0vQM5GQKTDc026Tt8OiW q0zA== X-Gm-Message-State: AOAM533h9w+sQ7t4tHu8kxN8uTLfLB1tGLR9qMsDdHW5GNL5RoZEtWG4 x4/H1yAcZBmMB4FgAkPUri7BKQ== X-Received: by 2002:a05:600c:1d9b:b0:38c:af70:9998 with SMTP id p27-20020a05600c1d9b00b0038caf709998mr12025660wms.169.1649332088181; Thu, 07 Apr 2022 04:48:08 -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 f8-20020a5d50c8000000b002061622ec88sm9037808wrt.105.2022.04.07.04.48.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 Apr 2022 04:48:07 -0700 (PDT) Message-ID: Date: Thu, 7 Apr 2022 13:48:05 +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 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 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> From: Daniel Lezcano In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 12:26, Tony Lindgren wrote: > * 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. Even better :) -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog