Skip to contentSkip to conversation

iio: stm32: fix adc/trigger link error

PATCH Applied Arnd Bergmann 4 participants 8 messages Sep 6, 2017 – Dec 2, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: stm32: fix adc/trigger link error

The ADC driver can trigger on either the timer or the lptim trigger, but it only uses a Kconfig 'select' statement to ensure that the first of the two is present. When the lptim trigger is enabled as a loadable module, and the adc driver is built-in, we now get a link error:

drivers/iio/adc/stm32-adc.o: In function `stm32_adc_get_trig_extsel':
stm32-adc.c:(.text+0x4e0): undefined reference to `is_stm32_lptim_trigger'

We could use a second 'select' statement and always have both trigger drivers enabled when the adc driver is, but it seems that the lptimer trigger was intentionally left optional, so it seems better to keep it that way.

This adds a hack to use 'IS_REACHABLE()' rather than 'IS_ENABLED()', which avoids the link error, but instead leads to the lptimer trigger not being used in the broken configuration. I've added a runtime warning for this case to help users figure out what they did wrong if this should ever be done by accident.

Fixes f0b638a7f6db ("iio: adc: stm32: add support for lptimer triggers")
---
 include/linux/iio/timer/stm32-lptim-trigger.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
include/linux/iio/timer/stm32-lptim-trigger.h +4 -1
index 34d59bfdce2d..464458d20b16 100644
@@ -16,11 +16,14 @@
 #define LPTIM2_OUT	"lptim2_out"
 #define LPTIM3_OUT	"lptim3_out"
 
-#if IS_ENABLED(CONFIG_IIO_STM32_LPTIMER_TRIGGER)
+#if IS_REACHABLE(CONFIG_IIO_STM32_LPTIMER_TRIGGER)
 bool is_stm32_lptim_trigger(struct iio_trigger *trig);
 #else
 static inline bool is_stm32_lptim_trigger(struct iio_trigger *trig)
 {
+#if IS_ENABLED(CONFIG_IIO_STM32_LPTIMER_TRIGGER)
+	pr_warn_once("stm32 lptim_trigger not linked in\n");
+#endif
 	return false;
 }
 #endif
Signature · 1 line
2.9.0
Tested-by on v1 1/1
#1 lore raw
Quoted 6 lines · Arnd Bergmann

The ADC driver can trigger on either the timer or the lptim trigger, but it only uses a Kconfig 'select' statement to ensure that the first of the two is present. When the lptim trigger is enabled as a loadable module, and the adc driver is built-in, we now get a link error:

Quoted 7 lines

drivers/iio/adc/stm32-adc.o: In function `stm32_adc_get_trig_extsel':
stm32-adc.c:(.text+0x4e0): undefined reference to `is_stm32_lptim_trigger'

We could use a second 'select' statement and always have both trigger drivers enabled when the adc driver is, but it seems that the lptimer trigger was intentionally left optional, so it seems better to keep it that way.

Hi Arnd,

This is correct, not all stm32 have this hardware.

Quoted 9 lines

This adds a hack to use 'IS_REACHABLE()' rather than 'IS_ENABLED()', which avoids the link error, but instead leads to the lptimer trigger not being used in the broken configuration. I've added a runtime warning for this case to help users figure out what they did wrong if this should ever be done by accident.

Fixes f0b638a7f6db ("iio: adc: stm32: add support for lptimer triggers")

Many thanks for the fix,
Best Regards,
Fabrice

Quoted 25 lines
---
 include/linux/iio/timer/stm32-lptim-trigger.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
include/linux/iio/timer/stm32-lptim-trigger.h +4 -1
index 34d59bfdce2d..464458d20b16 100644
@@ -16,11 +16,14 @@
 #define LPTIM2_OUT	"lptim2_out"
 #define LPTIM3_OUT	"lptim3_out"
 
-#if IS_ENABLED(CONFIG_IIO_STM32_LPTIMER_TRIGGER)
+#if IS_REACHABLE(CONFIG_IIO_STM32_LPTIMER_TRIGGER)
 bool is_stm32_lptim_trigger(struct iio_trigger *trig);
 #else
 static inline bool is_stm32_lptim_trigger(struct iio_trigger *trig)
 {
+#if IS_ENABLED(CONFIG_IIO_STM32_LPTIMER_TRIGGER)
+	pr_warn_once("stm32 lptim_trigger not linked in\n");
+#endif
 	return false;
 }
 #endif
maintainer
#2 lore raw
Quoted 24 lines · On Wed, 6 Sep 2017 18:16:33 +0200 Fabrice Gasnier <[email protected]>…
Quoted 6 lines · Arnd Bergmann

The ADC driver can trigger on either the timer or the lptim trigger, but it only uses a Kconfig 'select' statement to ensure that the first of the two is present. When the lptim trigger is enabled as a loadable module, and the adc driver is built-in, we now get a link error:

Quoted 7 lines

drivers/iio/adc/stm32-adc.o: In function `stm32_adc_get_trig_extsel':
stm32-adc.c:(.text+0x4e0): undefined reference to `is_stm32_lptim_trigger'

We could use a second 'select' statement and always have both trigger drivers enabled when the adc driver is, but it seems that the lptimer trigger was intentionally left optional, so it seems better to keep it that way.

Hi Arnd,

This is correct, not all stm32 have this hardware.

Quoted 7 lines

This adds a hack to use 'IS_REACHABLE()' rather than 'IS_ENABLED()', which avoids the link error, but instead leads to the lptimer trigger not being used in the broken configuration. I've added a runtime warning for this case to help users figure out what they did wrong if this should ever be done by accident.

Quoted 3 lines
Quoted 2 lines
Fixes f0b638a7f6db ("iio: adc: stm32: add support for lptimer triggers")

This may take me a few weeks to pick up. I don't want to pull the mfd immutable branch in just to have this fix, so this will get sorted after rc1 is out.

As ever, poke me if it looks like I've forgotten about it. Sorry for the delay!

Jonathan

Quoted 33 lines

Many thanks for the fix,
Best Regards,
Fabrice

Quoted 15 lines
---
 include/linux/iio/timer/stm32-lptim-trigger.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
include/linux/iio/timer/stm32-lptim-trigger.h +1 -1
index 34d59bfdce2d..464458d20b16 100644
@@ -16,11 +16,14 @@
 #define LPTIM2_OUT	"lptim2_out"
 #define LPTIM3_OUT	"lptim3_out"
 
-#if IS_ENABLED(CONFIG_IIO_STM32_LPTIMER_TRIGGER)
+#if IS_REACHABLE(CONFIG_IIO_STM32_LPTIMER_TRIGGER)

include/linux/iio/timer/stm32-lptim-trigger.h line 29

Quoted 10 lines
include/linux/iio/timer/stm32-lptim-trigger.h +3 -0
 bool is_stm32_lptim_trigger(struct iio_trigger *trig);
 #else
 static inline bool is_stm32_lptim_trigger(struct iio_trigger *trig)
 {
+#if IS_ENABLED(CONFIG_IIO_STM32_LPTIMER_TRIGGER)
+	pr_warn_once("stm32 lptim_trigger not linked in\n");
+#endif
 	return false;
 }
 #endif

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

#3 lore raw
Quoted 29 lines · Jonathan Cameron
Quoted 26 lines · On Wed, 6 Sep 2017 18:16:33 +0200 Fabrice Gasnier <[email protected]>…
Quoted 6 lines · Arnd Bergmann

The ADC driver can trigger on either the timer or the lptim trigger, but it only uses a Kconfig 'select' statement to ensure that the first of the two is present. When the lptim trigger is enabled as a loadable module, and the adc driver is built-in, we now get a link error:

Quoted 7 lines

drivers/iio/adc/stm32-adc.o: In function `stm32_adc_get_trig_extsel':
stm32-adc.c:(.text+0x4e0): undefined reference to `is_stm32_lptim_trigger'

We could use a second 'select' statement and always have both trigger drivers enabled when the adc driver is, but it seems that the lptimer trigger was intentionally left optional, so it seems better to keep it that way.

Hi Arnd,

This is correct, not all stm32 have this hardware.

Quoted 9 lines

This adds a hack to use 'IS_REACHABLE()' rather than 'IS_ENABLED()', which avoids the link error, but instead leads to the lptimer trigger not being used in the broken configuration. I've added a runtime warning for this case to help users figure out what they did wrong if this should ever be done by accident.

