[...]
That would be nice. Although, to do that you would have to allow someHow the new kernel compatibles old dts? If we do not need toWe had an agreement that keep mmc's pwrseq framework unchanging.Why 2 separate approach for same problem ?
Unless Ulf and rob both agree to change.
And I see this as possible duplication of code/functionality :)
consider this problem, the mmc can try to use power sequence library
too in future.
I think we should attempt to get both MMC and USB power seq
come on one agreement, so that it can be reused.
DT bindings to be deprecated in the new generic power seq bindings, as
otherwise you would break existing DTBs.
I guess that is what Rob was objecting to!?
MMC Power Seq :We recently converted MMC to this. It's has a clear benefit as you can
It is based on platform_device/platform_driver approach,
rely on the behaviour from the driver core and PM core. So, it simply
avoids duplication of code.
USB Power seq :As stated, using a platform device + driver would simplify this, as
We are trying to propose library approach, with compatible string match.
We should try to have one approach.
Ok, I will have API for suspend/resume. You can implement it at your ownNope...- Lets also add suspend/resume callback to struct pwrseqWhy suspend/resume can't do at related driver's suspend/resume API?
The pwrseq library would have taken ownership of resources, so
related driver cannot suspend the device. Again it is architecture
specific, but we should have provision to handle this.
The system I am dealing with today, does need suspend/resume
callback. To be precise, suspend is close to off state for some devices
or
they could enter standby or different low power state, but to do that,
we need same resource as used for ON/OFF functionality.
library or generic one.
you wouldn't need an API but only a driver. I guess.