On Wed, Oct 26, 2011 at 8:35 AM, Dmitry Tarnyagin <abi.dmitryt@xxxxxxxxx> wrote: > 3. Driver can call platform callback and request platform code to > enable the clock. > For my understanding clocks and power are platform-specific. Beats me what is best for your needs, but in light of the above it seems #3 fits the bill? This is the way other wireless drivers have done it -- e.g. wl12xx has a set_power() callback and the platform device uses it to disable the clock when the device is in low power mode. -- Bob Copeland %% www.bobcopeland.com -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html