tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pmf_device_register() vs pmf_device_register1()



juan%xtrarom.org@localhost said:
> I suppose that pmf_device_register1() is a temporary solution and will
> be made the default solution in the future? 

It is temporary.

I'd prefer to connect the suspend/resume/shutdown function
pointers to "struct cfattach", directly or indirectly.
This would save the calls to register these, and one would't
have to take care to deregister at detach time.
Also, with some creative use of cpp, one could more easily
deselect unneeded features, for embedded platforms or so.

But first the APIs should stabilize - changes to
CFATTACH_DECL affect the whole tree.
(I expect API refinements to support eg S1 sleep levels or
device wakeup.)

best regards
Matthias




-------------------------------------------------------------------
-------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich

Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDir'in Baerbel Brumme-Bothe
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr. Harald Bolt,
Dr. Sebastian M. Schmidt
-------------------------------------------------------------------
-------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index