Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4311964rwd; Tue, 30 May 2023 03:44:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6fRjehxd5BvMc+jvbpArSzRjK1qcQ3HPRs98YH9n2J6TGul5ZXRq9dlhKrV2zsX7VNqgvG X-Received: by 2002:a05:6a20:3951:b0:100:6f8f:7793 with SMTP id r17-20020a056a20395100b001006f8f7793mr2422972pzg.3.1685443470350; Tue, 30 May 2023 03:44:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685443470; cv=none; d=google.com; s=arc-20160816; b=UMDffmnMbMzPcYKmjWuNvCH4jwbxI6p7aIzHDlRWEQFmhe0R/Lhipg8Fulw6AHiYSu 3kzeoJ+p+eSl2rBJVo0cwFYYqIXsNEt/jH6sqkMiiWLXUJNoKKsFfHFytjl1jpvV7Zbt tSkhiPNSYAWROO8sMoXiH3cFbgcz2KcsUkGb9DCjgShizEohhNR3RfeSmts4YewPzQhu s+pc2paUDxlSBFmsUp/BiI2aee6pY/PLTTcp7XEQeT2BdaMYzD9Cd2QHyVeDdPQFI0oJ ksHRRK9qE8kGdKmxXFsVe4YFHu38eEXHieQS/RnzZW1Vpjj6JvbDw5TO9zaLh9XQDjyU /+YQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ZZ2d8N6aiwCXbkEL8WBDHvwXbAQEXW1/VLZeA0k3Zck=; b=DdY8ZP+sW1Hlbm8J4xPLwU9Wl9EJzyKZqf5PB+NrzWN1l3dM0xPuYkCaXB921S/zIC U3WDfWxP2Vz1zSUIH8fXT59OhL74pEzBdDW4Xn2oOjCuC4sWzNQW1aFqrwiXuPdCfG4K 9GjMq4wcRMusSnN5K2K3wIgf5Ne6eNIdrY5Zk6dTba718tYIWY6nOqephQ41Rsh1zkFs EjifOlez/VY0RP8dKWwNFDczvQNhdQgriY3xDVfj9+T3Tsl4NeXKX1o1wG9Q5CWPTQZk uqPjzWTznKpwBtu4DU+rmQI5teznGp5bv2kIAf2eH8W9Hh1Mxt4FwwMMJS2MgrTYXdrE 4g4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="R/yWFIcy"; 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 e9-20020aa798c9000000b0064f7dcf4136si1559096pfm.50.2023.05.30.03.44.18; Tue, 30 May 2023 03:44:30 -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="R/yWFIcy"; 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 S231584AbjE3KeF (ORCPT + 99 others); Tue, 30 May 2023 06:34:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231611AbjE3Kdu (ORCPT ); Tue, 30 May 2023 06:33:50 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B93B7126; Tue, 30 May 2023 03:33:47 -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 50E4460C87; Tue, 30 May 2023 10:33:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8455EC433D2; Tue, 30 May 2023 10:33:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685442826; bh=Fln3Mnh+80acgeHumKpr0UR+mx8aRBQanCGCmvcj6dg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=R/yWFIcy7CFlAqu0bhA7C9Jz0Ig8CU44fogGfkgP3yLjE0WUmsYsWm+prUozHNWra qMmpvQseC/lYmHINYfLFcU1JJ6DjvVzLI1H86rO+cREwqx7lfejrNfTmN0y7WHcfeH BCC6OaIBiOeetzisYBi281hXqqYT1tP4ERJRiY4ZvgpRwB5Kyt2RaK3x6cC1pBLbSj Fk5b5otjNFDYIG78h7BdI2VjymKekOHKrvM2gVATpabjk8JPuGM/njcEunvntfFCB3 NvJvr57w1udDStSh3dQjXQXPyoAV+Hgr32k1vZ/V36WbhvCkEXsuVYHdRAZFR8Y31Y 1vISdIHEiUh6Q== Date: Tue, 30 May 2023 11:33:41 +0100 From: Mark Brown To: William Qiu Cc: devicetree@vger.kernel.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Emil Renner Berthing , Ziv Xu Subject: Re: [PATCH v1 2/3] spi: cadence-quadspi: Add clock configuration for StarFive JH7110 QSPI Message-ID: References: <20230526062529.46747-1-william.qiu@starfivetech.com> <20230526062529.46747-3-william.qiu@starfivetech.com> <042c560d-1f36-8e97-3796-7423245592f4@starfivetech.com> <86555925-b8dd-29a8-60cd-5c2ff2c1432a@starfivetech.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="0IjcTOaConsRfQgO" Content-Disposition: inline In-Reply-To: <86555925-b8dd-29a8-60cd-5c2ff2c1432a@starfivetech.com> X-Cookie: I've read SEVEN MILLION books!! X-Spam-Status: No, score=-7.3 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 --0IjcTOaConsRfQgO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, May 30, 2023 at 10:05:38AM +0800, William Qiu wrote: > On 2023/5/29 14:44, William Qiu wrote: > > On 2023/5/26 23:36, Mark Brown wrote: > >> Nothing ever disables or unprepares this clock as far as I can tell? > >> Perhaps also consider using the clk_bulk_ APIs. > > I will add in next version. > Now I want to replace the original devm_clk_get API in the > driver with devm_clk_bulk_get_all API, which can achieve compatibility, > but it seems that it is not good for other ip with only one clock, so I > want to ask about that can I replace it? Or define that inside jh7110? You could always specify a different array of clocks depending on which compatible the driver sees, just like you'd conditionally request clocks individually. --0IjcTOaConsRfQgO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmR10QQACgkQJNaLcl1U h9A/Pgf+PyO6n0Sai2vAqhannyjrJNScSAcfT759fOsLtw54OcwCbpqbZa77wgiH PjCzh72zQSXZ0AnoaovIQ+Pfyhm+M8KSWkeP95AhiBCJQr2kbMf6zpMxJaCIwN55 fwXAlxbea49Avm2qG2zwQOnV2b3p8qFPC76xxmHETmN/mx2p9AQFmIHZhuQcRAFM 4B0OCyT+QQ01lSmM9kNL0dttXDSUk1DbdlqGu8LIg3IkbsI2btCTER46cD7I8aI/ daiysOn9wEgibBlWwfDsTwmIVd1d+y1EmB3GBE0ip6StyEjNBYmBF5pEIeIyM34C QeXxr61Al49hA3BFWJP8vJ+bRq/c4Q== =tDOm -----END PGP SIGNATURE----- --0IjcTOaConsRfQgO--