Re: [NOT FOR MERGING/PATCH 2/2] usb: musb: put transceiver in low power when in idle

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

 



Hello.

Felipe Balbi 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.

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

 drivers/usb/musb/blackfin.c  |    2 ++
 drivers/usb/musb/davinci.c   |    3 +++
 drivers/usb/musb/musb_core.c |   15 +++++++++------
 3 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/drivers/usb/musb/davinci.c b/drivers/usb/musb/davinci.c
index 6691381..0e47d60 100644
--- a/drivers/usb/musb/davinci.c
+++ b/drivers/usb/musb/davinci.c
@@ -387,6 +387,8 @@ int __init musb_platform_init(struct musb *musb)
 	if (!musb->xceiv)
 		return -ENODEV;
+ musb->xceiv->can_suspendm = true;
+

Note that on DaVincis SUSPENDM behaviour seems to be overridden by setting USBPHY_PHYPLLON bit...

 	musb->mregs += DAVINCI_BASE_OFFSET;
clk_enable(musb->clock);
@@ -442,6 +444,7 @@ int __init musb_platform_init(struct musb *musb)
 		musb_readb(tibase, DAVINCI_USB_CTRL_REG));
musb->isr = davinci_interrupt;
+

  Unrelated change.

WBR, Sergei
--
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