Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1852153pxb; Wed, 9 Feb 2022 06:00:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJwas8fLst0VbB4yg2ky2ybx/AQuNHhHubCvLZTKP2HCwnpwvGG02lO2ctWFPSu3v0VWv30I X-Received: by 2002:a17:90b:1d84:: with SMTP id pf4mr3550027pjb.106.1644415248746; Wed, 09 Feb 2022 06:00:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644415248; cv=none; d=google.com; s=arc-20160816; b=tN5AEMgRwpVRaInwTfzTEbcKJtwfUIDVe8/HHU/1KTDex4ErDVCs1wNJG1mqpvoqoB 7HtnPpfqONA4Wgj/KJ/NZYzK2z5qiRWRrZdx8m8S4xBevjyB1WlTEBFyqT+6q6VquIv4 ymmdKAVM4b7X/VnS71QF9G9T9/J6HMeIHifBsHPNamEMc0DYsiSaRC+YYFN16jiEi5Ae JqETkp/NzAMxd7b2YpJFXtCmOD4IW9k7+/kzt4xtIRPD4PnyFkuVR9QR5kzS6llLyh2o h72yqDuoO0axSQQ0kRdAlDX7iIX2b4XpzzQZv7tgQ0BHczIzq6elBcwsK1xn0xRR7d8c DVSA== 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 :dkim-signature; bh=SBTnBJKQIWPfpUR/56tNnSFnqOAge6wgqkQjX1F+GWw=; b=M3vatbGTJv7bw8TZA0Ts3278Yq7SxUtgsCpbzz01l/+Q0SdLcNul7v6PQ13iF84bgp RvQNa1gHfs/qrLQUms6JFAdoW6QbdAlHYFG15MI23NKGviL4rPPNIy76xGy4HAzi+57p SAYMj3YgtinwzcN6QcLu0FMbVlTgQ1BzS7bOu1bLQymMTOm1GqBtS8KluBYqyO4yUyks +RvfONiWCMb2uiaban+XdY7Kfgr91UNEch387TZBajXRthhRrTiutfKjkcP4A4Uqar+d vTgFQBe1Sszo/93yXoo8cxtmkI5KEQggxcGy1QU9jtIVt8QUEKZgwg+xdeHFMIiMG4aC n9MA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=CDpH6QDl; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=SuXPnSCi; 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=cerno.tech Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id z4si15118623plk.588.2022.02.09.06.00.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 06:00:48 -0800 (PST) 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=@cerno.tech header.s=fm2 header.b=CDpH6QDl; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=SuXPnSCi; 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=cerno.tech Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D039BE186EEE; Wed, 9 Feb 2022 02:39:05 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229861AbiBIKi2 (ORCPT + 99 others); Wed, 9 Feb 2022 05:38:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229454AbiBIKi0 (ORCPT ); Wed, 9 Feb 2022 05:38:26 -0500 Received: from wnew3-smtp.messagingengine.com (wnew3-smtp.messagingengine.com [64.147.123.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74B81E148637; Wed, 9 Feb 2022 02:25:56 -0800 (PST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailnew.west.internal (Postfix) with ESMTP id B755D2B001F6; Wed, 9 Feb 2022 04:20:39 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Wed, 09 Feb 2022 04:20:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; bh=SBTnBJKQIWPfpUR/56tNnSFnqOAge6wgqkQjX1 F+GWw=; b=CDpH6QDlK6etkYWwEufaBl86rsCLCUXcMo8QxESkub7gK+AFd4yqkb 6kBATCa0xGSUTrnFTWB2DgKWUcn2VOOo1B4/rGhPumCOmI815CwDKgYDmQJkn6eE JCSD1SyPZwknHxOLs5OpP/1Ky7yjerNewNl0+co96gyMNfKVibE/t45IAmiKT6U3 jJOwgU49qEiQ2QIAZZ72+TkTZ1W1b+pfNzutZ0nZeGu3iNguwhF2bfS4izy/8oSj I3V/B9OkThZYwYbZINt+rO9HeerVjk8Aacd5aLACXvceq5/LEaGe24C/Xfu2iIiq Qfd27O+bpPo+bAiwPEsfDEHYAi4cWfUA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=SBTnBJKQIWPfpUR/5 6tNnSFnqOAge6wgqkQjX1F+GWw=; b=SuXPnSCidnnCw7+asKU9JhwD7CJo6XAmf RlC137mUb7s3vSeq/1VqjwOfxEa6wcMhGsRgKkskL75NP9aLUnE3Y8wzuG4w3pMe 4ozpoit7AylY8y1k90WXcD8563bbTh0JzGRWXTVqPWYJcDXg9Uoscs/ZH2OIGMlT W6JRy7mGxBBXVn7nCQ+JFMlyrZDxw1LPbsUynd27XAB6bWQhF9WLIn0AAumScQay xFxRLPiMm9aosDr5c7iqFqitBoP/oLCK/0hwA5DbYR9kWZ0I1p/B3YJ5x+ALo1tI DWoZkQL1FTdE25wc8drszHAEtcclHokxgmWl0Yz09tnej/utT/p3g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrheelgddtudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofgrgihimhgv ucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrghtth gvrhhnpeelkeeghefhuddtleejgfeljeffheffgfeijefhgfeufefhtdevteegheeiheeg udenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrg igihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 9 Feb 2022 04:20:37 -0500 (EST) Date: Wed, 9 Feb 2022 10:20:35 +0100 From: Maxime Ripard To: Paul Kocialkowski Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-clk@vger.kernel.org, linux-staging@lists.linux.dev, Yong Deng , Mauro Carvalho Chehab , Rob Herring , Sakari Ailus , Hans Verkuil , Chen-Yu Tsai , Jernej Skrabec , Greg Kroah-Hartman , Helen Koike , Laurent Pinchart , Thomas Petazzoni Subject: Re: [PATCH v2 19/66] media: sun6i-csi: Grab bus clock instead of passing it to regmap Message-ID: <20220209092035.tz5ctosidpib47fq@houat> References: <20220205185429.2278860-1-paul.kocialkowski@bootlin.com> <20220205185429.2278860-20-paul.kocialkowski@bootlin.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="yjjnfllv4wtw5ufd" Content-Disposition: inline In-Reply-To: <20220205185429.2278860-20-paul.kocialkowski@bootlin.com> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 --yjjnfllv4wtw5ufd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Sat, Feb 05, 2022 at 07:53:42PM +0100, Paul Kocialkowski wrote: > Since the bus clock alone is not enough to get access to the registers, > don't pass it to regmap and manage it instead just like the other > clocks. >=20 > Signed-off-by: Paul Kocialkowski I'm not really sure about this one. Sure, there's more resources involved than the clock to get access to the registers (like reset), but you can't have a functional device without the reset line deasserted. You can however have a functional device without the bus clock enabled, so it just seems much better to let regmap manage it. Unless there's a drawback to it of course, but it should be in your commit log if so. Maxime --yjjnfllv4wtw5ufd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYgOHYwAKCRDj7w1vZxhR xVdlAP9xWWz+r+5yqqSyDREBt4wUIYsOPLYBVd8MDdUu/WQGfgEAkFTtNt3mcKcT DWTcs0AATTN6+sept16oF0pNbheHkA0= =mR// -----END PGP SIGNATURE----- --yjjnfllv4wtw5ufd--