Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1393167rwi; Thu, 27 Oct 2022 15:22:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5YRqSCLBZGE169p7oSZMNbAFD2r+y4DpfwUHPXsn57x6MhALgL/iYIBaQC9Z3EILGIExbJ X-Received: by 2002:a63:5559:0:b0:464:a987:8365 with SMTP id f25-20020a635559000000b00464a9878365mr10173687pgm.479.1666909377763; Thu, 27 Oct 2022 15:22:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666909377; cv=none; d=google.com; s=arc-20160816; b=TLauVG1zwz7R/yEl/Tw5kNYdI2DMINBwC/AvNusK1LtGPwhWAEaazjhzwxXd/nZJAI NlDWJOS40+ioVf5eMopm+mewOclNZVUWVtufXhqtO2Jt4OEdZJ31ZuTPewaag5f4MMHU my8nVsa4YhhBKY08FT75lgixZDyn7zSkBAGlZmZZ31aKONaTVu8qFIsLqoqvQ2RhNh76 Dn4HNyVzuslCiERO5qKE6k8ykJ98/1Iu+kadni5+3d0IoEjtJgOy90esk6xxqcXRA7Qh 9ZbqY2NHsWaNxt7wQhmtiOvZs1jHCBF7Yjwh7l8hhjq1xyR/uUpU/kGnuzL07hYozSyS 1/mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=WYSeyRKwrcVsAMMNgB+KIvDddS8JIRL6CmaEeuTAwhA=; b=q2i6a3rZVBQib/UPxLrvsNPjr9ACk2RAgIt1YtW+mtMO9w7l4Mks9h0YXwUhRDLYri UTCNL6VJcytKy49Us0ttPtxFt5LGg9klMf3l1CVCY3RoljvlhH8BeGHFI517JvRAhg7G D3FvQ7quE+CEzH61KvBjBWsPtaVh3wXXezE2spA202LNeYscxFcB1r2GKeqNJ/u7Iadt sWQ14ixBSt8g3+sjlX3K0GvmNXJlo+LXj9itvbZWNXOxm/wkD+Xsqu1Q8to368v6ssJG RPG/8l7HP6RfUuz0XpSLLbiJXHk0yB1qfLNiXjII//ZQwLyQA6su+h82t/1SVVYwu08o XwDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=g8Wqbn1z; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h7-20020a056a00218700b0056cac533dfdsi2752307pfi.261.2022.10.27.15.22.45; Thu, 27 Oct 2022 15:22:57 -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=@kernel.org header.s=k20201202 header.b=g8Wqbn1z; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237002AbiJ0VpO (ORCPT + 99 others); Thu, 27 Oct 2022 17:45:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236966AbiJ0VpL (ORCPT ); Thu, 27 Oct 2022 17:45:11 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9243F76971; Thu, 27 Oct 2022 14:45:10 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 3846762523; Thu, 27 Oct 2022 21:45:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8EC66C433C1; Thu, 27 Oct 2022 21:45:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666907109; bh=mTMAirvTRFpPduH/fF/LE6Jf3DwPW1HTbiNGhhjjb7Y=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=g8Wqbn1zWUFFiBcPBZ2RiF1buP52eUOOhLy/mRUOVZsjtilVSn8JjeVzNS49IqQiD LBStX2zQAzpe+NzAhHyRdhNm8Ij3a8nARkHZf7n33XlDacB1n3GwIkFDkE4TMzMd+l NgAtrcqMth741cUIwqL3o4npNAuSRW+PMDqL+YlHkq/v5GS+9A/EslD/ac5ybYh/0W 9mQZFXp5yt3YghtPFRG0gKbVbK28ww3MzP+X5Mh3tpHORpV/ndtNKI0XvQ4W9DXrpZ CUBg/EC+0yhvIzAD9LXvVczuhg8HGS7MOcs8bbTAhIJrbWLW4QepGI2F3M/KqZKTDW SYtPSLpBQ+AiQ== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20221026135215.nqndtcb2unxqwwux@houat> References: <20221018-clk-range-checks-fixes-v1-0-f3ef80518140@cerno.tech> <20221018-clk-range-checks-fixes-v1-4-f3ef80518140@cerno.tech> <20221026020800.38AC8C433C1@smtp.kernel.org> <20221026135215.nqndtcb2unxqwwux@houat> Subject: Re: [PATCH 4/4] clk: Warn if we register a mux without determine_rate From: Stephen Boyd Cc: Michael Turquette , linux-kernel@vger.kernel.org, AngeloGioacchino Del Regno , linux-clk@vger.kernel.org To: maxime@cerno.tech Date: Thu, 27 Oct 2022 14:45:07 -0700 User-Agent: alot/0.10 Message-Id: <20221027214509.8EC66C433C1@smtp.kernel.org> X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Quoting maxime@cerno.tech (2022-10-26 06:52:15) > On Tue, Oct 25, 2022 at 07:07:58PM -0700, Stephen Boyd wrote: > >=20 > > You can grep for it: > >=20 > > $ git grep -W 'struct clk_ops .*=3D' >=20 > TIL about -W. It's awesome, thanks :) >=20 > > but I'm fairly certain a coccinelle script can detect most of these > > because clk_ops are usually statically defined (although not always). > >=20 > > Either way I already see that 'owl_comp_div_ops' will trigger this > > warning. And 'at91sam9x5_smd_ops' looks even more likely. Given that I'm > > not super keen on applying this patch. >=20 > It's the reason why I didn't return an error at first, I wanted to > report that it's invalid and let to drivers the chance to be fixed > still. >=20 > Should I take your above comment as you'd rather have the affected > drivers fixed in this patch and we then return an error, or is it that > you don't want that patch at all? You can try fixing all the drivers that are failing to meet this requirement (found with grep) and if they are fixed we can start printing the warning. That seems to be the practical approach to getting this patch accepted. The TODO irks me to be honest. I'd rather we fix everything and make it an error and be done with it.