Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8415079ybi; Thu, 6 Jun 2019 11:57:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqxlxbBo8L8wbC+SHrcpb0p8nVY3YazXipn2uSQILn7+cuqvZLZodEIniyPPhEx+Kxj5KorC X-Received: by 2002:a65:63c8:: with SMTP id n8mr42226pgv.96.1559847428675; Thu, 06 Jun 2019 11:57:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559847428; cv=none; d=google.com; s=arc-20160816; b=egMLWqr+Ki4dqhGLmaUuFjefwTKo95Y2y6eihktH4yj8cQ+tqZd4jrcudcUL4qeKOT pO7kj+k1t7cwKZJ/y4bMDv4xwwj8n9sBm0QlBmynNHw7knjltIkMxkpLblK68Ulv6F3D jP+uCyjuR8ae8n1KKfbWSFrylKf9Tumbj4zdV97ryJPMfQiHeCv1Vnc1/hMvsvz9oCTn EWYx9idnP4QjuhQxo1EzLy6TBICN0j53odnboeWDEjnYYu1owrPA9ubRs2gp9/KD3Kie TuzpEqa+a3FrQVd5slkn6RoCOO9VMvrmsLjEP9cI+MDpZNvJo9EpOfujtHhVx4QCOUJk YhIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id; bh=1Q6Bi+qukuWhL5ijMvFo2JAnRgf8KhhLe+lO+NQiKPU=; b=flvRVuRErPECJC6c9/Pu6sHqQApsCwRgE0yqIPmw3CUgiK5c+7gFTegcJBitCGzNK7 TqEtQaPVmOQ6aAS3i+KZ/clvW2EGz20ABLV/uaPmc+xVCGItTguxF+pVPoOlMZQSKlG+ zRlr/S40AfXuMs3bPh6kVTzGEak72AnD27v4DLJnoV7WfcZ0UY3sHT18jtvTWssB1LOM Vo8oPND062LkUHXnCFmR3PTpKHFStloBv8NJ05hg4SNTl7OrsGbpRui0BmxDCZMJ17dS y1X6hfawCJvoCHEukPdKpgNsegJk86Zf248WE5+9mbYGvvak3Gnl/Vxg42464fGkCj62 Qz8w== 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 o3si2308014plk.167.2019.06.06.11.56.52; Thu, 06 Jun 2019 11:57:08 -0700 (PDT) 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 S1730126AbfFFRWl (ORCPT + 99 others); Thu, 6 Jun 2019 13:22:41 -0400 Received: from mx2.suse.de ([195.135.220.15]:60608 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726092AbfFFRWl (ORCPT ); Thu, 6 Jun 2019 13:22:41 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 1878AABD0; Thu, 6 Jun 2019 17:22:40 +0000 (UTC) Message-ID: Subject: Re: [PATCH v2 4/7] cpufreq: add driver for Raspbery Pi From: Nicolas Saenz Julienne To: Stephen Boyd , "Rafael J. Wysocki" , Viresh Kumar , stefan.wahren@i2se.com Cc: linux-arm-kernel@lists.infradead.org, f.fainelli@gmail.com, ptesarik@suse.com, mturquette@baylibre.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, eric@anholt.net, bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, linux-clk@vger.kernel.org, mbrugger@suse.de, ssuloev@orpaltech.com Date: Thu, 06 Jun 2019 19:22:16 +0200 In-Reply-To: <20190606170949.4A46720652@mail.kernel.org> References: <20190606142255.29454-1-nsaenzjulienne@suse.de> <20190606142255.29454-5-nsaenzjulienne@suse.de> <20190606170949.4A46720652@mail.kernel.org> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-Pw8rcdAQwigEg8aqt+O7" User-Agent: Evolution 3.32.2 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-Pw8rcdAQwigEg8aqt+O7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Stephen, Thanks for the review. On Thu, 2019-06-06 at 10:09 -0700, Stephen Boyd wrote: > Quoting Nicolas Saenz Julienne (2019-06-06 07:22:56) > > diff --git a/drivers/cpufreq/raspberrypi-cpufreq.c > > b/drivers/cpufreq/raspberrypi-cpufreq.c > > new file mode 100644 > > index 000000000000..99b59d5a50aa > > --- /dev/null > > +++ b/drivers/cpufreq/raspberrypi-cpufreq.c > [...] > > + > > +/* > > + * Since the driver depends on clk-raspberrypi, which may return > > EPROBE_DEFER, > > + * all the activity is performed in the probe, which may be defered as > > well. > > + */ > > +static struct platform_driver raspberrypi_cpufreq_driver =3D { > > + .driver =3D { > > + .name =3D "raspberrypi-cpufreq", > > + }, > > + .probe =3D raspberrypi_cpufreq_probe, > > + .remove =3D raspberrypi_cpufreq_remove, > > +}; > > +module_platform_driver(raspberrypi_cpufreq_driver); >=20 > How does this driver probe? Do you have a node in DT named > raspberrypi-cpufreq that matches and probes this? I would think this > would follow the drivers/cpufreq/cpufreq-dt-platdev.c design where it's > an initcall that probes the board compatible string. > > Or, if it depends on clk-raspberrypi probing, maybe it could create the > platform device in that drivers probe function. Well you just reviewed that patch :) > > + > > +MODULE_AUTHOR("Nicolas Saenz Julienne > +MODULE_DESCRIPTION("Raspberry Pi cpufreq driver"); > > +MODULE_LICENSE("GPL"); > > +MODULE_ALIAS("platform:raspberrypi-cpufreq"); >=20 > I don't think the module alias is needed anymore. That's surprising. I remember the driver not being loaded by udev without i= t. Regards, Nicolas --=-Pw8rcdAQwigEg8aqt+O7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEErOkkGDHCg2EbPcGjlfZmHno8x/4FAlz5S8gACgkQlfZmHno8 x/6ReQgAmTObVFlrCJjS+HsdqcP5Er91BEOTv2XnVOfYkRC/w/vFXhkOZIlokLgq kj+GwzHmUGEGzlwyGsb1cJCnOffS7QI5Y1P2pfqqF1z0+kCfNiS8RMVJh6lvazsr wxTIqZBjf6Qi6Hckl03htdGmFkHCP4ftoHTWP6SVjWRfm9tSzbfWSWczNMwsU2g0 ICXOdZ1BzUiDU69Tq8yWuKFavbvp7JmHKTzGI5sV7hyiFikQZDwbivbUN8dERESJ aWlDO32Twc2v+W8z9ZJaWtfCcOtFA/Tkca2sZ+HHt8cxe67dPzcQIFC/BoPfTw/h TVzSQVZjVbG91S6E0W+ElFkMVnI8BQ== =zgC8 -----END PGP SIGNATURE----- --=-Pw8rcdAQwigEg8aqt+O7--