Skip to contentSkip to conversation

hwmon: (s3c-hwmon): S3C hwmon requires S3C_ADC

PATCH In review Mark Brown 2 participants 4 messages Jan 28, 2010 – Jan 29, 2010 Hardware monitoring

lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 hwmon: (s3c-hwmon): S3C hwmon requires S3C_ADC

The S3C hwmon driver uses the core s3c ADC API so needs to either depend on or select it otherwise the kernel will fail to link. For ease of use selecting seems simpler, the shared ADC core is pretty much an implementation detail.

---
 drivers/hwmon/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/hwmon/Kconfig +1 -0
index 90db0ba..cc810e7 100644
@@ -704,6 +704,7 @@ config SENSORS_SHT15
 config SENSORS_S3C
 	tristate "S3C24XX/S3C64XX Inbuilt ADC"
 	depends on ARCH_S3C2410 || ARCH_S3C64XX
+	select S3C_ADC
 	help
 	  If you say yes here you get support for the on-board ADCs of
 	  the Samsung S3C24XX or S3C64XX series of SoC
Signature · 7 lines
1.6.6


_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#1 lore raw

Re: [lm-sensors] [PATCH] hwmon: (s3c-hwmon): S3C hwmon requires

Hi Mark,

Quoted 15 lines · Mark Brown

The S3C hwmon driver uses the core s3c ADC API so needs to either depend on or select it otherwise the kernel will fail to link. For ease of use selecting seems simpler, the shared ADC core is pretty much an implementation detail.

---
 drivers/hwmon/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/hwmon/Kconfig +0 -0
index 90db0ba..cc810e7 100644

drivers/hwmon/Kconfig config SENSORS_SHT15 · line 710

Quoted 7 lines
drivers/hwmon/Kconfig +1 -0
@@ -704,6 +704,7 @@ config SENSORS_SHT15
 config SENSORS_S3C
 	tristate "S3C24XX/S3C64XX Inbuilt ADC"
 	depends on ARCH_S3C2410 || ARCH_S3C64XX
+	select S3C_ADC
 	help
 	  If you say yes here you get support for the on-board ADCs of
 	  the Samsung S3C24XX or S3C64XX series of SoC

Which tree are you looking at? I can't find an option named S3C_ADC.

What I do see is CONFIG_S3C24XX_ADC, however it seems to be platform-specific, so I doubt you can just "select" it on ARCH_S3C64XX.

Looking at the source tree, I also don't see ADC support for ARCH_S3C64XX at all, so I am curious if this patch was correct:

http://lists.lm-sensors.org/pipermail/lm-sensors/2010-January/027712.html

Maybe it's correct for some external tree and/or linux-next, but not Linus' current kernel.

So, Mark, I can't take your patch, and Ben, I'll remove the other patch from my tree right now. These changes should go together with the related platform changes. Carrying them in the hwmon tree when all the related changes are in another tree can only cause trouble.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
author
#2 lore raw

Re: [lm-sensors] [PATCH] hwmon: (s3c-hwmon): S3C hwmon requires

In reply to Mark Brown
Quoted 4 lines · Jean Delvare

Which tree are you looking at? I can't find an option named S3C_ADC.

What I do see is CONFIG_S3C24XX_ADC, however it seems to be platform-specific, so I doubt you can just "select" it on ARCH_S3C64XX.

-next, it's in Ben Dook's current S3C tree.

Quoted 5 lines

Looking at the source tree, I also don't see ADC support for ARCH_S3C64XX at all, so I am curious if this patch was correct:

http://lists.lm-sensors.org/pipermail/lm-sensors/2010-January/027712.html

Quoted 7 lines

Maybe it's correct for some external tree and/or linux-next, but not Linus' current kernel.

So, Mark, I can't take your patch, and Ben, I'll remove the other patch from my tree right now. These changes should go together with the related platform changes. Carrying them in the hwmon tree when all the related changes are in another tree can only cause trouble.

OK, the hwmon patches should just lift straight on to Ben's current tree (the ADC generalisation is already there). I guess Ben might want your ack for the hwmon side?

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#3 lore raw

Re: [lm-sensors] [PATCH] hwmon: (s3c-hwmon): S3C hwmon requires

In reply to Mark Brown
Quoted 17 lines · Mark Brown
Quoted 4 lines · Jean Delvare

Which tree are you looking at? I can't find an option named S3C_ADC.

What I do see is CONFIG_S3C24XX_ADC, however it seems to be platform-specific, so I doubt you can just "select" it on ARCH_S3C64XX.

-next, it's in Ben Dook's current S3C tree.

Quoted 7 lines

Looking at the source tree, I also don't see ADC support for ARCH_S3C64XX at all, so I am curious if this patch was correct:

http://lists.lm-sensors.org/pipermail/lm-sensors/2010-January/027712.html

Maybe it's correct for some external tree and/or linux-next, but not Linus' current kernel.

Quoted 8 lines
Quoted 4 lines

So, Mark, I can't take your patch, and Ben, I'll remove the other patch from my tree right now. These changes should go together with the related platform changes. Carrying them in the hwmon tree when all the related changes are in another tree can only cause trouble.

OK, the hwmon patches should just lift straight on to Ben's current tree (the ADC generalisation is already there). I guess Ben might want your ack for the hwmon side?

I'm not the hwmon subsystem maintainer, and the changes are not related to this subsystem anyway, they are really platform integration changes rather than driver changes, but you and Ben have my ack for both patches if it makes you feel better ;)

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors