On Tue, 7 Dec 2010, Philip Rakity wrote:

> 
> On Dec 5, 2010, at 6:15 AM, Ohad Ben-Cohen wrote:
> 
> > That would obviously work but as you and Nicolas mentioned it's an
> > overkill: we don't really need random users to plug into this hook,
> > and using notifiers will just make the code less readable and harder
> > to debug, so it's better to try to find a solution that fits.
> 
> Would a solution toggling the  gpio line for power/reset work when doing a 
> RESET_ALL or
> when power moves to off ?  This code could then be in the driver specific 
> section where
> this might make more sense.

The problem is to find a good enough abstraction to keep the driver 
generic without cluttering it with platform specific implementation 
details such as which GPIO (if at all) should be flipped to reset the 
card.  Hence the idea to (ab)use the already existing regulator 
framework which can accommodate and abstract such details away quite 
nicely.


Nicolas
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to