Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1706164pxp; Thu, 17 Mar 2022 15:03:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFhFCBElR7vysN5NmB3t1rxf41Y5Oaaq/LAj68AJMZXZ/lYuuqMqOzxuiX+djOIzIkO4+J X-Received: by 2002:a17:90b:1643:b0:1c5:caad:a2db with SMTP id il3-20020a17090b164300b001c5caada2dbmr7684426pjb.223.1647554611123; Thu, 17 Mar 2022 15:03:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647554611; cv=none; d=google.com; s=arc-20160816; b=HV5rclX4pfuX7muwUT9wT6R30uDXx8602PiAMD6LvUI21K/uz5RFTI3+IL8E/IcKEl cna7Up/JzqBl1g2JyoPh1PkBoolJFcKWkwPUKraPKfhqk60YvBzzA0ZoD8OJWvl+lgsj re4tlKBwRxoAtW56wDfMOJA+KKeqQ3r0Qlqr2YgwyHCaTgkTFqEgtgC5esFXdXVDDOq4 L+vzkYmt9AjNrGsCpZsGf6sjjj71ctYDY9xB8GtCiQkT8KD8jb7p8wDwbw5V+HewI0JA GhiN8UK+hDUWFvNtVN4HaarjANJcVRHACnPf+xA3Ub8kCkQjZRYI5+gYpWo+ksDh1VkA HqoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature; bh=yB8M0eKhq9M+1xiIr38hrjaIuAGckiipdEzmuP7TpZo=; b=sfZzgaEw0j0k9CJ4vw23M5ZKW3opPuEYC8jwtVkxqehBmxWfsyufyiazJKKKtA241u zTeYC55v7gLoF6ABi67r2B5QO3NkhnqOs4lCBEx8jc7LjhqmLMeAOIbI9kiGStD8VgOS RyLpmtmlgIzdr+7noSP6Nj4UWRB7r6lxBAya7xjA1qcnMRmpBWYT247eObl7xBokHahI UN4AciFvha5Dp6kKUXRZ723TFJi2/mrDwbGSDA1HQBx/1AVlfjGyNzLdHGL3NW5AaoeL vc/8kn278i26Z4p474mHvbYsoIaklq2ZNLkmiPguZe7oyqYtnYAL3cnR1uYWRDniWLuV JJBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gW+CwaDy; 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=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id w7-20020a17090a4f4700b001bf70e727easi3519199pjl.101.2022.03.17.15.03.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Mar 2022 15:03:31 -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=@kernel.org header.s=k20201202 header.b=gW+CwaDy; 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=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C6183190E8F; Thu, 17 Mar 2022 14:46:29 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230385AbiCQVrf (ORCPT + 99 others); Thu, 17 Mar 2022 17:47:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230349AbiCQVrf (ORCPT ); Thu, 17 Mar 2022 17:47:35 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0F00190B6D; Thu, 17 Mar 2022 14:46:17 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 725A1B8200C; Thu, 17 Mar 2022 21:46:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E8200C340E9; Thu, 17 Mar 2022 21:46:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1647553575; bh=qdQVSRg2hXKIggnMTH/zj9zs5OSmnRHv038Yej8jfPY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=gW+CwaDyNFxQzel4/T6w13sOlU975El2hm1WPnyo8V2TSrMHOa0B8HtT7WNCDwSwD G9ec4nWaKayphDIfYeop4ENYvAK8TfXaHYaXqXa8iGQA/ybABtJ5l+iTxHEVW84VZV kPq5/RnxamUmBWt6aYH4z9x97Upbm6tr5iFCS2+O8l/ZgpZ2TsgSQhiN5KugkCIHUH 64811tXrVj4hQa2ulhyqDWjAgYJ5yOoAR/LiSG/DpCvVZEpSu+VBzcKW5uxmNNtIwY P2D/U+LLOD4RbtCbGykS3oajptHbWkgDCYvZyW3vVvKiZvCaRXhTBLZKdbkpQa8H2h jR4fgLbOAOb4A== Received: from sofa.misterjones.org ([185.219.108.64] helo=wait-a-minute.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nUxwi-00FIZx-Nl; Thu, 17 Mar 2022 21:46:12 +0000 Date: Thu, 17 Mar 2022 21:46:12 +0000 Message-ID: <87fsngxnff.wl-maz@kernel.org> From: Marc Zyngier To: Kuldeep Singh Cc: Rob Herring , Joel Stanley , Andrew Jeffery , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org Subject: Re: [PATCH v2 3/3] ARM: dts: aspeed: Remove arch timer clocks property In-Reply-To: <20220317211024.GA99538@9a2d8922b8f1> References: <20220317191527.96237-1-singh.kuldeep87k@gmail.com> <20220317191527.96237-4-singh.kuldeep87k@gmail.com> <87h77wxslh.wl-maz@kernel.org> <20220317211024.GA99538@9a2d8922b8f1> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: singh.kuldeep87k@gmail.com, robh+dt@kernel.org, joel@jms.id.au, andrew@aj.id.au, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 Thu, 17 Mar 2022 21:10:24 +0000, Kuldeep Singh wrote: > > On Thu, Mar 17, 2022 at 07:54:34PM +0000, Marc Zyngier wrote: > > On Thu, 17 Mar 2022 19:15:26 +0000, > > Kuldeep Singh wrote: > > > > > > Arch timer either require clock-frequency property or doesn't need to > > > specify clock at all in DT. In general, frequency can be determined > > > internally and in case of brokern firmwares, need to extend > > > clock-frequency to pass info to driver. > > > > A clock frequency and a clock are not the same thing. > > Yes Marc, That's what I have mentioned in commit description. > > Driver uses "clock-frequency" property only and doesn't take inputs from > "clocks" property. So, any platform should refrain from defining such > entity at first place in DT. Binding also says the same i.e pass info > via "clock-frequency" property and no mention of "clocks". And what do you think provides this clock frequency? Do you believe it comes out of thin air? No, the driver doesn't use a clock, because it *assumes* the clock feeding the counter is enabled at all times. Does it mean such clock doesn't exist? > > > > > > > > > Aspeed BMC is the platform which defines clocks property, an invalid > > > entry which can be safely removed. > > > > Safely removed? Says who? Have you tested this change? > > Since "clocks" is never read by driver and driver incorporates > "clock-frequency" which was certainly not defined here, I believe this > reasoning is sufficient for my clause. As it's safe to remove an entry > which was never used. Really? And you have of course audited all possible firmware implementations (the bootloader, for example, which would *enable* this clock) and other operating systems than Linux that use the same DT and run on the same HW? The kernel tree unfortunately serves as a repository for all the DTs, including for payloads other than Linux. > Please note, it's just Aspeed BMC which had "clocks" defined, other > platforms which require input from DT have extended "clock-frequency" > property like I mentioned before. Again: clock frequency and clock are not the same thing. > I don't possess this platform physically,and did successfull compile > time testing. I have initally copied few Aspeed folks, they can help in > reviewing and confirming this. > > > > > > > > > Moreover, clocks also matches incorrectly with the regex pattern. > > > Remove this entry altogether to fix it. > > > 'clocks' does not match any of the regexes: 'pinctrl-[0-9]+' > > > > NAK. That's not a reason to randomly butcher things. > > I hope I explained my reasons above. My position on this sort of change remains. Blindly changing existing DTs based on a warning provided by a tool that totally ignores the reality of what is out there is not acceptable. M. -- Without deviation from the norm, progress is not possible.