Grant Likely <grant.likely@secretlab.ca> writes:
[...]
Heh, now I feel like we're going around in circles. Remember, I never
wanted to create add a new bus_type. Someone else [ahem] suggested
doing the abstraction at the bus_type level. ;)
Yes, I'm working on the devres approach to that now, as is Magnus for
the sh-mobile version (proposed for .36-rc1[1])
IMHO, simply overriding the few dev_pm_ops methods was the cleanest and
simplest.
Since we seem to be in agreement now that the a new bus may not the
right abstraction for this (since we want it to be completely
transparent to the drivers), I'll go back to the original design. No new
bus types, keep the platform_bus as is, but simply override the few
dev_pm_ops methods I care about. This is what is done on SH,
SH-Mobile[1] and my original version for OMAP that started this
conversation.
Yes, the weak-symbol method of overriding is not scalable, but that's a
separate issue from whether or not to create a new bus. I have a
proposed fix for the weak which I'll post shortly.
Kevin
[1] http://lists.infradead.org/pipermail/linux-arm-kernel/2010-August/022411.html
--