Skip to contentSkip to conversation

power: qcom-smbb: add extcon dependency

PATCH In review Arnd Bergmann 3 participants 5 messages Jun 29, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 power: qcom-smbb: add extcon dependency

Building the smbb driver without extcon results in a link failure:

drivers/power/built-in.o: In function `smbb_usb_valid_handler':
:(.text+0x3190): undefined reference to extcon_set_cable_state_' drivers/power/built-in.o: In function smbb_charger_probe':
:(.text+0x3880): undefined reference to devm_extcon_dev_allocate' :(.text+0x3898): undefined reference to devm_extcon_dev_register'

This adds a Kconfig dependency.

Fixes 56d7df8716b2 ("power: Add Qualcomm SMBB driver")
---
 drivers/power/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/power/Kconfig +1 -0
index 0f11a0f4c369..acd4a1524a1e 100644
@@ -394,6 +394,7 @@ config CHARGER_QCOM_SMBB
 	tristate "Qualcomm Switch-Mode Battery Charger and Boost"
 	depends on MFD_SPMI_PMIC || COMPILE_TEST
 	depends on OF
+	depends on EXTCON
 	help
 	  Say Y to include support for the Switch-Mode Battery Charger and
 	  Boost (SMBB) hardware found in Qualcomm PM8941 PMICs.  The charger
Signature · 1 line
2.9.0
#1 lore raw

Hi,

Quoted 21 lines · Arnd Bergmann

Building the smbb driver without extcon results in a link failure:

drivers/power/built-in.o: In function `smbb_usb_valid_handler':
:(.text+0x3190): undefined reference to extcon_set_cable_state_' drivers/power/built-in.o: In function smbb_charger_probe':
:(.text+0x3880): undefined reference to devm_extcon_dev_allocate' :(.text+0x3898): undefined reference to devm_extcon_dev_register'

This adds a Kconfig dependency.

Fixes 56d7df8716b2 ("power: Add Qualcomm SMBB driver")
---
 drivers/power/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/power/Kconfig +0 -0
index 0f11a0f4c369..acd4a1524a1e 100644

drivers/power/Kconfig config CHARGER_QCOM_SMBB · line 400

Quoted 7 lines
drivers/power/Kconfig +1 -0
@@ -394,6 +394,7 @@ config CHARGER_QCOM_SMBB
 	tristate "Qualcomm Switch-Mode Battery Charger and Boost"
 	depends on MFD_SPMI_PMIC || COMPILE_TEST
 	depends on OF
+	depends on EXTCON
 	help
 	  Say Y to include support for the Switch-Mode Battery Charger and
 	  Boost (SMBB) hardware found in Qualcomm PM8941 PMICs.  The charger

Thanks, queued.

-- Sebastian

#2 lore raw
Quoted 15 lines · Sebastian Reichel

Hi,

Quoted 12 lines · Arnd Bergmann

Building the smbb driver without extcon results in a link failure:

drivers/power/built-in.o: In function `smbb_usb_valid_handler':
:(.text+0x3190): undefined reference to extcon_set_cable_state_' drivers/power/built-in.o: In function smbb_charger_probe':
:(.text+0x3880): undefined reference to devm_extcon_dev_allocate' :(.text+0x3898): undefined reference to devm_extcon_dev_register'

This adds a Kconfig dependency.

Fixes 56d7df8716b2 ("power: Add Qualcomm SMBB driver")

extcon use was only recently introduced so this should be

Fixes 0b7fe26ae602 ("power: qcom_smbb: Make an extcon for usb cable

detection")

Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
#3 lore raw

Hi,

Quoted 12 lines · Stephen Boyd
Quoted 11 lines · Sebastian Reichel
Quoted 10 lines · Arnd Bergmann

Building the smbb driver without extcon results in a link failure:

drivers/power/built-in.o: In function `smbb_usb_valid_handler':
:(.text+0x3190): undefined reference to extcon_set_cable_state_' drivers/power/built-in.o: In function smbb_charger_probe':
:(.text+0x3880): undefined reference to devm_extcon_dev_allocate' :(.text+0x3898): undefined reference to devm_extcon_dev_register'

This adds a Kconfig dependency.

Quoted 7 lines
Quoted 2 lines
Quoted 2 lines
Fixes 56d7df8716b2 ("power: Add Qualcomm SMBB driver")

extcon use was only recently introduced so this should be

Fixes 0b7fe26ae602 ("power: qcom_smbb: Make an extcon for usb cable

detection")

Right, I didn't notice the Fixes line is wrong. Since I will have to rebase now, I will just squash this into 0b7fe26ae602.

-- Sebastian

#4 lore raw
Quoted 16 lines · CEST Sebastian Reichel
Quoted 15 lines · Stephen Boyd
Quoted 13 lines · Sebastian Reichel
Quoted 12 lines · Arnd Bergmann

Building the smbb driver without extcon results in a link failure:

drivers/power/built-in.o: In function `smbb_usb_valid_handler':
:(.text+0x3190): undefined reference to extcon_set_cable_state_' drivers/power/built-in.o: In function smbb_charger_probe':
:(.text+0x3880): undefined reference to devm_extcon_dev_allocate' :(.text+0x3898): undefined reference to devm_extcon_dev_register'

This adds a Kconfig dependency.

Fixes 56d7df8716b2 ("power: Add Qualcomm SMBB driver")
Quoted 7 lines
Quoted 4 lines

extcon use was only recently introduced so this should be

Fixes 0b7fe26ae602 ("power: qcom_smbb: Make an extcon for usb cable

detection")

Right, I didn't notice the Fixes line is wrong. Since I will have to rebase now, I will just squash this into 0b7fe26ae602.

Ok, thanks and sorry for the mixup, I must have pasted the wrong line.

Arnd