Skip to contentSkip to conversation

2.6.29-rc: remaining regression: n770_defconfig, omap_apollon_2420_defconfig

DISCUSSION Russell King - ARM Linux 4 participants 4 messages Jan 27, 2009 – Jan 28, 2009 2 messages not in the archive USB

lore
Share & tools
lore
#0 lore raw

Now that the usb_port_suspend() build error is fixed in 2.6.29-rc1-git6, n770_defconfig and omap_apollon_2420_defconfig now suffers from:

drivers/built-in.o: In function `ohci_omap_init':
hid-quirks.c:(.text+0x6c620): undefined reference to otg_get_transceiver' drivers/built-in.o: In function omap_udc_probe':
hid-quirks.c:(.init.text+0x34c0): undefined reference to otg_get_transceiver' hid-quirks.c:(.init.text+0x3d40): undefined reference to otg_put_transceiver'

A message that is not in the archive (sent off-list or not yet received): 20090127225000.GC639-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org

#2 lore raw
Quoted 8 lines · Russell King - ARM Linux

Now that the usb_port_suspend() build error is fixed in 2.6.29-rc1-git6, n770_defconfig and omap_apollon_2420_defconfig now suffers from:

drivers/built-in.o: In function `ohci_omap_init':
hid-quirks.c:(.text+0x6c620): undefined reference to otg_get_transceiver' drivers/built-in.o: In function omap_udc_probe':
hid-quirks.c:(.init.text+0x34c0): undefined reference to otg_get_transceiver' hid-quirks.c:(.init.text+0x3d40): undefined reference to otg_put_transceiver'

Adding linux-usb to the list hoping there's already a fix for this.

To me it looks like there should be ifdef CONFIG_USB_OTG_UTILS instead of CONFIG_USB_OTG in the drivers to keep them compiling when no transceiver is selected.

Or otg.h should have inlined dummy functions for otg_get_transceiver and otg_put_transceiver.

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

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 11 lines · Tony Lindgren
Quoted 8 lines · Russell King - ARM Linux

Now that the usb_port_suspend() build error is fixed in 2.6.29-rc1-git6, n770_defconfig and omap_apollon_2420_defconfig now suffers from:

drivers/built-in.o: In function `ohci_omap_init':
hid-quirks.c:(.text+0x6c620): undefined reference to otg_get_transceiver' drivers/built-in.o: In function omap_udc_probe':
hid-quirks.c:(.init.text+0x34c0): undefined reference to otg_get_transceiver' hid-quirks.c:(.init.text+0x3d40): undefined reference to otg_put_transceiver'

Adding linux-usb to the list hoping there's already a fix for this.

Scheduled for 2.6.29-soon:

http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6
/gregkh-02-usb.current/usb-omap1-ohci-buildfix.patch

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

#5 lore raw

Hi,

Quoted 11 lines · David Brownell
Quoted 10 lines · Tony Lindgren
Quoted 8 lines · Russell King - ARM Linux

Now that the usb_port_suspend() build error is fixed in 2.6.29-rc1-git6, n770_defconfig and omap_apollon_2420_defconfig now suffers from:

drivers/built-in.o: In function `ohci_omap_init':
hid-quirks.c:(.text+0x6c620): undefined reference to otg_get_transceiver' drivers/built-in.o: In function omap_udc_probe':
hid-quirks.c:(.init.text+0x34c0): undefined reference to otg_get_transceiver' hid-quirks.c:(.init.text+0x3d40): undefined reference to otg_put_transceiver'

Quoted 7 lines
Quoted 1 line

Adding linux-usb to the list hoping there's already a fix for this.

Scheduled for 2.6.29-soon:

http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6
/gregkh-02-usb.current/usb-omap1-ohci-buildfix.patch

Also need following patch in case of usb gadget only.

---

drivers/usb/gadget/Kconfig +1 -0
index 3219d13..b26d6e6 100644
@@ -191,6 +191,7 @@ config USB_GADGET_OMAP
 	boolean "OMAP USB Device Controller"
 	depends on ARCH_OMAP
 	select ISP1301_OMAP if MACH_OMAP_H2 || MACH_OMAP_H3 || MACH_OMAP_H4_OTG
+	select USB_OTG_UTILS if ARCH_OMAP
 	help
 	   Many Texas Instruments OMAP processors have flexible full
 	   speed USB device controllers, with support for up to 30