[PATCH] USB: host: ehci_atmel: Add suspend/resume support

Sylvain Rochet sylvain.rochet at finsecur.com
Sat Jan 17 02:43:00 PST 2015


Hi Boris,


On Sat, Jan 17, 2015 at 10:36:09AM +0100, Boris Brezillon wrote:
> On Sat, 17 Jan 2015 02:34:42 +0100 Alexandre Belloni <alexandre.belloni at free-electrons.com> wrote:
> > 
> > We should definitely find a way to get rid of
> > at91_suspend_entering_slow_clock() at some point in time.
> 
> Can't we just disable clocks without testing for target_state ==
> PM_SUSPEND_MEM (which is exactly what at91_suspend_entering_slow_clock
> does [1]) when entering suspend ?
> I mean, IMHO other kind of suspend should still benefit from the power
> save induced by this PLL deactivation.

I agree, but it depends on what we mean with standby vs mem, there 
should be a difference between the two sleep mode.

This behavior follows what the Atmel OHCI driver is currently doing.


> Is there such a big penalty when resuming the device if the PLL and
> peripheral clocks are disabled ?

There is a penalty, starting up a PLL takes about 500 µs, however I 
can't decide if this is a small or a big penalty.


Sylvain



More information about the linux-arm-kernel mailing list