Fixes f0b638a7f6db ("iio: adc: stm32: add support for lptimer triggers")
Quoted 7 lines
Quoted 1 line

This may take me a few weeks to pick up. I don't want to pull the mfd immutable branch in just to have this fix, so this will get sorted after rc1 is out.

As ever, poke me if it looks like I've forgotten about it.

Hi Jonathan,

Di you apply this one?

Thanks,
Best Regards,
Fabrice

Quoted 38 lines

Sorry for the delay!

Jonathan

Quoted 33 lines

Many thanks for the fix,
Best Regards,
Fabrice

Quoted 15 lines
---
 include/linux/iio/timer/stm32-lptim-trigger.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
include/linux/iio/timer/stm32-lptim-trigger.h +1 -1
index 34d59bfdce2d..464458d20b16 100644
@@ -16,11 +16,14 @@
 #define LPTIM2_OUT	"lptim2_out"
 #define LPTIM3_OUT	"lptim3_out"
 
-#if IS_ENABLED(CONFIG_IIO_STM32_LPTIMER_TRIGGER)
+#if IS_REACHABLE(CONFIG_IIO_STM32_LPTIMER_TRIGGER)

include/linux/iio/timer/stm32-lptim-trigger.h line 29

Quoted 10 lines
include/linux/iio/timer/stm32-lptim-trigger.h +3 -0
 bool is_stm32_lptim_trigger(struct iio_trigger *trig);
 #else
 static inline bool is_stm32_lptim_trigger(struct iio_trigger *trig)
 {
+#if IS_ENABLED(CONFIG_IIO_STM32_LPTIMER_TRIGGER)
+	pr_warn_once("stm32 lptim_trigger not linked in\n");
+#endif
 	return false;
 }
 #endif

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

#4 lore raw
Quoted 36 lines · On Mon, 25 Sep 2017 11:54:06 +0200 Fabrice Gasnier <[email protected]>…
Quoted 35 lines · Jonathan Cameron
Quoted 24 lines · On Wed, 6 Sep 2017 18:16:33 +0200 Fabrice Gasnier <[email protected]>…
Quoted 6 lines · Arnd Bergmann

The ADC driver can trigger on either the timer or the lptim trigger, but it only uses a Kconfig 'select' statement to ensure that the first of the two is present. When the lptim trigger is enabled as a loadable module, and the adc driver is built-in, we now get a link error:

Quoted 7 lines

drivers/iio/adc/stm32-adc.o: In function `stm32_adc_get_trig_extsel':
stm32-adc.c:(.text+0x4e0): undefined reference to `is_stm32_lptim_trigger'

We could use a second 'select' statement and always have both trigger drivers enabled when the adc driver is, but it seems that the lptimer trigger was intentionally left optional, so it seems better to keep it that way.

Hi Arnd,

This is correct, not all stm32 have this hardware.

Quoted 7 lines

This adds a hack to use 'IS_REACHABLE()' rather than 'IS_ENABLED()', which avoids the link error, but instead leads to the lptimer trigger not being used in the broken configuration. I've added a runtime warning for this case to help users figure out what they did wrong if this should ever be done by accident.

Quoted 3 lines
Quoted 2 lines
Fixes f0b638a7f6db ("iio: adc: stm32: add support for lptimer triggers")

This may take me a few weeks to pick up. I don't want to pull the mfd immutable branch in just to have this fix, so this will get sorted after rc1 is out.

Quoted 5 lines
Quoted 1 line

As ever, poke me if it looks like I've forgotten about it.

Hi Jonathan,

Di you apply this one?

I think I still need to rebase my branch. Greg took my fixes pull this morning so I can fast forward that branch next time I'm on the right PC and then pick this up.

Thanks for the reminder.

Jonathan

Quoted 47 lines

Thanks,
Best Regards,
Fabrice

Quoted 38 lines

Sorry for the delay!

Jonathan

Quoted 33 lines

Many thanks for the fix,
Best Regards,
Fabrice

Quoted 15 lines
---
 include/linux/iio/timer/stm32-lptim-trigger.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
include/linux/iio/timer/stm32-lptim-trigger.h +1 -1
index 34d59bfdce2d..464458d20b16 100644
@@ -16,11 +16,14 @@
 #define LPTIM2_OUT	"lptim2_out"
 #define LPTIM3_OUT	"lptim3_out"
 
-#if IS_ENABLED(CONFIG_IIO_STM32_LPTIMER_TRIGGER)
+#if IS_REACHABLE(CONFIG_IIO_STM32_LPTIMER_TRIGGER)

include/linux/iio/timer/stm32-lptim-trigger.h line 29

Quoted 10 lines
include/linux/iio/timer/stm32-lptim-trigger.h +3 -0
 bool is_stm32_lptim_trigger(struct iio_trigger *trig);
 #else
 static inline bool is_stm32_lptim_trigger(struct iio_trigger *trig)
 {
+#if IS_ENABLED(CONFIG_IIO_STM32_LPTIMER_TRIGGER)
+	pr_warn_once("stm32 lptim_trigger not linked in\n");
+#endif
 	return false;
 }
 #endif

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

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

maintainer Applied
#5 lore raw
Quoted 43 lines · On Mon, 25 Sep 2017 11:16:04 +0100 Jonathan Cameron…
Quoted 40 lines · On Mon, 25 Sep 2017 11:54:06 +0200 Fabrice Gasnier <[email protected]>…
Quoted 29 lines · Jonathan Cameron
Quoted 26 lines · On Wed, 6 Sep 2017 18:16:33 +0200 Fabrice Gasnier <[email protected]>…
Quoted 6 lines · Arnd Bergmann

The ADC driver can trigger on either the timer or the lptim trigger, but it only uses a Kconfig 'select' statement to ensure that the first of the two is present. When the lptim trigger is enabled as a loadable module, and the adc driver is built-in, we now get a link error:

Quoted 7 lines

drivers/iio/adc/stm32-adc.o: In function `stm32_adc_get_trig_extsel':
stm32-adc.c:(.text+0x4e0): undefined reference to `is_stm32_lptim_trigger'

We could use a second 'select' statement and always have both trigger drivers enabled when the adc driver is, but it seems that the lptimer trigger was intentionally left optional, so it seems better to keep it that way.

Hi Arnd,

This is correct, not all stm32 have this hardware.

Quoted 9 lines

This adds a hack to use 'IS_REACHABLE()' rather than 'IS_ENABLED()', which avoids the link error, but instead leads to the lptimer trigger not being used in the broken configuration. I've added a runtime warning for this case to help users figure out what they did wrong if this should ever be done by accident.

Fixes f0b638a7f6db ("iio: adc: stm32: add support for lptimer triggers")
Quoted 7 lines
Quoted 1 line

This may take me a few weeks to pick up. I don't want to pull the mfd immutable branch in just to have this fix, so this will get sorted after rc1 is out.

As ever, poke me if it looks like I've forgotten about it.

Hi Jonathan,

Quoted 7 lines
Quoted 1 line

Di you apply this one?

I think I still need to rebase my branch. Greg took my fixes pull this morning so I can fast forward that branch next time I'm on the right PC and then pick this up.

Thanks for the reminder.

Applied to the fixes-togreg branch of iio.git.

Thanks,

Jonathan

Quoted 55 lines

Jonathan

Quoted 43 lines

Thanks,
Best Regards,
Fabrice

Quoted 38 lines

Sorry for the delay!

Jonathan

Quoted 33 lines

Many thanks for the fix,
Best Regards,
Fabrice

Quoted 15 lines
---
 include/linux/iio/timer/stm32-lptim-trigger.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
include/linux/iio/timer/stm32-lptim-trigger.h +1 -1
index 34d59bfdce2d..464458d20b16 100644
@@ -16,11 +16,14 @@
 #define LPTIM2_OUT	"lptim2_out"
 #define LPTIM3_OUT	"lptim3_out"
 
-#if IS_ENABLED(CONFIG_IIO_STM32_LPTIMER_TRIGGER)
+#if IS_REACHABLE(CONFIG_IIO_STM32_LPTIMER_TRIGGER)

include/linux/iio/timer/stm32-lptim-trigger.h line 29

Quoted 10 lines
include/linux/iio/timer/stm32-lptim-trigger.h +3 -0
 bool is_stm32_lptim_trigger(struct iio_trigger *trig);
 #else
 static inline bool is_stm32_lptim_trigger(struct iio_trigger *trig)
 {
+#if IS_ENABLED(CONFIG_IIO_STM32_LPTIMER_TRIGGER)
+	pr_warn_once("stm32 lptim_trigger not linked in\n");
+#endif
 	return false;
 }
 #endif

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

