* [RFC/PATCH 1/2] usb_otg: compile fix
@ 2010-01-08 1:03 Francisco Alecrim
[not found] ` <1262912592-7817-1-git-send-email-alecrim-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-01-08 4:15 ` Olof Johansson
0 siblings, 2 replies; 6+ messages in thread
From: Francisco Alecrim @ 2010-01-08 1:03 UTC (permalink / raw)
To: linux-omap, linux-usb; +Cc: Francisco Alecrim
From: Francisco Alecrim <francisco.alecrim@openbossa.org>
include/linux/usb.h: In function 'usb_mark_last_busy':
include/linux/usb.h:561: error: 'struct usb_device' has no member named
'last_busy'
Option USB_OTG selects USB_SUSPEND but doesn't select PM(required by
USB_SUSPEND) causing this compile error. Putting USB_SUSPEND as
USB_OTG depend ensure that PM is selected.
Signed-off-by: Francisco Alecrim <francisco.alecrim@openbossa.org>
---
drivers/usb/core/Kconfig | 1 -
drivers/usb/gadget/Kconfig | 2 +-
2 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/core/Kconfig b/drivers/usb/core/Kconfig
index ad92594..4c7d6e8 100644
--- a/drivers/usb/core/Kconfig
+++ b/drivers/usb/core/Kconfig
@@ -109,7 +109,6 @@ config USB_SUSPEND
config USB_OTG
bool
depends on USB && EXPERIMENTAL
- select USB_SUSPEND
default n
diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig
index ee41120..af819fe 100644
--- a/drivers/usb/gadget/Kconfig
+++ b/drivers/usb/gadget/Kconfig
@@ -211,7 +211,7 @@ config USB_OMAP
config USB_OTG
boolean "OTG Support"
- depends on USB_GADGET_OMAP && ARCH_OMAP_OTG && USB_OHCI_HCD
+ depends on USB_GADGET_OMAP && ARCH_OMAP_OTG && USB_OHCI_HCD && USB_SUSPEND
help
The most notable feature of USB OTG is support for a
"Dual-Role" device, which can act as either a device
--
1.6.3.3
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [RFC/PATCH 2/2] fix compile for tahvo-usb.c
[not found] ` <1262912592-7817-1-git-send-email-alecrim-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2010-01-08 1:03 ` Francisco Alecrim
2010-01-11 23:33 ` [APPLIED] " Tony Lindgren
2010-01-08 5:43 ` [RFC/PATCH 1/2] usb_otg: compile fix Felipe Balbi
1 sibling, 1 reply; 6+ messages in thread
From: Francisco Alecrim @ 2010-01-08 1:03 UTC (permalink / raw)
To: linux-omap-u79uwXL29TY76Z2rM5mHXA,
linux-usb-u79uwXL29TY76Z2rM5mHXA
Cc: Francisco Alecrim
From: Francisco Alecrim <francisco.alecrim-430g2QfJUUCGglJvpFV4uA@public.gmane.org>
drivers/cbus/tahvo-usb.c:138: undefined reference to 'usb_bus_start_enum'
usb_bus_start_enum only exported if USB_OTG enabled
Signed-off-by: Francisco Alecrim <francisco.alecrim-430g2QfJUUCGglJvpFV4uA@public.gmane.org>
---
drivers/cbus/tahvo-usb.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/cbus/tahvo-usb.c b/drivers/cbus/tahvo-usb.c
index 9f8bbcc..762671a 100644
--- a/drivers/cbus/tahvo-usb.c
+++ b/drivers/cbus/tahvo-usb.c
@@ -132,12 +132,14 @@ static irqreturn_t omap_otg_irq(int irq, void *arg)
} else if (otg_irq & A_VBUS_ERR) {
omap_writew(A_VBUS_ERR, OTG_IRQ_SRC);
} else if (otg_irq & DRIVER_SWITCH) {
+#ifdef CONFIG_USB_OTG
if ((!(omap_readl(OTG_CTRL) & OTG_DRIVER_SEL)) &&
tu->otg.host && tu->otg.state == OTG_STATE_A_HOST) {
/* role is host */
usb_bus_start_enum(tu->otg.host,
tu->otg.host->otg_port);
}
+#endif
omap_writew(DRIVER_SWITCH, OTG_IRQ_SRC);
} else
return IRQ_NONE;
--
1.6.3.3
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [RFC/PATCH 1/2] usb_otg: compile fix
2010-01-08 1:03 [RFC/PATCH 1/2] usb_otg: compile fix Francisco Alecrim
[not found] ` <1262912592-7817-1-git-send-email-alecrim-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2010-01-08 4:15 ` Olof Johansson
1 sibling, 0 replies; 6+ messages in thread
From: Olof Johansson @ 2010-01-08 4:15 UTC (permalink / raw)
To: Francisco Alecrim; +Cc: linux-omap, linux-usb, Francisco Alecrim
On Thu, Jan 07, 2010 at 09:03:11PM -0400, Francisco Alecrim wrote:
> From: Francisco Alecrim <francisco.alecrim@openbossa.org>
>
> include/linux/usb.h: In function 'usb_mark_last_busy':
> include/linux/usb.h:561: error: 'struct usb_device' has no member named
> 'last_busy'
>
> Option USB_OTG selects USB_SUSPEND but doesn't select PM(required by
> USB_SUSPEND) causing this compile error. Putting USB_SUSPEND as
> USB_OTG depend ensure that PM is selected.
For me it seems sufficient to just remove the select of USB_SUSPEND.
USB_OTG compiles fine without it.
Seems harsh to require someone to enable CONFIG_PM and USB_SUSPEND just
to compile OTG drivers.
-Olof
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [RFC/PATCH 1/2] usb_otg: compile fix
[not found] ` <1262912592-7817-1-git-send-email-alecrim-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-01-08 1:03 ` [RFC/PATCH 2/2] fix compile for tahvo-usb.c Francisco Alecrim
@ 2010-01-08 5:43 ` Felipe Balbi
2010-01-08 5:57 ` Felipe Balbi
1 sibling, 1 reply; 6+ messages in thread
From: Felipe Balbi @ 2010-01-08 5:43 UTC (permalink / raw)
To: Francisco Alecrim
Cc: linux-omap-u79uwXL29TY76Z2rM5mHXA,
linux-usb-u79uwXL29TY76Z2rM5mHXA, Francisco Alecrim
On Thu, Jan 07, 2010 at 09:03:11PM -0400, Francisco Alecrim wrote:
> From: Francisco Alecrim <francisco.alecrim-430g2QfJUUCGglJvpFV4uA@public.gmane.org>
>
> include/linux/usb.h: In function 'usb_mark_last_busy':
> include/linux/usb.h:561: error: 'struct usb_device' has no member named
> 'last_busy'
>
> Option USB_OTG selects USB_SUSPEND but doesn't select PM(required by
> USB_SUSPEND) causing this compile error. Putting USB_SUSPEND as
> USB_OTG depend ensure that PM is selected.
>
> Signed-off-by: Francisco Alecrim <francisco.alecrim-430g2QfJUUCGglJvpFV4uA@public.gmane.org>
should go to linux-usb@vger
--
balbi
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [RFC/PATCH 1/2] usb_otg: compile fix
2010-01-08 5:43 ` [RFC/PATCH 1/2] usb_otg: compile fix Felipe Balbi
@ 2010-01-08 5:57 ` Felipe Balbi
0 siblings, 0 replies; 6+ messages in thread
From: Felipe Balbi @ 2010-01-08 5:57 UTC (permalink / raw)
To: Felipe Balbi
Cc: Francisco Alecrim, linux-omap-u79uwXL29TY76Z2rM5mHXA,
linux-usb-u79uwXL29TY76Z2rM5mHXA, Francisco Alecrim
Hi,
On Fri, Jan 08, 2010 at 07:43:09AM +0200, Felipe Balbi wrote:
> On Thu, Jan 07, 2010 at 09:03:11PM -0400, Francisco Alecrim wrote:
> > From: Francisco Alecrim <francisco.alecrim-430g2QfJUUCGglJvpFV4uA@public.gmane.org>
> >
> > include/linux/usb.h: In function 'usb_mark_last_busy':
> > include/linux/usb.h:561: error: 'struct usb_device' has no member named
> > 'last_busy'
> >
> > Option USB_OTG selects USB_SUSPEND but doesn't select PM(required by
> > USB_SUSPEND) causing this compile error. Putting USB_SUSPEND as
> > USB_OTG depend ensure that PM is selected.
> >
> > Signed-off-by: Francisco Alecrim <francisco.alecrim-430g2QfJUUCGglJvpFV4uA@public.gmane.org>
>
> should go to linux-usb@vger
my bad, it's already in Cc.
--
balbi
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* [APPLIED] [RFC/PATCH 2/2] fix compile for tahvo-usb.c
2010-01-08 1:03 ` [RFC/PATCH 2/2] fix compile for tahvo-usb.c Francisco Alecrim
@ 2010-01-11 23:33 ` Tony Lindgren
0 siblings, 0 replies; 6+ messages in thread
From: Tony Lindgren @ 2010-01-11 23:33 UTC (permalink / raw)
To: linux-omap
This patch has been applied to the linux-omap
by youw fwiendly patch wobot.
Branch in linux-omap: cbus
Initial commit ID (Likely to change): df01abf99660f3077315a1f69a462a8e46bacccb
PatchWorks
http://patchwork.kernel.org/patch/71704/
Git (Likely to change, and takes a while to get mirrored)
http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=commit;h=df01abf99660f3077315a1f69a462a8e46bacccb
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-01-11 23:33 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-08 1:03 [RFC/PATCH 1/2] usb_otg: compile fix Francisco Alecrim
[not found] ` <1262912592-7817-1-git-send-email-alecrim-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010-01-08 1:03 ` [RFC/PATCH 2/2] fix compile for tahvo-usb.c Francisco Alecrim
2010-01-11 23:33 ` [APPLIED] " Tony Lindgren
2010-01-08 5:43 ` [RFC/PATCH 1/2] usb_otg: compile fix Felipe Balbi
2010-01-08 5:57 ` Felipe Balbi
2010-01-08 4:15 ` Olof Johansson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox