Re: [PATCH 4/6] USB: musb: blackfin: pm: make it work

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

 



On 23.10.2010 14:11, Mike Frysinger wrote:

From: Bob Liu<lliubbo@xxxxxxxxx>

Split the USB MMR init steps out into a helper func that both the platform
init and the resume code may call.

Then while suspending, the gpio_vrsel will change from high to low which
will generate a wakeup event and resume the system immediately, so we need
to manually drive it low before we sleep.

Signed-off-by: Bob Liu<lliubbo@xxxxxxxxx>
Signed-off-by: Mike Frysinger<vapier@xxxxxxxxxx>
[...]

diff --git a/drivers/usb/musb/musb_core.h b/drivers/usb/musb/musb_core.h
index 91d6779..f19eaac 100644
--- a/drivers/usb/musb/musb_core.h
+++ b/drivers/usb/musb/musb_core.h
@@ -485,8 +485,9 @@ struct musb_context_registers {
  	struct musb_csr_regs index_regs[MUSB_C_NUM_EPS];
  };

-#if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP3) || \
-    defined(CONFIG_ARCH_OMAP4)
+#if defined(CONFIG_PM) && \

Look better -- this whole fragment of header is already enclosed into #ifdef CONFIG_PM.

+    (defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP3) || \
+     defined(CONFIG_ARCH_OMAP4) || defined(CONFIG_BLACKFIN))
  extern void musb_platform_save_context(struct musb *musb,
  		struct musb_context_registers *musb_context);
  extern void musb_platform_restore_context(struct musb *musb,

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