Quoted 4 lines

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

#6 lore raw
Quoted 48 lines · Jonathan Cameron
Quoted 45 lines · On Mon, 25 Sep 2017 11:16:04 +0100 Jonathan Cameron…
Quoted 41 lines · On Mon, 25 Sep 2017 11:54:06 +0200 Fabrice Gasnier <[email protected]>…
Quoted 29 lines · Jonathan Cameron
Quoted 26 lines · On Wed, 6 Sep 2017 18:16:33 +0200 Fabrice Gasnier <[email protected]>…
Quoted 6 lines · Arnd Bergmann

The ADC driver can trigger on either the timer or the lptim trigger, but it only uses a Kconfig 'select' statement to ensure that the first of the two is present. When the lptim trigger is enabled as a loadable module, and the adc driver is built-in, we now get a link error:

Quoted 7 lines

drivers/iio/adc/stm32-adc.o: In function `stm32_adc_get_trig_extsel':
stm32-adc.c:(.text+0x4e0): undefined reference to `is_stm32_lptim_trigger'

We could use a second 'select' statement and always have both trigger drivers enabled when the adc driver is, but it seems that the lptimer trigger was intentionally left optional, so it seems better to keep it that way.

Hi Arnd,

This is correct, not all stm32 have this hardware.

Quoted 9 lines

This adds a hack to use 'IS_REACHABLE()' rather than 'IS_ENABLED()', which avoids the link error, but instead leads to the lptimer trigger not being used in the broken configuration. I've added a runtime warning for this case to help users figure out what they did wrong if this should ever be done by accident.

Fixes f0b638a7f6db ("iio: adc: stm32: add support for lptimer triggers")
Quoted 7 lines
Quoted 1 line

This may take me a few weeks to pick up. I don't want to pull the mfd immutable branch in just to have this fix, so this will get sorted after rc1 is out.

As ever, poke me if it looks like I've forgotten about it.

Hi Jonathan,

Di you apply this one?

Quoted 7 lines
Quoted 5 lines

I think I still need to rebase my branch. Greg took my fixes pull this morning so I can fast forward that branch next time I'm on the right PC and then pick this up.

Thanks for the reminder.

Applied to the fixes-togreg branch of iio.git.

Hi Jonathan,

Sorry to raise this again. Maybe I missed something, but I can't find this fix on recent tag (4.15-rc1). Do you know if this patch from Arnd is on its way in ?

Please kindly let me know.
BR,
Fabrice

Quoted 60 lines

Thanks,

Jonathan

Quoted 55 lines

Jonathan

Quoted 43 lines

Thanks,
Best Regards,
Fabrice

Quoted 38 lines

Sorry for the delay!

Jonathan

Quoted 33 lines

Many thanks for the fix,
Best Regards,
Fabrice

Quoted 15 lines
---
 include/linux/iio/timer/stm32-lptim-trigger.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
include/linux/iio/timer/stm32-lptim-trigger.h +1 -1
index 34d59bfdce2d..464458d20b16 100644
@@ -16,11 +16,14 @@
 #define LPTIM2_OUT	"lptim2_out"
 #define LPTIM3_OUT	"lptim3_out"
 
-#if IS_ENABLED(CONFIG_IIO_STM32_LPTIMER_TRIGGER)
+#if IS_REACHABLE(CONFIG_IIO_STM32_LPTIMER_TRIGGER)

include/linux/iio/timer/stm32-lptim-trigger.h line 29

Quoted 10 lines
include/linux/iio/timer/stm32-lptim-trigger.h +3 -0
 bool is_stm32_lptim_trigger(struct iio_trigger *trig);
 #else
 static inline bool is_stm32_lptim_trigger(struct iio_trigger *trig)
 {
+#if IS_ENABLED(CONFIG_IIO_STM32_LPTIMER_TRIGGER)
+	pr_warn_once("stm32 lptim_trigger not linked in\n");
+#endif
 	return false;
 }
 #endif

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

Quoted 4 lines

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

