Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2087142imj; Fri, 8 Feb 2019 12:19:37 -0800 (PST) X-Google-Smtp-Source: AHgI3IYDSOcUvuwIDP39heSUd2r46gKShkwASJ1KWVDbz2X8NSoE/aEk21FAWh8nV/bChstmQET0 X-Received: by 2002:a62:770f:: with SMTP id s15mr2173414pfc.84.1549657177336; Fri, 08 Feb 2019 12:19:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549657177; cv=none; d=google.com; s=arc-20160816; b=I627wk9jjIEzEum5VzFpnEGdQN859tq5Si2aTo75hb5zZYoNKUOS6wWIl0ag7xLlAZ 8F0JM0Tqx5t/0t/cNTwuJB60OgEtfi4IDdp2IAr4Y7S7vaROlg9mmpd+SZCmXh3KGe+H T9GTrXA2dZV+C0ziprg8+dsXO7YD+bFLQuJkv5ZJ/aMxjpoR/cGrJyz0ox14YwMjC27J R+tHSSWVqkXDtqObP2tKcRvXNa7oHBmeUXdZBS+kOwApDxFRGJHf49aapldHGY5/1M6x 02UYYp150GRz8dRNLGjDfdeexK2pFTCFeaUoq1W2tv14WQOov7tE9AH0xeqSb3XO/naM rXHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=hRignGac0jZKh8DxY6rHmCYlMds/bWsi8SS/m6zIMgQ=; b=ektrgBDgYI6i1sMAuHcRYwrAMqcNmdXyNCiWydOwJn/mw+jplKsaH45J7fEW3dUyjS +VaS4jERD3smyxGefLEaqwuh7kC18N2+WBc2BiLrGepJ4TKBTe2ojoKAsO5eKJ4Wa3eI TA5pIM7T38iiUEtnfxOkackI27+V6N0s8NF+cDAniGPRt+dKENbrl//cQbW7R7odOezV PwaOln4vvnfTnVG9+101ke5dcUPsEiWuqLg0M1Fjs6qcqCGzurh0Q0MICdKOk6135EO7 K5utBXaOj9jfOKRQDlvmW+OklhEIVq2nSIT1qNhsW830y8yqlaZm+pLECiSnS3OXIwVq gmuQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d1si2802964pgg.301.2019.02.08.12.19.19; Fri, 08 Feb 2019 12:19:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727422AbfBHUTP (ORCPT + 99 others); Fri, 8 Feb 2019 15:19:15 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:35103 "EHLO relay4-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727116AbfBHUTO (ORCPT ); Fri, 8 Feb 2019 15:19:14 -0500 X-Originating-IP: 90.89.68.76 Received: from localhost (lfbn-1-10718-76.w90-89.abo.wanadoo.fr [90.89.68.76]) (Authenticated sender: maxime.ripard@bootlin.com) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 6C32CE0003; Fri, 8 Feb 2019 20:19:08 +0000 (UTC) Date: Fri, 8 Feb 2019 21:19:08 +0100 From: Maxime Ripard To: Ezequiel Garcia Cc: Hans Verkuil , Sakari Ailus , Mauro Carvalho Chehab , Thomas Petazzoni , Laurent Pinchart , linux-media , Andrzej Hajda , Chen-Yu Tsai , Linux Kernel Mailing List , linux-arm-kernel , devicetree@vger.kernel.org, Mark Rutland , Rob Herring , Frank Rowand Subject: Re: [PATCH v2 3/5] media: sunxi: Add A10 CSI driver Message-ID: <20190208201908.t5easf5uurvax7re@flea> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="hsnrvmpmpg5r7wb2" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --hsnrvmpmpg5r7wb2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Ezequiel, On Wed, Feb 06, 2019 at 07:59:43PM -0300, Ezequiel Garcia wrote: > > + csi->isp_clk =3D devm_clk_get(&pdev->dev, "isp"); > > + if (IS_ERR(csi->isp_clk)) { > > + dev_err(&pdev->dev, "Couldn't get our ISP clock\n"); > > + return PTR_ERR(csi->isp_clk); > > + } > > + > > + csi->mod_clk =3D devm_clk_get(&pdev->dev, "mod"); > > + if (IS_ERR(csi->mod_clk)) { > > + dev_err(&pdev->dev, "Couldn't get our mod clock\n"); > > + return PTR_ERR(csi->mod_clk); > > + } > > + > > + csi->ram_clk =3D devm_clk_get(&pdev->dev, "ram"); > > + if (IS_ERR(csi->ram_clk)) { > > + dev_err(&pdev->dev, "Couldn't get our ram clock\n"); > > + return PTR_ERR(csi->ram_clk); > > + } > > + >=20 > Minor comment: perhaps you can take advantage > of the clock bulk API and simplify the clock management. Our clocks have usually very different usages for each IP (the RAM controls the DMA side of the IP, the mod one controls the "logic" part of it, the bus one the register, etc.) so they needed to be handled quite differently. I'd rather stick with the current API. Thanks! Maxime --=20 Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --hsnrvmpmpg5r7wb2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXF3kPAAKCRDj7w1vZxhR xX7rAQDZ8SvZeMCDfXgbukEy4JMwmoZozb1nisAxIhaBIKTsAQD6A3Cj6WVtN5dP uR0AiYb1Sg3joHZ9DfaysXHNhYUXvA8= =uUw3 -----END PGP SIGNATURE----- --hsnrvmpmpg5r7wb2--