Skip to contentSkip to conversation

phy: cpcap-usb: add MUSB dependency

PATCH Applied Arnd Bergmann 4 participants 4 messages Jun 9, 2017 – Jun 12, 2017 Generic PHY framework

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 phy: cpcap-usb: add MUSB dependency

When MUSB is a loadable module, we get a link error for a built-in CPCAP driver:

drivers/phy/built-in.o: In function `cpcap_usb_phy_remove':
phy-cpcap-usb.c:(.text+0xed9): undefined reference to `musb_mailbox'

This adds a Kconfig dependency to prevent this broken configuration, enforcing that CPCAP can only be a module when MUSB is also a module.

Fixes 68a1f7c9d470 ("phy: cpcap-usb: Add CPCAP PMIC USB support")
---
 drivers/phy/motorola/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/phy/motorola/Kconfig +1 -0
index 91a46cffd639..6bb7d6bdf1bf 100644
@@ -4,6 +4,7 @@
 config PHY_CPCAP_USB
 	tristate "CPCAP PMIC USB PHY driver"
 	depends on USB_SUPPORT && IIO
+	depends on USB_MUSB_HDRC || USB_MUSB_HDRC=n
 	select GENERIC_PHY
 	select USB_PHY
 	help
Signature · 1 line
2.9.0
Reviewed-by on v1 1/1
#1 lore raw

Hi,

Quoted 11 lines · Arnd Bergmann

When MUSB is a loadable module, we get a link error for a built-in CPCAP driver:

drivers/phy/built-in.o: In function `cpcap_usb_phy_remove':
phy-cpcap-usb.c:(.text+0xed9): undefined reference to `musb_mailbox'

This adds a Kconfig dependency to prevent this broken configuration, enforcing that CPCAP can only be a module when MUSB is also a module.

Fixes 68a1f7c9d470 ("phy: cpcap-usb: Add CPCAP PMIC USB support")

-- Sebastian

Quoted 19 lines
---
 drivers/phy/motorola/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/phy/motorola/Kconfig +1 -0
index 91a46cffd639..6bb7d6bdf1bf 100644
@@ -4,6 +4,7 @@
 config PHY_CPCAP_USB
 	tristate "CPCAP PMIC USB PHY driver"
 	depends on USB_SUPPORT && IIO
+	depends on USB_MUSB_HDRC || USB_MUSB_HDRC=n
 	select GENERIC_PHY
 	select USB_PHY
 	help
Signature · 1 line
2.9.0
#2 lore raw
Quoted 9 lines · Sebastian Reichel

Hi,

Quoted 6 lines · Arnd Bergmann

When MUSB is a loadable module, we get a link error for a built-in CPCAP driver:

drivers/phy/built-in.o: In function `cpcap_usb_phy_remove':
phy-cpcap-usb.c:(.text+0xed9): undefined reference to `musb_mailbox'

Quoted 7 lines
Quoted 5 lines

This adds a Kconfig dependency to prevent this broken configuration, enforcing that CPCAP can only be a module when MUSB is also a module.

Fixes 68a1f7c9d470 ("phy: cpcap-usb: Add CPCAP PMIC USB support")

merged, thanks!

-Kishon

Quoted 22 lines

-- Sebastian

Quoted 19 lines
---
 drivers/phy/motorola/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/phy/motorola/Kconfig +1 -0
index 91a46cffd639..6bb7d6bdf1bf 100644
@@ -4,6 +4,7 @@
 config PHY_CPCAP_USB
 	tristate "CPCAP PMIC USB PHY driver"
 	depends on USB_SUPPORT && IIO
+	depends on USB_MUSB_HDRC || USB_MUSB_HDRC=n
 	select GENERIC_PHY
 	select USB_PHY
 	help
Signature · 1 line
2.9.0
#3 lore raw
Quoted 15 lines · Kishon Vijay Abraham I
Quoted 12 lines · Sebastian Reichel

Hi,

Quoted 9 lines · Arnd Bergmann

When MUSB is a loadable module, we get a link error for a built-in CPCAP driver:

drivers/phy/built-in.o: In function `cpcap_usb_phy_remove':
phy-cpcap-usb.c:(.text+0xed9): undefined reference to `musb_mailbox'

This adds a Kconfig dependency to prevent this broken configuration, enforcing that CPCAP can only be a module when MUSB is also a module.

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Fixes 68a1f7c9d470 ("phy: cpcap-usb: Add CPCAP PMIC USB support")

merged, thanks!

Yup thanks for fixing it.

Regards,

Tony