Skip to content

at91 : pm.h cleanups

Arnd Bergmann linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 of 7 patches 0 repliesNew

2 of 7 patches are in this archive. The cover letter announces 7.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
5/7at91 : fix dirty hack for the selfrefresh function+0 -06 replies
5/7at91 : fix dirty hack for the selfrefresh function+0 -01 reply

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 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.

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?

Arnd