Skip to content

at91 : pm.h cleanups

Daniel Lezcano linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 7 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 7 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] at91 : pm.h cleanups

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 8 lines · Arnd Bergmann
Quoted 6 lines · Daniel Lezcano

This patchset is the first series to cleanup some code around pm.h, pm.c and cpuidle. The next series will bring more cleanups and finally the third series will change the different functions into ops where we can export the structure definition in order to encapsulate the code and move the at91's cpuidle driver to the drivers/cpuidle directory.

Quoted 5 lines

Hi Daniel,

These all look like useful cleanups. You don't really have to split them up into so small units, but it doesn't hurt if you do. Patch 5 seems to actually fix a bug, but probably a harmless one.

Thanks Arnd for reviewing the patchset.

Quoted 2 lines

It's not clear where you're headed though, I hope that becomes more obvious in the next patches.

Yes, I think that will become more obvious in the next patches. The objective is to cleanup the code first, unify the api and change that to some ops we will register at boot time.

Also, I will address Russell's comment about the standby function to be defined.

Quoted 4 lines

The tricky bit that will have to be done is to turn
all the #ifdef checks into runtime here. You have moved the #include for the memory controller into a new header, but that is not actually progress on this larger problem.

The next patches will include the header from the .c file. IMHO, including a single file in a .c is more clear than a lot of #ifdef.

Quoted 3 lines

It would be nice to move the sdram_selfrefresh_enable/disable functions into a .c file that uses cpu_is_at91...() to do runtime detection.

These patches are about separating the SoC specific code from the cpuidle driver code in order to move this one to the drivers directory.

AFAIU, we agreed the drivers directory is the right place for the cpuidle drivers. There is a lot of cleanup to be done on the different SoC/arch and I would like to focus on that rather than fixing different problems at the same time. By the way achieving this goal will benefit to the single kernel image goal.

The next patchset will move these functions to the .c file and define an ops structure which will be included from the cpuidle drivers.

I am not sure how to do runtime detection but as soon as this is defined with ops, it will be trivial to register the right ops at boot time and prevent unneeded cpu_is_at91 checks in the idle functions.

Thanks
-- Daniel

- --
<http://www.linaro.org/> Linaro.org ? Open source software for ARM SoCs

Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPDbjoAAoJEAKBbMCpUGYATkQIAL6vVMgYQjeMcsXxD1VC+Xem 5e+xQEjGcItj0rbj5LAgAVrTxLAw9p+33xx5vjwOEa65mVm10bkkb3put9zKkKVz QjilwywAzQ8LMsapJ5mIIQEOfXWOC41+cNbyKr150ydplSjuXIfgs255nCEsojtc 8kNGsgKjh7+vxE/3LCwa+kMz39rVHMxgle2JB+ThLZpv+c/wz/JXhZwOfjgH5ERL K9neVmSS5N/LIzVh1IcXk0UxF4NDnSnoSadKWpxvxtnI1kb3oDiHXersq3BlIa8x 7wgohka5NlhzEmLeWzZ49DlOfZ5zyHIgzKeU8sY13ccZvxHDQuzqrv49AaM2PEM= =4six
-----END PGP SIGNATURE-----