On Wed, Oct 27, 2010 at 8:02 PM, Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> wrote: >> 2. Ideally host-driver driver should not tell the core to shut down >> the upper layers, instead the core should decide when to >> "disabled clock or cut the power". > > How will the core know ? > > I actually think you are simply perpetuating the mess in the existing MMC > driver where everything is driven by a core which as a result is a twisty > maze of exceptions and flags to say "except for this" "except for that". > > The core MMC code only knows when the *core* parts are no longer > requiring power. It shouldn't know about anything deeper and if you are > using the runtime PM layer the runtime PM refcounting can do all your > work. Agree Alan, Its better adapting the driver to Runtime PM instead fixing some thing in the core. Regards, Kishore > > Alan > -- > To unsubscribe from this list: send the line "unsubscribe linux-mmc" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html