From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukasz Majewski Subject: Re: [PATCH v6 08/18] cpufreq: exynos: Use device tree to determine if cpufreq cooling should be registered Date: Sun, 25 Jan 2015 22:55:52 +0100 Message-ID: <20150125225552.5827ed0d@jawa> References: <1421666462-7606-1-git-send-email-l.majewski@samsung.com> <1422015260-14225-1-git-send-email-l.majewski@samsung.com> <20150123145744.3dc47a47@amdc2363> <20150125164559.GA29600@developer.hsd1.ca.comcast.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/BLMCBp4T52d0YWVCzQYFxoJ"; protocol="application/pgp-signature" Return-path: In-Reply-To: <20150125164559.GA29600@developer.hsd1.ca.comcast.net> Sender: linux-samsung-soc-owner@vger.kernel.org To: Eduardo Valentin Cc: Viresh Kumar , Lukasz Majewski , Zhang Rui , Linux PM list , "linux-samsung-soc@vger.kernel.org" , Bartlomiej Zolnierkiewicz , Kukjin Kim , Amit Daniel Kachhap , Abhilash Kesavan , Abhilash Kesavan , Kukjin Kim , Chanwoo Choi List-Id: linux-pm@vger.kernel.org --Sig_/BLMCBp4T52d0YWVCzQYFxoJ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sun, 25 Jan 2015 12:46:21 -0400 Eduardo Valentin wrote: > On Sun, Jan 25, 2015 at 07:31:14PM +0530, Viresh Kumar wrote: > > On 23 January 2015 at 19:27, Lukasz Majewski > > wrote: > > > Please pay a note about following problem: > > > > > > Previously we got: cpu0: cpu@0 for all Exynos devices. > > > > > > Now, however, cpu numbering has changed (due to GIC rework). > > > For example: > > > > > > Exynos4412: > > > cpus { > > > cpu0: cpu@A00 { > > > ... > > > #cooling-cells =3D <2>; /* min followed by > > > max */ }; > > > > > > cpu@A01 { > > > }; > > > > > > cpu@A02 { > > > }; > > > > > > cpu@A03 { > > > }; > > > } > > > > > > Exynos 4210: > > > cpus { > > > cpu0: cpu@900 { > > > #cooling-cells =3D <2>; /* min followed by > > > max */ }; > > > > > > cpu@901 { > > > }; > > > }; > > > > > > Exynos 5250: > > > cpus { > > > cpu0: cpu@0 { > > > #cooling-cells =3D <2>; /* min followed by > > > max */ }; > > > > > > cpu@1 { > > > }; > > > }; > > > > > > > > > As you can see different cpu@XXY nodes we have and simply calling > > > cpu@0 won't work. > >=20 > > I wasn't asked you to get the cpu0 node from dt but this: > >=20 > > cpu_dev =3D get_cpu_dev(0); > > np =3D of_node_get(cpu_dev->of_node); > >=20 > > Wouldn't this work? You only need to guarantee that the > > cooling-cells is added onto the boot CPUs node. >=20 > Lukasz, >=20 > I agree with Viresh here, you can simplify your code. >=20 > I, somehow, missed this conversation and already applied v6 of this > patch in my -fixes branch. Can you please fix this by sending a > differential patch on top of this one applying Viresh's commit? No problem, I will check this in my office tomorrow. Thanks. >=20 > Viresh, my bad, I missed your comments. >=20 > Thanks >=20 >=20 > Eduardo=20 --Sig_/BLMCBp4T52d0YWVCzQYFxoJ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlTFZm4ACgkQf9/hG2YwgjHh7gCeJ/k4hHuV5x11WlJJ5rCy3MrM 2oIAnigTgRTMM68x5nPcTKpTHph4lcdz =/qnQ -----END PGP SIGNATURE----- --Sig_/BLMCBp4T52d0YWVCzQYFxoJ--