Re: [PATCH 07/22] usb: musb: put transceiver in low power when in idle

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Balbi Felipe (Nokia-D/Helsinki) wrote:
This patch lets musb tells the transceiver when it can go to low
power mode. It saves us around 15mA with RX51 and isp1707.

We need the extra flag in struct musb because (at least) tusb6010
does not play nicely with low power mode so we avoid going into
that state with known broken hw.

Signed-off-by: Felipe Balbi <felipe.balbi@xxxxxxxxx>

snip

diff --git a/drivers/usb/musb/musb_core.h b/drivers/usb/musb/musb_core.h
index 4a43a32..3156293 100644
--- a/drivers/usb/musb/musb_core.h
+++ b/drivers/usb/musb/musb_core.h
@@ -436,6 +436,9 @@ struct musb {
 	unsigned		test_mode:1;
 	unsigned		softconnect:1;
+ /* true if chip can cope with SUSPENDM */
+	unsigned		suspendm:1;
+
 	u8			address;
 	u8			test_mode_nr;
 	u16			ackpend;		/* ep0 */

Doesn't compile without CONFIG_USB_GADGET_MUSB_HDRC.

--
heikki

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

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux