Skip to contentSkip to conversation

OMAP still fails - usb phy stuff

DISCUSSION Russell King - ARM Linux 4 participants 8 messages Dec 10, 2013 Generic PHY framework

lore
Share & tools
lore
#0 lore raw

I still see some OMAP randconfigs failing with this:

arch/arm/mach-omap2/built-in.o: In function `usbhs_init_phys':
dss-common.c:(.text+0x1396c): undefined reference to usb_bind_phy' arch/arm/mach-omap2/built-in.o: In function omap_2430sdp_init':
dss-common.c:(.init.text+0x6c90): undefined reference to usb_bind_phy' drivers/built-in.o: In function omap_usb2_remove':
powercap_sys.c:(.text+0x3520): undefined reference to usb_remove_phy' drivers/built-in.o: In function omap_usb_power_off':
powercap_sys.c:(.text+0x3544): undefined reference to omap_control_usb_phy_power' drivers/built-in.o: In function omap_usb_power_on':
powercap_sys.c:(.text+0x3568): undefined reference to omap_control_usb_phy_power' drivers/built-in.o: In function omap_usb2_probe':
powercap_sys.c:(.text+0x3638): undefined reference to omap_control_usb_phy_power' powercap_sys.c:(.text+0x36d4): undefined reference to usb_add_phy_dev' drivers/built-in.o: In function `omap_usb2_suspend':
powercap_sys.c:(.text+0x37d0): undefined reference to omap_control_usb_phy_power' powercap_sys.c:(.text+0x37f4): undefined reference to omap_control_usb_phy_power' drivers/built-in.o: In function `omap_usb2_set_comparator':
powercap_sys.c:(.text+0x3844): undefined reference to usb_get_phy' drivers/built-in.o: In function isp1704_charger_remove':
powercap_sys.c:(.text+0x48d5ec): undefined reference to usb_put_phy' drivers/built-in.o: In function isp1704_charger_probe':
powercap_sys.c:(.text+0x48d64c): undefined reference to usb_get_phy' powercap_sys.c:(.text+0x48d884): undefined reference to usb_put_phy' drivers/built-in.o: In function `twl4030_bci_probe':
powercap_sys.c:(.init.text+0x13fd4): undefined reference to usb_get_phy' powercap_sys.c:(.init.text+0x14114): undefined reference to usb_put_phy'

Probably caused by over-use of the damned select statement:

warning: (OMAP_USB2 && TWL4030_USB) selects USB_PHY which has unmet direct dependencies (USB_SUPPORT)
warning: (OMAP_USB2) selects OMAP_CONTROL_USB which has unmet direct dependencies (USB_SUPPORT && (ARCH_OMAP2PLUS || COMPILE_TEST))
warning: (OMAP_USB2 && TWL4030_USB) selects USB_PHY which has unmet direct dependencies (USB_SUPPORT)
warning: (OMAP_USB2) selects OMAP_CONTROL_USB which has unmet direct dependencies (USB_SUPPORT && (ARCH_OMAP2PLUS || COMPILE_TEST))

You have to wonder why OMAP_USB2 can be enabled when USB_SUPPORT is disabled.

#1 lore raw
Quoted 31 lines · Russell King - ARM Linux

I still see some OMAP randconfigs failing with this:

arch/arm/mach-omap2/built-in.o: In function `usbhs_init_phys':
dss-common.c:(.text+0x1396c): undefined reference to usb_bind_phy' arch/arm/mach-omap2/built-in.o: In function omap_2430sdp_init':
dss-common.c:(.init.text+0x6c90): undefined reference to usb_bind_phy' drivers/built-in.o: In function omap_usb2_remove':
powercap_sys.c:(.text+0x3520): undefined reference to usb_remove_phy' drivers/built-in.o: In function omap_usb_power_off':
powercap_sys.c:(.text+0x3544): undefined reference to omap_control_usb_phy_power' drivers/built-in.o: In function omap_usb_power_on':
powercap_sys.c:(.text+0x3568): undefined reference to omap_control_usb_phy_power' drivers/built-in.o: In function omap_usb2_probe':
powercap_sys.c:(.text+0x3638): undefined reference to omap_control_usb_phy_power' powercap_sys.c:(.text+0x36d4): undefined reference to usb_add_phy_dev' drivers/built-in.o: In function `omap_usb2_suspend':
powercap_sys.c:(.text+0x37d0): undefined reference to omap_control_usb_phy_power' powercap_sys.c:(.text+0x37f4): undefined reference to omap_control_usb_phy_power' drivers/built-in.o: In function `omap_usb2_set_comparator':
powercap_sys.c:(.text+0x3844): undefined reference to usb_get_phy' drivers/built-in.o: In function isp1704_charger_remove':
powercap_sys.c:(.text+0x48d5ec): undefined reference to usb_put_phy' drivers/built-in.o: In function isp1704_charger_probe':
powercap_sys.c:(.text+0x48d64c): undefined reference to usb_get_phy' powercap_sys.c:(.text+0x48d884): undefined reference to usb_put_phy' drivers/built-in.o: In function `twl4030_bci_probe':
powercap_sys.c:(.init.text+0x13fd4): undefined reference to usb_get_phy' powercap_sys.c:(.init.text+0x14114): undefined reference to usb_put_phy'

Probably caused by over-use of the damned select statement:

Quoted 7 lines

warning: (OMAP_USB2 && TWL4030_USB) selects USB_PHY which has unmet direct dependencies (USB_SUPPORT)
warning: (OMAP_USB2) selects OMAP_CONTROL_USB which has unmet direct dependencies (USB_SUPPORT && (ARCH_OMAP2PLUS || COMPILE_TEST))
warning: (OMAP_USB2 && TWL4030_USB) selects USB_PHY which has unmet direct dependencies (USB_SUPPORT)
warning: (OMAP_USB2) selects OMAP_CONTROL_USB which has unmet direct dependencies (USB_SUPPORT && (ARCH_OMAP2PLUS || COMPILE_TEST))

You have to wonder why OMAP_USB2 can be enabled when USB_SUPPORT is disabled.

Yeah this causes constant randconfig errors. Felipe, I thought you had some fixes lined up for these few weeks ago already when we last talked about it?

Regards,

Tony

#2 lore raw
Quoted 37 lines · Tony Lindgren
Quoted 36 lines · Russell King - ARM Linux

I still see some OMAP randconfigs failing with this:

arch/arm/mach-omap2/built-in.o: In function `usbhs_init_phys':
dss-common.c:(.text+0x1396c): undefined reference to usb_bind_phy' arch/arm/mach-omap2/built-in.o: In function omap_2430sdp_init':
dss-common.c:(.init.text+0x6c90): undefined reference to usb_bind_phy' drivers/built-in.o: In function omap_usb2_remove':
powercap_sys.c:(.text+0x3520): undefined reference to usb_remove_phy' drivers/built-in.o: In function omap_usb_power_off':
powercap_sys.c:(.text+0x3544): undefined reference to omap_control_usb_phy_power' drivers/built-in.o: In function omap_usb_power_on':
powercap_sys.c:(.text+0x3568): undefined reference to omap_control_usb_phy_power' drivers/built-in.o: In function omap_usb2_probe':
powercap_sys.c:(.text+0x3638): undefined reference to omap_control_usb_phy_power' powercap_sys.c:(.text+0x36d4): undefined reference to usb_add_phy_dev' drivers/built-in.o: In function `omap_usb2_suspend':
powercap_sys.c:(.text+0x37d0): undefined reference to omap_control_usb_phy_power' powercap_sys.c:(.text+0x37f4): undefined reference to omap_control_usb_phy_power' drivers/built-in.o: In function `omap_usb2_set_comparator':
powercap_sys.c:(.text+0x3844): undefined reference to usb_get_phy' drivers/built-in.o: In function isp1704_charger_remove':
powercap_sys.c:(.text+0x48d5ec): undefined reference to usb_put_phy' drivers/built-in.o: In function isp1704_charger_probe':
powercap_sys.c:(.text+0x48d64c): undefined reference to usb_get_phy' powercap_sys.c:(.text+0x48d884): undefined reference to usb_put_phy' drivers/built-in.o: In function `twl4030_bci_probe':
powercap_sys.c:(.init.text+0x13fd4): undefined reference to usb_get_phy' powercap_sys.c:(.init.text+0x14114): undefined reference to usb_put_phy'

Probably caused by over-use of the damned select statement:

warning: (OMAP_USB2 && TWL4030_USB) selects USB_PHY which has unmet direct dependencies (USB_SUPPORT)
warning: (OMAP_USB2) selects OMAP_CONTROL_USB which has unmet direct dependencies (USB_SUPPORT && (ARCH_OMAP2PLUS || COMPILE_TEST))
warning: (OMAP_USB2 && TWL4030_USB) selects USB_PHY which has unmet direct dependencies (USB_SUPPORT)
warning: (OMAP_USB2) selects OMAP_CONTROL_USB which has unmet direct dependencies (USB_SUPPORT && (ARCH_OMAP2PLUS || COMPILE_TEST))

Quoted 6 lines
Quoted 2 lines

You have to wonder why OMAP_USB2 can be enabled when USB_SUPPORT is disabled.

Yeah this causes constant randconfig errors. Felipe, I thought you had some fixes lined up for these few weeks ago already when we last talked about it?

For the warnings, yeah. Greg's pull request hasn't been appliet yet (need to check again, checked yesterday).

For the build error, I'll send something today.

Signature · 8 lines
balbi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20131210/dfcbea7d/attachment.sig>
#3 lore raw

Hi,

Quoted 41 lines · Felipe Balbi
Quoted 40 lines · Tony Lindgren
Quoted 38 lines · Russell King - ARM Linux

I still see some OMAP randconfigs failing with this:

arch/arm/mach-omap2/built-in.o: In function `usbhs_init_phys':
dss-common.c:(.text+0x1396c): undefined reference to usb_bind_phy' arch/arm/mach-omap2/built-in.o: In function omap_2430sdp_init':
dss-common.c:(.init.text+0x6c90): undefined reference to usb_bind_phy' drivers/built-in.o: In function omap_usb2_remove':
powercap_sys.c:(.text+0x3520): undefined reference to usb_remove_phy' drivers/built-in.o: In function omap_usb_power_off':
powercap_sys.c:(.text+0x3544): undefined reference to omap_control_usb_phy_power' drivers/built-in.o: In function omap_usb_power_on':
powercap_sys.c:(.text+0x3568): undefined reference to omap_control_usb_phy_power' drivers/built-in.o: In function omap_usb2_probe':
powercap_sys.c:(.text+0x3638): undefined reference to omap_control_usb_phy_power' powercap_sys.c:(.text+0x36d4): undefined reference to usb_add_phy_dev' drivers/built-in.o: In function `omap_usb2_suspend':
powercap_sys.c:(.text+0x37d0): undefined reference to omap_control_usb_phy_power' powercap_sys.c:(.text+0x37f4): undefined reference to omap_control_usb_phy_power' drivers/built-in.o: In function `omap_usb2_set_comparator':
powercap_sys.c:(.text+0x3844): undefined reference to usb_get_phy' drivers/built-in.o: In function isp1704_charger_remove':
powercap_sys.c:(.text+0x48d5ec): undefined reference to usb_put_phy' drivers/built-in.o: In function isp1704_charger_probe':
powercap_sys.c:(.text+0x48d64c): undefined reference to usb_get_phy' powercap_sys.c:(.text+0x48d884): undefined reference to usb_put_phy' drivers/built-in.o: In function `twl4030_bci_probe':
powercap_sys.c:(.init.text+0x13fd4): undefined reference to usb_get_phy' powercap_sys.c:(.init.text+0x14114): undefined reference to usb_put_phy'

Probably caused by over-use of the damned select statement:

warning: (OMAP_USB2 && TWL4030_USB) selects USB_PHY which has unmet direct dependencies (USB_SUPPORT)
warning: (OMAP_USB2) selects OMAP_CONTROL_USB which has unmet direct dependencies (USB_SUPPORT && (ARCH_OMAP2PLUS || COMPILE_TEST))
warning: (OMAP_USB2 && TWL4030_USB) selects USB_PHY which has unmet direct dependencies (USB_SUPPORT)
warning: (OMAP_USB2) selects OMAP_CONTROL_USB which has unmet direct dependencies (USB_SUPPORT && (ARCH_OMAP2PLUS || COMPILE_TEST))

You have to wonder why OMAP_USB2 can be enabled when USB_SUPPORT is disabled.

Quoted 8 lines
Quoted 3 lines

Yeah this causes constant randconfig errors. Felipe, I thought you had some fixes lined up for these few weeks ago already when we last talked about it?

For the warnings, yeah. Greg's pull request hasn't been appliet yet (need to check again, checked yesterday).

For the build error, I'll send something today.

this should fix it (checked with RMK's defconfig):

drivers/phy/Kconfig +1 -1
index a344f3d..d8b1a9a 100644
@@ -24,9 +24,9 @@ config PHY_EXYNOS_MIPI_VIDEO
 config OMAP_USB2
 	tristate "OMAP USB2 PHY Driver"
 	depends on ARCH_OMAP2PLUS
+	depends on OMAP_CONTROL_USB
 	select GENERIC_PHY
 	select USB_PHY
-	select OMAP_CONTROL_USB
 	help
 	  Enable this to support the transceiver that is part of SOC. This
 	  driver takes care of all the PHY functionality apart from comparator.

i'll send it as a proper patch now.

Signature · 8 lines
balbi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20131210/a084c60b/attachment.sig>
#4 lore raw
Quoted 71 lines · Felipe Balbi

Hi,

Quoted 41 lines · Felipe Balbi
Quoted 40 lines · Tony Lindgren
Quoted 38 lines · Russell King - ARM Linux

I still see some OMAP randconfigs failing with this:

arch/arm/mach-omap2/built-in.o: In function `usbhs_init_phys':
dss-common.c:(.text+0x1396c): undefined reference to usb_bind_phy' arch/arm/mach-omap2/built-in.o: In function omap_2430sdp_init':
dss-common.c:(.init.text+0x6c90): undefined reference to usb_bind_phy' drivers/built-in.o: In function omap_usb2_remove':
powercap_sys.c:(.text+0x3520): undefined reference to usb_remove_phy' drivers/built-in.o: In function omap_usb_power_off':
powercap_sys.c:(.text+0x3544): undefined reference to omap_control_usb_phy_power' drivers/built-in.o: In function omap_usb_power_on':
powercap_sys.c:(.text+0x3568): undefined reference to omap_control_usb_phy_power' drivers/built-in.o: In function omap_usb2_probe':
powercap_sys.c:(.text+0x3638): undefined reference to omap_control_usb_phy_power' powercap_sys.c:(.text+0x36d4): undefined reference to usb_add_phy_dev' drivers/built-in.o: In function `omap_usb2_suspend':
powercap_sys.c:(.text+0x37d0): undefined reference to omap_control_usb_phy_power' powercap_sys.c:(.text+0x37f4): undefined reference to omap_control_usb_phy_power' drivers/built-in.o: In function `omap_usb2_set_comparator':
powercap_sys.c:(.text+0x3844): undefined reference to usb_get_phy' drivers/built-in.o: In function isp1704_charger_remove':
powercap_sys.c:(.text+0x48d5ec): undefined reference to usb_put_phy' drivers/built-in.o: In function isp1704_charger_probe':
powercap_sys.c:(.text+0x48d64c): undefined reference to usb_get_phy' powercap_sys.c:(.text+0x48d884): undefined reference to usb_put_phy' drivers/built-in.o: In function `twl4030_bci_probe':
powercap_sys.c:(.init.text+0x13fd4): undefined reference to usb_get_phy' powercap_sys.c:(.init.text+0x14114): undefined reference to usb_put_phy'

Probably caused by over-use of the damned select statement:

warning: (OMAP_USB2 && TWL4030_USB) selects USB_PHY which has unmet direct dependencies (USB_SUPPORT)
warning: (OMAP_USB2) selects OMAP_CONTROL_USB which has unmet direct dependencies (USB_SUPPORT && (ARCH_OMAP2PLUS || COMPILE_TEST))
warning: (OMAP_USB2 && TWL4030_USB) selects USB_PHY which has unmet direct dependencies (USB_SUPPORT)
warning: (OMAP_USB2) selects OMAP_CONTROL_USB which has unmet direct dependencies (USB_SUPPORT && (ARCH_OMAP2PLUS || COMPILE_TEST))

You have to wonder why OMAP_USB2 can be enabled when USB_SUPPORT is disabled.

Quoted 8 lines
Quoted 3 lines

Yeah this causes constant randconfig errors. Felipe, I thought you had some fixes lined up for these few weeks ago already when we last talked about it?

For the warnings, yeah. Greg's pull request hasn't been appliet yet (need to check again, checked yesterday).

For the build error, I'll send something today.

this should fix it (checked with RMK's defconfig):

drivers/phy/Kconfig +1 -1
index a344f3d..d8b1a9a 100644
@@ -24,9 +24,9 @@ config PHY_EXYNOS_MIPI_VIDEO
 config OMAP_USB2
 	tristate "OMAP USB2 PHY Driver"
 	depends on ARCH_OMAP2PLUS
+	depends on OMAP_CONTROL_USB
 	select GENERIC_PHY
 	select USB_PHY
-	select OMAP_CONTROL_USB
 	help
 	  Enable this to support the transceiver that is part of SOC. This
 	  driver takes care of all the PHY functionality apart from comparator.
Quoted 1 line

i'll send it as a proper patch now.

Russell, should I add your Reported-by ? If so, which email do you prefer to be used ?

Signature · 8 lines
balbi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20131210/b511c6bf/attachment.sig>
#5 lore raw
Quoted 17 lines · Felipe Balbi
Quoted 16 lines · Felipe Balbi
drivers/phy/Kconfig +1 -1
index a344f3d..d8b1a9a 100644
@@ -24,9 +24,9 @@ config PHY_EXYNOS_MIPI_VIDEO
 config OMAP_USB2
 	tristate "OMAP USB2 PHY Driver"
 	depends on ARCH_OMAP2PLUS
+	depends on OMAP_CONTROL_USB
 	select GENERIC_PHY
 	select USB_PHY
-	select OMAP_CONTROL_USB
 	help
 	  Enable this to support the transceiver that is part of SOC. This
 	  driver takes care of all the PHY functionality apart from comparator.
Quoted 4 lines
Quoted 1 line

i'll send it as a proper patch now.

Russell, should I add your Reported-by ? If so, which email do you prefer to be used ?

I always prefer rmk+kernel at arm.linux.org.uk in git commits. Thanks for asking.

#6 lore raw
Quoted 18 lines · Russell King - ARM Linux
Quoted 17 lines · Felipe Balbi
Quoted 16 lines · Felipe Balbi
drivers/phy/Kconfig +1 -1
index a344f3d..d8b1a9a 100644
@@ -24,9 +24,9 @@ config PHY_EXYNOS_MIPI_VIDEO
 config OMAP_USB2
 	tristate "OMAP USB2 PHY Driver"
 	depends on ARCH_OMAP2PLUS
+	depends on OMAP_CONTROL_USB
 	select GENERIC_PHY
 	select USB_PHY
-	select OMAP_CONTROL_USB
 	help
 	  Enable this to support the transceiver that is part of SOC. This
 	  driver takes care of all the PHY functionality apart from comparator.
Quoted 7 lines
Quoted 4 lines
Quoted 1 line

i'll send it as a proper patch now.

Russell, should I add your Reported-by ? If so, which email do you prefer to be used ?

I always prefer rmk+kernel at arm.linux.org.uk in git commits. Thanks for asking.

no problem, patch sent.

Signature · 8 lines
balbi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20131210/c45367f9/attachment.sig>
#7 lore raw
In reply to Tony Lindgren
Quoted 37 lines · Tony Lindgren
Quoted 36 lines · Russell King - ARM Linux

I still see some OMAP randconfigs failing with this:

arch/arm/mach-omap2/built-in.o: In function `usbhs_init_phys':
dss-common.c:(.text+0x1396c): undefined reference to usb_bind_phy' arch/arm/mach-omap2/built-in.o: In function omap_2430sdp_init':
dss-common.c:(.init.text+0x6c90): undefined reference to usb_bind_phy' drivers/built-in.o: In function omap_usb2_remove':
powercap_sys.c:(.text+0x3520): undefined reference to usb_remove_phy' drivers/built-in.o: In function omap_usb_power_off':
powercap_sys.c:(.text+0x3544): undefined reference to omap_control_usb_phy_power' drivers/built-in.o: In function omap_usb_power_on':
powercap_sys.c:(.text+0x3568): undefined reference to omap_control_usb_phy_power' drivers/built-in.o: In function omap_usb2_probe':
powercap_sys.c:(.text+0x3638): undefined reference to omap_control_usb_phy_power' powercap_sys.c:(.text+0x36d4): undefined reference to usb_add_phy_dev' drivers/built-in.o: In function `omap_usb2_suspend':
powercap_sys.c:(.text+0x37d0): undefined reference to omap_control_usb_phy_power' powercap_sys.c:(.text+0x37f4): undefined reference to omap_control_usb_phy_power' drivers/built-in.o: In function `omap_usb2_set_comparator':
powercap_sys.c:(.text+0x3844): undefined reference to usb_get_phy' drivers/built-in.o: In function isp1704_charger_remove':
powercap_sys.c:(.text+0x48d5ec): undefined reference to usb_put_phy' drivers/built-in.o: In function isp1704_charger_probe':
powercap_sys.c:(.text+0x48d64c): undefined reference to usb_get_phy' powercap_sys.c:(.text+0x48d884): undefined reference to usb_put_phy' drivers/built-in.o: In function `twl4030_bci_probe':
powercap_sys.c:(.init.text+0x13fd4): undefined reference to usb_get_phy' powercap_sys.c:(.init.text+0x14114): undefined reference to usb_put_phy'

Probably caused by over-use of the damned select statement:

warning: (OMAP_USB2 && TWL4030_USB) selects USB_PHY which has unmet direct dependencies (USB_SUPPORT)
warning: (OMAP_USB2) selects OMAP_CONTROL_USB which has unmet direct dependencies (USB_SUPPORT && (ARCH_OMAP2PLUS || COMPILE_TEST))
warning: (OMAP_USB2 && TWL4030_USB) selects USB_PHY which has unmet direct dependencies (USB_SUPPORT)
warning: (OMAP_USB2) selects OMAP_CONTROL_USB which has unmet direct dependencies (USB_SUPPORT && (ARCH_OMAP2PLUS || COMPILE_TEST))

Quoted 6 lines
Quoted 2 lines

You have to wonder why OMAP_USB2 can be enabled when USB_SUPPORT is disabled.

Yeah this causes constant randconfig errors. Felipe, I thought you had some fixes lined up for these few weeks ago already when we last talked about it?

We are still discussing how best to fix this on the linux-usb mailing list, give us a chance...

thanks,

greg k-h