Dirk Brandewie <dirk.j.brandewie@...>
On 02/12/2016 05:52 AM, Andre Guedes wrote:
Hi all,We definitely need to have one answer all drivers agree on.
I had an RFC where the suspend/resume functions move to the device
level and out of the device type specific APIs. This allows the PM
app/subsystem/entity to call the PM functions without needing to
know the type of the device.
I think I had agreement on the RFC but it fell by the wayside as we
were creeping up on the release date. I will get it rebased and
published again. Once we get agreement we can appoint all the
stuckies to update the drivers accordingly.
For these situations, a new error code (DEV_NOT_IMPLEMENTED) seems to beIn the new model the functions would be required to be implemented, the
RFC included a null implementation for drivers to use if they had no
work to do during suspend/resume. Still a topic for discussion but the
null functions can just return success meaning I have done everything
I need to or can do :-).