Re: [PATCH] usb: ehci: s5p: Power-off VBUS during suspend.

From: Alan Stern
Date: Tue Jan 29 2013 - 10:22:06 EST


On Tue, 29 Jan 2013, Vivek Gautam wrote:

> This change de-asserts vbus_gpio on suspend and
> re-asserts on resume in order to save power.
> NOTE, this change means no USB charging in suspend
> mode.

Doing this would mean USB devices could not wake up the system. This
would be unacceptable.

However, turning off VBUS power is okay provided:

no root-hub ports are enabled, and

the root hub is not enabled for wakeup.

Under those circumstances there can't be any wakeup-enabled USB devices
on the bus, and the root hub itself would not need to detect new
connections and disconnections.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/