From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eduardo Valentin Subject: Re: [RFC PATCH 01/14] cpufreq: cpufreq-cpu0: add dt node parsing for 'cooling-zones' Date: Mon, 26 Aug 2013 08:13:26 -0400 Message-ID: <521B4666.3050509@ti.com> References: <1377299755-5134-1-git-send-email-eduardo.valentin@ti.com> <1377299755-5134-2-git-send-email-eduardo.valentin@ti.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ePhlHHvf9knPPA6FoBMTfiBehuXBtURD7" Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-ID: To: Viresh Kumar Cc: Eduardo Valentin , Stephen Warren , Pawel Moll , Mark Rutland , Ian Campbell , Grant Likely , Rob Herring , Guenter Roeck , Zhang Rui , wni@nvidia.com, "R, Durgadoss" , "linux-pm@vger.kernel.org" , "devicetree@vger.kernel.org" , lm-sensors@lm-sensors.org, Linux Kernel Mailing List , "Rafael J. Wysocki" , "cpufreq@vger.kernel.org" , devicetree-discuss --ePhlHHvf9knPPA6FoBMTfiBehuXBtURD7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 26-08-2013 00:42, Viresh Kumar wrote: > On 24 August 2013 04:45, Eduardo Valentin wro= te: >> diff --git a/drivers/cpufreq/cpufreq-cpu0.c b/drivers/cpufreq/cpufreq-= cpu0.c >> index ad1fde2..ede6487 100644 >> --- a/drivers/cpufreq/cpufreq-cpu0.c >> +++ b/drivers/cpufreq/cpufreq-cpu0.c >> @@ -20,6 +20,9 @@ >> #include >> #include >> #include >> +#include >> +#include >> +#include >=20 > In alphabetical order please.. >=20 OK. >> @@ -268,6 +272,13 @@ static int cpu0_cpufreq_probe(struct platform_dev= ice *pdev) >> goto out_free_table; >> } >> >> + /* >> + * For now, just loading the cooling device; >> + * thermal DT code takes care of matching them. >> + */ >> + if (of_find_property(np, "cooling-zones", NULL)) >> + cdev =3D cpufreq_cooling_register(cpu_present_mask); >=20 > Should we check if it passed or failed? And if failed Atleast flag an > appropriate message? >=20 Yes, we need error checking code. I will add in next version. Thanks Kuma= r. >=20 --=20 You have got to be excited about what you are doing. (L. Lamport) Eduardo Valentin --ePhlHHvf9knPPA6FoBMTfiBehuXBtURD7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iF4EAREIAAYFAlIbRm0ACgkQCXcVR3XQvP2ItQD9FMwdPTChGTJS8wyntuj0OUYy w1BiN+rFVWkcVLtDTGEA/3Tp9oX3NNQ8QvOACJmCKPSxfLtd7xgT/kGOOJzWdjbf =YWgD -----END PGP SIGNATURE----- --ePhlHHvf9knPPA6FoBMTfiBehuXBtURD7--