Skip to content

at91 : pm.h cleanups

Jean-Christophe PLAGNIOL-VILLARD 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
Quoted 14 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.

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.

Quoted 9 lines

It's not clear where you're headed though, I hope that becomes more obvious in the next patches. 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. 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, but AFAICT that won't work because you have to guarantee that all the code between these is in the cache, right?

we may have much simple way move it to sram as done in slow clock

Best Regards,
J.