Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp8271121rwn; Wed, 14 Sep 2022 11:35:33 -0700 (PDT) X-Google-Smtp-Source: AA6agR7Zpyqxmo7dckTazknsPgzAQ0WrRWfM8HsEZD5LzRCnEdv/7I+HCPmhNPQ9nte+gB/iaEcN X-Received: by 2002:a17:906:4fce:b0:77f:e6c9:2745 with SMTP id i14-20020a1709064fce00b0077fe6c92745mr7009201ejw.202.1663180533174; Wed, 14 Sep 2022 11:35:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663180533; cv=none; d=google.com; s=arc-20160816; b=uZsAkowpYKY91o/G3vkzjoIciMpVUEVzn3XbEivndc+HL9pqPoUr5qxJqHI7pVon9e aqZxG2TruIb1tfASNvTxbFs6F6BEHTiYPBClGA9YJCNeXHsaef0bVHU2/Fvw7r5YY17M rWjjHAw6ZjsMoRJLECCENkYI43GK2KB4fo0DKDakZw/j9Wrynlvxnxfn8AZTif3eKDvM 9QbEKquu5qa6TaSpspSmgWrvGXlEdpJhdEekbYIrqhi1SC5v+r4O5mky5LFb8DZrVbF3 ANr6qfgVfAAv0dYaeoTcetZ40URmktxyHuwgrTdEPnKpaA2aQXPQLAya0Al4gjuLVbnf RFdQ== 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=YMt96wZfysFXQUPuuSwdTdT5Vizn28FXv3y42DDTrh0=; b=CqqU4ZboYfJCB+2Q8AOpfb6yl9j5h2GAaho7Elni30AeiuvjP3l24FQGSux3SaudJ5 MACuZSrIZ/gugYZYhcs3bOIpYVvJ+WMFEWqYpuUZJ4doaVyfOaVAMHy3K8ZD37PCQf+y wlYXgglRrgcCvO8ZBOcHdyeQQBVV8bpje5cR297wVY4VNg+1JZWfMZ21JD1B53/iw68J Nv7mi4/dyvq6ACQysANPF25mLe3hvdZek8fpkkEjOxt6XZ9Nas2zLhL4QJGQfmKlynqW iRGDa6ld/K4DbC/bsmihpcjFePtvzI1Ypmk5zqmUndLAAQTCqyeUEO1CxRk48zDaxMpJ chgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CtRKZzYc; 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 i22-20020a05640200d600b004513ce1a086si10354323edu.56.2022.09.14.11.35.06; Wed, 14 Sep 2022 11:35:33 -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=CtRKZzYc; 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 S229899AbiINSFO (ORCPT + 99 others); Wed, 14 Sep 2022 14:05:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbiINSFJ (ORCPT ); Wed, 14 Sep 2022 14:05:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 437A5C46; Wed, 14 Sep 2022 11:05:09 -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 AF54161DD9; Wed, 14 Sep 2022 18:05:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0EDD9C433D6; Wed, 14 Sep 2022 18:05:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663178708; bh=e2slHSgeoUgIh3zoiTFJXIXJMSZ4aPFjE289S3cMQXc=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=CtRKZzYcmdo9mBSod6ZxSQ9g/KI0FkHzt63GRo9Z5DDOVT5i9b/Gz3YIRgJvTb+V+ I0wtOcGf5epD8SP8k63ozUjFRZe39PFNghx5I+UYQa1nmthhRT0bOZZ3q82isApGL1 /xyvHo5LZMTR9y4dapbH32H8Y29c7n1kH4cAh2IOo/Vm7Kx2XiZA6mM6tZHpQqu6/p uYlXXcVqpYyI0aVHJT0oTej5Heg9JyY+do6Qz9p68+nNA7+WdjJcWqHdN2LiPCgFQr xomfQcBAI0WsHa8zm2gETtS7zRs0e24stjyb4zwiPcC2eq5p2HvTeFiK5+kH1dGYKW F1gcNlftXe4pw== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <50e8f1e8-806a-3599-7cbe-0c7d4bec1c51@i2se.com> References: <20220815-rpi-fix-4k-60-v1-0-c52bd642f7c6@cerno.tech> <20220815-rpi-fix-4k-60-v1-2-c52bd642f7c6@cerno.tech> <20220914155035.88E45C433C1@smtp.kernel.org> <50e8f1e8-806a-3599-7cbe-0c7d4bec1c51@i2se.com> Subject: Re: [PATCH v1 2/7] clk: bcm: rpi: Add a function to retrieve the maximum From: Stephen Boyd Cc: linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, Dom Cobley , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org To: Broadcom internal kernel review list , Daniel Vetter , David Airlie , Emma Anholt , Florian Fainelli , Maxime Ripard , Maxime Ripard , Michael Turquette , Ray Jui , Scott Branden , Stefan Wahren Date: Wed, 14 Sep 2022 11:05:06 -0700 User-Agent: alot/0.10 Message-Id: <20220914180508.0EDD9C433D6@smtp.kernel.org> X-Spam-Status: No, score=-7.1 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,T_SCC_BODY_TEXT_LINE 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 Stefan Wahren (2022-09-14 10:45:48) > Am 14.09.22 um 17:50 schrieb Stephen Boyd: > > > > Furthermore, I wonder if even that part needs to be implemented. Why > > not make a direct call to rpi_firmware_property() and get the max rate? > > All of that can live in the drm driver. Making it a generic API that > > takes a 'struct clk' means that it looks like any clk can be passed, > > when that isn't true. It would be better to restrict it to the one use > > case so that the scope of the problem doesn't grow. I understand that it > > duplicates a few lines of code, but that looks like a fair tradeoff vs. > > exposing an API that can be used for other clks in the future. > it would be nice to keep all the Rpi specific stuff out of the DRM=20 > driver, since there more users of it. Instead of 'all' did you mean 'any'?