maintainer
#7 lore raw
Quoted 55 lines · On Mon, 27 Nov 2017 10:09:47 +0100 Fabrice Gasnier <[email protected]>…
Quoted 54 lines · Jonathan Cameron
Quoted 50 lines · On Mon, 25 Sep 2017 11:16:04 +0100 Jonathan Cameron…
Quoted 36 lines · On Mon, 25 Sep 2017 11:54:06 +0200 Fabrice Gasnier <[email protected]>…
Quoted 35 lines · Jonathan Cameron
Quoted 24 lines · On Wed, 6 Sep 2017 18:16:33 +0200 Fabrice Gasnier <[email protected]>…
Quoted 6 lines · Arnd Bergmann

The ADC driver can trigger on either the timer or the lptim trigger, but it only uses a Kconfig 'select' statement to ensure that the first of the two is present. When the lptim trigger is enabled as a loadable module, and the adc driver is built-in, we now get a link error:

Quoted 7 lines

drivers/iio/adc/stm32-adc.o: In function `stm32_adc_get_trig_extsel':
stm32-adc.c:(.text+0x4e0): undefined reference to `is_stm32_lptim_trigger'

We could use a second 'select' statement and always have both trigger drivers enabled when the adc driver is, but it seems that the lptimer trigger was intentionally left optional, so it seems better to keep it that way.

Hi Arnd,

This is correct, not all stm32 have this hardware.

Quoted 7 lines

This adds a hack to use 'IS_REACHABLE()' rather than 'IS_ENABLED()', which avoids the link error, but instead leads to the lptimer trigger not being used in the broken configuration. I've added a runtime warning for this case to help users figure out what they did wrong if this should ever be done by accident.

Quoted 3 lines
Quoted 2 lines
Fixes f0b638a7f6db ("iio: adc: stm32: add support for lptimer triggers")

This may take me a few weeks to pick up. I don't want to pull the mfd immutable branch in just to have this fix, so this will get sorted after rc1 is out.

Quoted 5 lines
Quoted 1 line

As ever, poke me if it looks like I've forgotten about it.

Hi Jonathan,

Di you apply this one?

I think I still need to rebase my branch. Greg took my fixes pull this morning so I can fast forward that branch next time I'm on the right PC and then pick this up.

Thanks for the reminder.

Quoted 7 lines
Quoted 1 line

Applied to the fixes-togreg branch of iio.git.

Hi Jonathan,

Sorry to raise this again. Maybe I missed something, but I can't find this fix on recent tag (4.15-rc1). Do you know if this patch from Arnd is on its way in ?

Hi Fabrice,

You are absolutely correct to raise this (and please do so if similar seems to have happened in the future).

I dropped this one somehow - now applied to my fixes-togreg branch of iio.git and definitely pushed out.

Sorry about that. Will hopefully get a pull request out in the next day or so.

Thanks,

Jonathan

Quoted 68 lines

Please kindly let me know.
BR,
Fabrice

Quoted 60 lines

Thanks,

Jonathan

Quoted 55 lines

Jonathan

Quoted 43 lines

Thanks,
Best Regards,
Fabrice

Quoted 38 lines

Sorry for the delay!

Jonathan

Quoted 33 lines

Many thanks for the fix,
Best Regards,
Fabrice

Quoted 15 lines
---
 include/linux/iio/timer/stm32-lptim-trigger.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
include/linux/iio/timer/stm32-lptim-trigger.h +1 -1
index 34d59bfdce2d..464458d20b16 100644
@@ -16,11 +16,14 @@
 #define LPTIM2_OUT	"lptim2_out"
 #define LPTIM3_OUT	"lptim3_out"
 
-#if IS_ENABLED(CONFIG_IIO_STM32_LPTIMER_TRIGGER)
+#if IS_REACHABLE(CONFIG_IIO_STM32_LPTIMER_TRIGGER)

include/linux/iio/timer/stm32-lptim-trigger.h line 29

Quoted 10 lines
include/linux/iio/timer/stm32-lptim-trigger.h +3 -0
 bool is_stm32_lptim_trigger(struct iio_trigger *trig);
 #else
 static inline bool is_stm32_lptim_trigger(struct iio_trigger *trig)
 {
+#if IS_ENABLED(CONFIG_IIO_STM32_LPTIMER_TRIGGER)
+	pr_warn_once("stm32 lptim_trigger not linked in\n");
+#endif
 	return false;
 }
 #endif

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

Quoted 4 lines

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

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