From 02fc7a5a08d9158d8400e1de1848907e2a54f73b Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 24 Aug 2013 14:06:47 -0600 Subject: [PATCH] SAMA5D3x-EK: Fix some backward conditional compilation --- arch/arm/src/sama5/sam_ehci.c | 4 +++- arch/arm/src/sama5/sam_ohci.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/sama5/sam_ehci.c b/arch/arm/src/sama5/sam_ehci.c index e42d2c7c6a..6f25e3cf6f 100755 --- a/arch/arm/src/sama5/sam_ehci.c +++ b/arch/arm/src/sama5/sam_ehci.c @@ -3872,7 +3872,9 @@ FAR struct usbhost_connection_s *sam_ehci_initialize(int controller) * * REVISIT: * - Should be done elsewhere in OTG mode. - * - Can we postpone enabling VBUS to save power? + * - Can we postpone enabling VBUS to save power? I think it can be + * done in sam_enumerate() and can probably be disabled when the + * port is disconnected. * - Some EHCI implementations require setting the power bit in the * PORTSC register to enable power. */ diff --git a/arch/arm/src/sama5/sam_ohci.c b/arch/arm/src/sama5/sam_ohci.c index a02d7a474b..b8926277d1 100644 --- a/arch/arm/src/sama5/sam_ohci.c +++ b/arch/arm/src/sama5/sam_ohci.c @@ -3207,7 +3207,9 @@ FAR struct usbhost_connection_s *sam_ohci_initialize(int controller) * * REVISIT: * - Should be done elsewhere in OTG mode. - * - Can we postpone enabling VBUS to save power? + * - Can we postpone enabling VBUS to save power? I think it can be + * done in sam_enumerate() and can probably be disabled when the + * port is disconnected. */ #ifdef CONFIG_SAMA5_UHPHS_RHPORT1