All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] IIO: stm32: Remove quadrature related functions from trigger driver
@ 2019-05-07  9:12 ` Benjamin Gaignard
  0 siblings, 0 replies; 22+ messages in thread
From: Benjamin Gaignard @ 2019-05-07  9:12 UTC (permalink / raw)
  To: jic23, knaack.h, lars, pmeerw, fabrice.gasnier, vilhelm.gray
  Cc: alexandre.torgue, linux-iio, linux-stm32, linux-arm-kernel,
	linux-kernel, Benjamin Gaignard

Quadrature feature is now hosted on it own framework.
Remove quadrature related code from stm32-trigger driver to avoid
code duplication and simplify the ABI.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
---
 .../ABI/testing/sysfs-bus-iio-timer-stm32          | 23 ------
 drivers/iio/trigger/stm32-timer-trigger.c          | 84 ----------------------
 2 files changed, 107 deletions(-)

diff --git a/Documentation/ABI/testing/sysfs-bus-iio-timer-stm32 b/Documentation/ABI/testing/sysfs-bus-iio-timer-stm32
index 161c147d3c40..b7259234ad70 100644
--- a/Documentation/ABI/testing/sysfs-bus-iio-timer-stm32
+++ b/Documentation/ABI/testing/sysfs-bus-iio-timer-stm32
@@ -91,29 +91,6 @@ Description:
 		When counting down the counter start from preset value
 		and fire event when reach 0.
 
-What:		/sys/bus/iio/devices/iio:deviceX/in_count_quadrature_mode_available
-KernelVersion:	4.12
-Contact:	benjamin.gaignard@st.com
-Description:
-		Reading returns the list possible quadrature modes.
-
-What:		/sys/bus/iio/devices/iio:deviceX/in_count0_quadrature_mode
-KernelVersion:	4.12
-Contact:	benjamin.gaignard@st.com
-Description:
-		Configure the device counter quadrature modes:
-		channel_A:
-			Encoder A input servers as the count input and B as
-			the UP/DOWN direction control input.
-
-		channel_B:
-			Encoder B input serves as the count input and A as
-			the UP/DOWN direction control input.
-
-		quadrature:
-			Encoder A and B inputs are mixed to get direction
-			and count with a scale of 0.25.
-
 What:		/sys/bus/iio/devices/iio:deviceX/in_count_enable_mode_available
 KernelVersion:	4.12
 Contact:	benjamin.gaignard@st.com
diff --git a/drivers/iio/trigger/stm32-timer-trigger.c b/drivers/iio/trigger/stm32-timer-trigger.c
index ccf1ce653b25..a5dfe65cd9b9 100644
--- a/drivers/iio/trigger/stm32-timer-trigger.c
+++ b/drivers/iio/trigger/stm32-timer-trigger.c
@@ -608,86 +608,6 @@ static const struct iio_enum stm32_enable_mode_enum = {
 	.get = stm32_get_enable_mode
 };
 
-static const char *const stm32_quadrature_modes[] = {
-	"channel_A",
-	"channel_B",
-	"quadrature",
-};
-
-static int stm32_set_quadrature_mode(struct iio_dev *indio_dev,
-				     const struct iio_chan_spec *chan,
-				     unsigned int mode)
-{
-	struct stm32_timer_trigger *priv = iio_priv(indio_dev);
-
-	regmap_update_bits(priv->regmap, TIM_SMCR, TIM_SMCR_SMS, mode + 1);
-
-	return 0;
-}
-
-static int stm32_get_quadrature_mode(struct iio_dev *indio_dev,
-				     const struct iio_chan_spec *chan)
-{
-	struct stm32_timer_trigger *priv = iio_priv(indio_dev);
-	u32 smcr;
-	int mode;
-
-	regmap_read(priv->regmap, TIM_SMCR, &smcr);
-	mode = (smcr & TIM_SMCR_SMS) - 1;
-	if ((mode < 0) || (mode > ARRAY_SIZE(stm32_quadrature_modes)))
-		return -EINVAL;
-
-	return mode;
-}
-
-static const struct iio_enum stm32_quadrature_mode_enum = {
-	.items = stm32_quadrature_modes,
-	.num_items = ARRAY_SIZE(stm32_quadrature_modes),
-	.set = stm32_set_quadrature_mode,
-	.get = stm32_get_quadrature_mode
-};
-
-static const char *const stm32_count_direction_states[] = {
-	"up",
-	"down"
-};
-
-static int stm32_set_count_direction(struct iio_dev *indio_dev,
-				     const struct iio_chan_spec *chan,
-				     unsigned int dir)
-{
-	struct stm32_timer_trigger *priv = iio_priv(indio_dev);
-	u32 val;
-	int mode;
-
-	/* In encoder mode, direction is RO (given by TI1/TI2 signals) */
-	regmap_read(priv->regmap, TIM_SMCR, &val);
-	mode = (val & TIM_SMCR_SMS) - 1;
-	if ((mode >= 0) || (mode < ARRAY_SIZE(stm32_quadrature_modes)))
-		return -EBUSY;
-
-	return regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_DIR,
-				  dir ? TIM_CR1_DIR : 0);
-}
-
-static int stm32_get_count_direction(struct iio_dev *indio_dev,
-				     const struct iio_chan_spec *chan)
-{
-	struct stm32_timer_trigger *priv = iio_priv(indio_dev);
-	u32 cr1;
-
-	regmap_read(priv->regmap, TIM_CR1, &cr1);
-
-	return ((cr1 & TIM_CR1_DIR) ? 1 : 0);
-}
-
-static const struct iio_enum stm32_count_direction_enum = {
-	.items = stm32_count_direction_states,
-	.num_items = ARRAY_SIZE(stm32_count_direction_states),
-	.set = stm32_set_count_direction,
-	.get = stm32_get_count_direction
-};
-
 static ssize_t stm32_count_get_preset(struct iio_dev *indio_dev,
 				      uintptr_t private,
 				      const struct iio_chan_spec *chan,
@@ -728,10 +648,6 @@ static const struct iio_chan_spec_ext_info stm32_trigger_count_info[] = {
 		.read = stm32_count_get_preset,
 		.write = stm32_count_set_preset
 	},
-	IIO_ENUM("count_direction", IIO_SEPARATE, &stm32_count_direction_enum),
-	IIO_ENUM_AVAILABLE("count_direction", &stm32_count_direction_enum),
-	IIO_ENUM("quadrature_mode", IIO_SEPARATE, &stm32_quadrature_mode_enum),
-	IIO_ENUM_AVAILABLE("quadrature_mode", &stm32_quadrature_mode_enum),
 	IIO_ENUM("enable_mode", IIO_SEPARATE, &stm32_enable_mode_enum),
 	IIO_ENUM_AVAILABLE("enable_mode", &stm32_enable_mode_enum),
 	IIO_ENUM("trigger_mode", IIO_SEPARATE, &stm32_trigger_mode_enum),
-- 
2.15.0


^ permalink raw reply related	[flat|nested] 22+ messages in thread

* [PATCH] IIO: stm32: Remove quadrature related functions from trigger driver
@ 2019-05-07  9:12 ` Benjamin Gaignard
  0 siblings, 0 replies; 22+ messages in thread
From: Benjamin Gaignard @ 2019-05-07  9:12 UTC (permalink / raw)
  To: jic23, knaack.h, lars, pmeerw, fabrice.gasnier, vilhelm.gray
  Cc: Benjamin Gaignard, linux-iio, linux-kernel, linux-stm32,
	linux-arm-kernel, alexandre.torgue

Quadrature feature is now hosted on it own framework.
Remove quadrature related code from stm32-trigger driver to avoid
code duplication and simplify the ABI.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
---
 .../ABI/testing/sysfs-bus-iio-timer-stm32          | 23 ------
 drivers/iio/trigger/stm32-timer-trigger.c          | 84 ----------------------
 2 files changed, 107 deletions(-)

diff --git a/Documentation/ABI/testing/sysfs-bus-iio-timer-stm32 b/Documentation/ABI/testing/sysfs-bus-iio-timer-stm32
index 161c147d3c40..b7259234ad70 100644
--- a/Documentation/ABI/testing/sysfs-bus-iio-timer-stm32
+++ b/Documentation/ABI/testing/sysfs-bus-iio-timer-stm32
@@ -91,29 +91,6 @@ Description:
 		When counting down the counter start from preset value
 		and fire event when reach 0.
 
-What:		/sys/bus/iio/devices/iio:deviceX/in_count_quadrature_mode_available
-KernelVersion:	4.12
-Contact:	benjamin.gaignard@st.com
-Description:
-		Reading returns the list possible quadrature modes.
-
-What:		/sys/bus/iio/devices/iio:deviceX/in_count0_quadrature_mode
-KernelVersion:	4.12
-Contact:	benjamin.gaignard@st.com
-Description:
-		Configure the device counter quadrature modes:
-		channel_A:
-			Encoder A input servers as the count input and B as
-			the UP/DOWN direction control input.
-
-		channel_B:
-			Encoder B input serves as the count input and A as
-			the UP/DOWN direction control input.
-
-		quadrature:
-			Encoder A and B inputs are mixed to get direction
-			and count with a scale of 0.25.
-
 What:		/sys/bus/iio/devices/iio:deviceX/in_count_enable_mode_available
 KernelVersion:	4.12
 Contact:	benjamin.gaignard@st.com
diff --git a/drivers/iio/trigger/stm32-timer-trigger.c b/drivers/iio/trigger/stm32-timer-trigger.c
index ccf1ce653b25..a5dfe65cd9b9 100644
--- a/drivers/iio/trigger/stm32-timer-trigger.c
+++ b/drivers/iio/trigger/stm32-timer-trigger.c
@@ -608,86 +608,6 @@ static const struct iio_enum stm32_enable_mode_enum = {
 	.get = stm32_get_enable_mode
 };
 
-static const char *const stm32_quadrature_modes[] = {
-	"channel_A",
-	"channel_B",
-	"quadrature",
-};
-
-static int stm32_set_quadrature_mode(struct iio_dev *indio_dev,
-				     const struct iio_chan_spec *chan,
-				     unsigned int mode)
-{
-	struct stm32_timer_trigger *priv = iio_priv(indio_dev);
-
-	regmap_update_bits(priv->regmap, TIM_SMCR, TIM_SMCR_SMS, mode + 1);
-
-	return 0;
-}
-
-static int stm32_get_quadrature_mode(struct iio_dev *indio_dev,
-				     const struct iio_chan_spec *chan)
-{
-	struct stm32_timer_trigger *priv = iio_priv(indio_dev);
-	u32 smcr;
-	int mode;
-
-	regmap_read(priv->regmap, TIM_SMCR, &smcr);
-	mode = (smcr & TIM_SMCR_SMS) - 1;
-	if ((mode < 0) || (mode > ARRAY_SIZE(stm32_quadrature_modes)))
-		return -EINVAL;
-
-	return mode;
-}
-
-static const struct iio_enum stm32_quadrature_mode_enum = {
-	.items = stm32_quadrature_modes,
-	.num_items = ARRAY_SIZE(stm32_quadrature_modes),
-	.set = stm32_set_quadrature_mode,
-	.get = stm32_get_quadrature_mode
-};
-
-static const char *const stm32_count_direction_states[] = {
-	"up",
-	"down"
-};
-
-static int stm32_set_count_direction(struct iio_dev *indio_dev,
-				     const struct iio_chan_spec *chan,
-				     unsigned int dir)
-{
-	struct stm32_timer_trigger *priv = iio_priv(indio_dev);
-	u32 val;
-	int mode;
-
-	/* In encoder mode, direction is RO (given by TI1/TI2 signals) */
-	regmap_read(priv->regmap, TIM_SMCR, &val);
-	mode = (val & TIM_SMCR_SMS) - 1;
-	if ((mode >= 0) || (mode < ARRAY_SIZE(stm32_quadrature_modes)))
-		return -EBUSY;
-
-	return regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_DIR,
-				  dir ? TIM_CR1_DIR : 0);
-}
-
-static int stm32_get_count_direction(struct iio_dev *indio_dev,
-				     const struct iio_chan_spec *chan)
-{
-	struct stm32_timer_trigger *priv = iio_priv(indio_dev);
-	u32 cr1;
-
-	regmap_read(priv->regmap, TIM_CR1, &cr1);
-
-	return ((cr1 & TIM_CR1_DIR) ? 1 : 0);
-}
-
-static const struct iio_enum stm32_count_direction_enum = {
-	.items = stm32_count_direction_states,
-	.num_items = ARRAY_SIZE(stm32_count_direction_states),
-	.set = stm32_set_count_direction,
-	.get = stm32_get_count_direction
-};
-
 static ssize_t stm32_count_get_preset(struct iio_dev *indio_dev,
 				      uintptr_t private,
 				      const struct iio_chan_spec *chan,
@@ -728,10 +648,6 @@ static const struct iio_chan_spec_ext_info stm32_trigger_count_info[] = {
 		.read = stm32_count_get_preset,
 		.write = stm32_count_set_preset
 	},
-	IIO_ENUM("count_direction", IIO_SEPARATE, &stm32_count_direction_enum),
-	IIO_ENUM_AVAILABLE("count_direction", &stm32_count_direction_enum),
-	IIO_ENUM("quadrature_mode", IIO_SEPARATE, &stm32_quadrature_mode_enum),
-	IIO_ENUM_AVAILABLE("quadrature_mode", &stm32_quadrature_mode_enum),
 	IIO_ENUM("enable_mode", IIO_SEPARATE, &stm32_enable_mode_enum),
 	IIO_ENUM_AVAILABLE("enable_mode", &stm32_enable_mode_enum),
 	IIO_ENUM("trigger_mode", IIO_SEPARATE, &stm32_trigger_mode_enum),
-- 
2.15.0


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

^ permalink raw reply related	[flat|nested] 22+ messages in thread

* Re: [PATCH] IIO: stm32: Remove quadrature related functions from trigger driver
  2019-05-07  9:12 ` Benjamin Gaignard
@ 2019-05-07 10:18   ` William Breathitt Gray
  -1 siblings, 0 replies; 22+ messages in thread
From: William Breathitt Gray @ 2019-05-07 10:18 UTC (permalink / raw)
  To: Benjamin Gaignard
  Cc: jic23, knaack.h, lars, pmeerw, fabrice.gasnier, alexandre.torgue,
	linux-iio, linux-stm32, linux-arm-kernel, linux-kernel

On Tue, May 07, 2019 at 11:12:24AM +0200, Benjamin Gaignard wrote:
> Quadrature feature is now hosted on it own framework.
> Remove quadrature related code from stm32-trigger driver to avoid
> code duplication and simplify the ABI.
> 
> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>

Although this functionality is now provided by the Counter subsystem, we
should keep the IIO Counter interface for this driver intact since
existing user applications may depend on it; this is the same reason why
the IIO Counter code in the 104-QUAD-8 device driver was not removed
despite moving to the Counter subsystem.

Once user applications have had enough time to migrate to the Generic
Counter interface, we can consider removing the deprecated IIO Counter
interface.

William Breathitt Gray

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH] IIO: stm32: Remove quadrature related functions from trigger driver
@ 2019-05-07 10:18   ` William Breathitt Gray
  0 siblings, 0 replies; 22+ messages in thread
From: William Breathitt Gray @ 2019-05-07 10:18 UTC (permalink / raw)
  To: Benjamin Gaignard
  Cc: lars, alexandre.torgue, linux-iio, linux-kernel,
	linux-arm-kernel, pmeerw, knaack.h, fabrice.gasnier, linux-stm32,
	jic23

On Tue, May 07, 2019 at 11:12:24AM +0200, Benjamin Gaignard wrote:
> Quadrature feature is now hosted on it own framework.
> Remove quadrature related code from stm32-trigger driver to avoid
> code duplication and simplify the ABI.
> 
> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>

Although this functionality is now provided by the Counter subsystem, we
should keep the IIO Counter interface for this driver intact since
existing user applications may depend on it; this is the same reason why
the IIO Counter code in the 104-QUAD-8 device driver was not removed
despite moving to the Counter subsystem.

Once user applications have had enough time to migrate to the Generic
Counter interface, we can consider removing the deprecated IIO Counter
interface.

William Breathitt Gray

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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH] IIO: stm32: Remove quadrature related functions from trigger driver
  2019-05-07 10:18   ` William Breathitt Gray
@ 2019-05-07 12:37     ` Benjamin Gaignard
  -1 siblings, 0 replies; 22+ messages in thread
From: Benjamin Gaignard @ 2019-05-07 12:37 UTC (permalink / raw)
  To: William Breathitt Gray
  Cc: Benjamin Gaignard, Lars-Peter Clausen, Alexandre Torgue,
	linux-iio, Linux Kernel Mailing List, Linux ARM,
	Peter Meerwald-Stadler, Hartmut Knaack, Fabrice Gasnier,
	linux-stm32, Jonathan Cameron

Le mar. 7 mai 2019 à 12:19, William Breathitt Gray
<vilhelm.gray@gmail.com> a écrit :
>
> On Tue, May 07, 2019 at 11:12:24AM +0200, Benjamin Gaignard wrote:
> > Quadrature feature is now hosted on it own framework.
> > Remove quadrature related code from stm32-trigger driver to avoid
> > code duplication and simplify the ABI.
> >
> > Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
>
> Although this functionality is now provided by the Counter subsystem, we
> should keep the IIO Counter interface for this driver intact since
> existing user applications may depend on it; this is the same reason why
> the IIO Counter code in the 104-QUAD-8 device driver was not removed
> despite moving to the Counter subsystem.
>
> Once user applications have had enough time to migrate to the Generic
> Counter interface, we can consider removing the deprecated IIO Counter
> interface.

Hi William,

This SoC is not yet in production so their is no legacy on the old interface
and I would like to avoid to create one.

Benjamin

>
> William Breathitt Gray
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH] IIO: stm32: Remove quadrature related functions from trigger driver
@ 2019-05-07 12:37     ` Benjamin Gaignard
  0 siblings, 0 replies; 22+ messages in thread
From: Benjamin Gaignard @ 2019-05-07 12:37 UTC (permalink / raw)
  To: William Breathitt Gray
  Cc: Lars-Peter Clausen, Benjamin Gaignard, linux-iio,
	Linux Kernel Mailing List, Jonathan Cameron,
	Peter Meerwald-Stadler, Hartmut Knaack, Fabrice Gasnier,
	linux-stm32, Linux ARM, Alexandre Torgue

Le mar. 7 mai 2019 à 12:19, William Breathitt Gray
<vilhelm.gray@gmail.com> a écrit :
>
> On Tue, May 07, 2019 at 11:12:24AM +0200, Benjamin Gaignard wrote:
> > Quadrature feature is now hosted on it own framework.
> > Remove quadrature related code from stm32-trigger driver to avoid
> > code duplication and simplify the ABI.
> >
> > Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
>
> Although this functionality is now provided by the Counter subsystem, we
> should keep the IIO Counter interface for this driver intact since
> existing user applications may depend on it; this is the same reason why
> the IIO Counter code in the 104-QUAD-8 device driver was not removed
> despite moving to the Counter subsystem.
>
> Once user applications have had enough time to migrate to the Generic
> Counter interface, we can consider removing the deprecated IIO Counter
> interface.

Hi William,

This SoC is not yet in production so their is no legacy on the old interface
and I would like to avoid to create one.

Benjamin

>
> William Breathitt Gray
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH] IIO: stm32: Remove quadrature related functions from trigger driver
  2019-05-07 12:37     ` Benjamin Gaignard
@ 2019-05-08  7:34       ` William Breathitt Gray
  -1 siblings, 0 replies; 22+ messages in thread
From: William Breathitt Gray @ 2019-05-08  7:34 UTC (permalink / raw)
  To: Benjamin Gaignard
  Cc: Benjamin Gaignard, Lars-Peter Clausen, Alexandre Torgue,
	linux-iio, Linux Kernel Mailing List, Linux ARM,
	Peter Meerwald-Stadler, Hartmut Knaack, Fabrice Gasnier,
	linux-stm32, Jonathan Cameron

On Tue, May 07, 2019 at 02:37:07PM +0200, Benjamin Gaignard wrote:
> Le mar. 7 mai 2019 à 12:19, William Breathitt Gray
> <vilhelm.gray@gmail.com> a écrit :
> >
> > On Tue, May 07, 2019 at 11:12:24AM +0200, Benjamin Gaignard wrote:
> > > Quadrature feature is now hosted on it own framework.
> > > Remove quadrature related code from stm32-trigger driver to avoid
> > > code duplication and simplify the ABI.
> > >
> > > Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
> >
> > Although this functionality is now provided by the Counter subsystem, we
> > should keep the IIO Counter interface for this driver intact since
> > existing user applications may depend on it; this is the same reason why
> > the IIO Counter code in the 104-QUAD-8 device driver was not removed
> > despite moving to the Counter subsystem.
> >
> > Once user applications have had enough time to migrate to the Generic
> > Counter interface, we can consider removing the deprecated IIO Counter
> > interface.
> 
> Hi William,
> 
> This SoC is not yet in production so their is no legacy on the old interface
> and I would like to avoid to create one.
> 
> Benjamin

Ah, I see what you mean, this driver is for future devices. Do the
earlier STM32 H7 series devices have a quadrature feature as well, or is
this functionality only available with the new devices?

William Breathitt Gray

> 
> >
> > William Breathitt Gray
> >
> > _______________________________________________
> > linux-arm-kernel mailing list
> > linux-arm-kernel@lists.infradead.org
> > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH] IIO: stm32: Remove quadrature related functions from trigger driver
@ 2019-05-08  7:34       ` William Breathitt Gray
  0 siblings, 0 replies; 22+ messages in thread
From: William Breathitt Gray @ 2019-05-08  7:34 UTC (permalink / raw)
  To: Benjamin Gaignard
  Cc: Lars-Peter Clausen, Benjamin Gaignard, linux-iio,
	Linux Kernel Mailing List, Jonathan Cameron,
	Peter Meerwald-Stadler, Hartmut Knaack, Fabrice Gasnier,
	linux-stm32, Linux ARM, Alexandre Torgue

On Tue, May 07, 2019 at 02:37:07PM +0200, Benjamin Gaignard wrote:
> Le mar. 7 mai 2019 à 12:19, William Breathitt Gray
> <vilhelm.gray@gmail.com> a écrit :
> >
> > On Tue, May 07, 2019 at 11:12:24AM +0200, Benjamin Gaignard wrote:
> > > Quadrature feature is now hosted on it own framework.
> > > Remove quadrature related code from stm32-trigger driver to avoid
> > > code duplication and simplify the ABI.
> > >
> > > Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
> >
> > Although this functionality is now provided by the Counter subsystem, we
> > should keep the IIO Counter interface for this driver intact since
> > existing user applications may depend on it; this is the same reason why
> > the IIO Counter code in the 104-QUAD-8 device driver was not removed
> > despite moving to the Counter subsystem.
> >
> > Once user applications have had enough time to migrate to the Generic
> > Counter interface, we can consider removing the deprecated IIO Counter
> > interface.
> 
> Hi William,
> 
> This SoC is not yet in production so their is no legacy on the old interface
> and I would like to avoid to create one.
> 
> Benjamin

Ah, I see what you mean, this driver is for future devices. Do the
earlier STM32 H7 series devices have a quadrature feature as well, or is
this functionality only available with the new devices?

William Breathitt Gray

> 
> >
> > William Breathitt Gray
> >
> > _______________________________________________
> > linux-arm-kernel mailing list
> > linux-arm-kernel@lists.infradead.org
> > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH] IIO: stm32: Remove quadrature related functions from trigger driver
  2019-05-08  7:34       ` William Breathitt Gray
@ 2019-05-09  7:40         ` Benjamin GAIGNARD
  -1 siblings, 0 replies; 22+ messages in thread
From: Benjamin GAIGNARD @ 2019-05-09  7:40 UTC (permalink / raw)
  To: William Breathitt Gray, Benjamin Gaignard
  Cc: Lars-Peter Clausen, Alexandre TORGUE, linux-iio,
	Linux Kernel Mailing List, Linux ARM, Peter Meerwald-Stadler,
	Hartmut Knaack, Fabrice GASNIER, linux-stm32, Jonathan Cameron


On 5/8/19 9:34 AM, William Breathitt Gray wrote:
> On Tue, May 07, 2019 at 02:37:07PM +0200, Benjamin Gaignard wrote:
>> Le mar. 7 mai 2019 à 12:19, William Breathitt Gray
>> <vilhelm.gray@gmail.com> a écrit :
>>> On Tue, May 07, 2019 at 11:12:24AM +0200, Benjamin Gaignard wrote:
>>>> Quadrature feature is now hosted on it own framework.
>>>> Remove quadrature related code from stm32-trigger driver to avoid
>>>> code duplication and simplify the ABI.
>>>>
>>>> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
>>> Although this functionality is now provided by the Counter subsystem, we
>>> should keep the IIO Counter interface for this driver intact since
>>> existing user applications may depend on it; this is the same reason why
>>> the IIO Counter code in the 104-QUAD-8 device driver was not removed
>>> despite moving to the Counter subsystem.
>>>
>>> Once user applications have had enough time to migrate to the Generic
>>> Counter interface, we can consider removing the deprecated IIO Counter
>>> interface.
>> Hi William,
>>
>> This SoC is not yet in production so their is no legacy on the old interface
>> and I would like to avoid to create one.
>>
>> Benjamin
> Ah, I see what you mean, this driver is for future devices. Do the
> earlier STM32 H7 series devices have a quadrature feature as well, or is
> this functionality only available with the new devices?

It is available on STM32 H7 but I have never see any Linux product on 
those SOC

and even less using quadratic encoder ;-)

Benjamin

>
> William Breathitt Gray
>
>>> William Breathitt Gray
>>>
>>> _______________________________________________
>>> linux-arm-kernel mailing list
>>> linux-arm-kernel@lists.infradead.org
>>> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH] IIO: stm32: Remove quadrature related functions from trigger driver
@ 2019-05-09  7:40         ` Benjamin GAIGNARD
  0 siblings, 0 replies; 22+ messages in thread
From: Benjamin GAIGNARD @ 2019-05-09  7:40 UTC (permalink / raw)
  To: William Breathitt Gray, Benjamin Gaignard
  Cc: Lars-Peter Clausen, Alexandre TORGUE, linux-iio,
	Linux Kernel Mailing List, Jonathan Cameron,
	Peter Meerwald-Stadler, Hartmut Knaack, Fabrice GASNIER,
	linux-stm32, Linux ARM


On 5/8/19 9:34 AM, William Breathitt Gray wrote:
> On Tue, May 07, 2019 at 02:37:07PM +0200, Benjamin Gaignard wrote:
>> Le mar. 7 mai 2019 à 12:19, William Breathitt Gray
>> <vilhelm.gray@gmail.com> a écrit :
>>> On Tue, May 07, 2019 at 11:12:24AM +0200, Benjamin Gaignard wrote:
>>>> Quadrature feature is now hosted on it own framework.
>>>> Remove quadrature related code from stm32-trigger driver to avoid
>>>> code duplication and simplify the ABI.
>>>>
>>>> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
>>> Although this functionality is now provided by the Counter subsystem, we
>>> should keep the IIO Counter interface for this driver intact since
>>> existing user applications may depend on it; this is the same reason why
>>> the IIO Counter code in the 104-QUAD-8 device driver was not removed
>>> despite moving to the Counter subsystem.
>>>
>>> Once user applications have had enough time to migrate to the Generic
>>> Counter interface, we can consider removing the deprecated IIO Counter
>>> interface.
>> Hi William,
>>
>> This SoC is not yet in production so their is no legacy on the old interface
>> and I would like to avoid to create one.
>>
>> Benjamin
> Ah, I see what you mean, this driver is for future devices. Do the
> earlier STM32 H7 series devices have a quadrature feature as well, or is
> this functionality only available with the new devices?

It is available on STM32 H7 but I have never see any Linux product on 
those SOC

and even less using quadratic encoder ;-)

Benjamin

>
> William Breathitt Gray
>
>>> William Breathitt Gray
>>>
>>> _______________________________________________
>>> linux-arm-kernel mailing list
>>> linux-arm-kernel@lists.infradead.org
>>> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH] IIO: stm32: Remove quadrature related functions from trigger driver
  2019-05-07  9:12 ` Benjamin Gaignard
@ 2019-07-11 11:50   ` William Breathitt Gray
  -1 siblings, 0 replies; 22+ messages in thread
From: William Breathitt Gray @ 2019-07-11 11:50 UTC (permalink / raw)
  To: Benjamin Gaignard, jic23
  Cc: knaack.h, lars, pmeerw, fabrice.gasnier, alexandre.torgue,
	linux-iio, linux-stm32, linux-arm-kernel, linux-kernel

On Tue, May 07, 2019 at 11:12:24AM +0200, Benjamin Gaignard wrote:
> Quadrature feature is now hosted on it own framework.
> Remove quadrature related code from stm32-trigger driver to avoid
> code duplication and simplify the ABI.
> 
> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>

What is the status of this patch? Are there any objections currently for
its inclusion?

William Breathitt Gray

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH] IIO: stm32: Remove quadrature related functions from trigger driver
@ 2019-07-11 11:50   ` William Breathitt Gray
  0 siblings, 0 replies; 22+ messages in thread
From: William Breathitt Gray @ 2019-07-11 11:50 UTC (permalink / raw)
  To: Benjamin Gaignard, jic23
  Cc: lars, alexandre.torgue, linux-iio, linux-kernel, pmeerw,
	knaack.h, fabrice.gasnier, linux-stm32, linux-arm-kernel

On Tue, May 07, 2019 at 11:12:24AM +0200, Benjamin Gaignard wrote:
> Quadrature feature is now hosted on it own framework.
> Remove quadrature related code from stm32-trigger driver to avoid
> code duplication and simplify the ABI.
> 
> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>

What is the status of this patch? Are there any objections currently for
its inclusion?

William Breathitt Gray

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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH] IIO: stm32: Remove quadrature related functions from trigger driver
  2019-07-11 11:50   ` William Breathitt Gray
@ 2019-07-11 12:12     ` Benjamin Gaignard
  -1 siblings, 0 replies; 22+ messages in thread
From: Benjamin Gaignard @ 2019-07-11 12:12 UTC (permalink / raw)
  To: William Breathitt Gray
  Cc: Benjamin Gaignard, Jonathan Cameron, Lars-Peter Clausen,
	Alexandre Torgue, linux-iio, Linux Kernel Mailing List,
	Peter Meerwald-Stadler, Hartmut Knaack, Fabrice Gasnier,
	linux-stm32, Linux ARM

Le jeu. 11 juil. 2019 à 13:51, William Breathitt Gray
<vilhelm.gray@gmail.com> a écrit :
>
> On Tue, May 07, 2019 at 11:12:24AM +0200, Benjamin Gaignard wrote:
> > Quadrature feature is now hosted on it own framework.
> > Remove quadrature related code from stm32-trigger driver to avoid
> > code duplication and simplify the ABI.
> >
> > Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
>
> What is the status of this patch? Are there any objections currently for
> its inclusion?

You were the only one asking for more details about it :-)
If you agree I think that Jonathan can merge it.

Benjamin
>
> William Breathitt Gray
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH] IIO: stm32: Remove quadrature related functions from trigger driver
@ 2019-07-11 12:12     ` Benjamin Gaignard
  0 siblings, 0 replies; 22+ messages in thread
From: Benjamin Gaignard @ 2019-07-11 12:12 UTC (permalink / raw)
  To: William Breathitt Gray
  Cc: Lars-Peter Clausen, Benjamin Gaignard, linux-iio,
	Linux Kernel Mailing List, Linux ARM, Peter Meerwald-Stadler,
	Hartmut Knaack, Fabrice Gasnier, linux-stm32, Jonathan Cameron,
	Alexandre Torgue

Le jeu. 11 juil. 2019 à 13:51, William Breathitt Gray
<vilhelm.gray@gmail.com> a écrit :
>
> On Tue, May 07, 2019 at 11:12:24AM +0200, Benjamin Gaignard wrote:
> > Quadrature feature is now hosted on it own framework.
> > Remove quadrature related code from stm32-trigger driver to avoid
> > code duplication and simplify the ABI.
> >
> > Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
>
> What is the status of this patch? Are there any objections currently for
> its inclusion?

You were the only one asking for more details about it :-)
If you agree I think that Jonathan can merge it.

Benjamin
>
> William Breathitt Gray
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH] IIO: stm32: Remove quadrature related functions from trigger driver
  2019-07-11 12:12     ` Benjamin Gaignard
@ 2019-07-11 12:16       ` William Breathitt Gray
  -1 siblings, 0 replies; 22+ messages in thread
From: William Breathitt Gray @ 2019-07-11 12:16 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: Benjamin Gaignard, Benjamin Gaignard, Lars-Peter Clausen,
	Alexandre Torgue, linux-iio, Linux Kernel Mailing List,
	Peter Meerwald-Stadler, Hartmut Knaack, Fabrice Gasnier,
	linux-stm32, Linux ARM

On Thu, Jul 11, 2019 at 02:12:27PM +0200, Benjamin Gaignard wrote:
> Le jeu. 11 juil. 2019 à 13:51, William Breathitt Gray
> <vilhelm.gray@gmail.com> a écrit :
> >
> > On Tue, May 07, 2019 at 11:12:24AM +0200, Benjamin Gaignard wrote:
> > > Quadrature feature is now hosted on it own framework.
> > > Remove quadrature related code from stm32-trigger driver to avoid
> > > code duplication and simplify the ABI.
> > >
> > > Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
> >
> > What is the status of this patch? Are there any objections currently for
> > its inclusion?
> 
> You were the only one asking for more details about it :-)
> If you agree I think that Jonathan can merge it.
> 
> Benjamin
> >
> > William Breathitt Gray
> >
> > _______________________________________________
> > linux-arm-kernel mailing list
> > linux-arm-kernel@lists.infradead.org
> > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

Yes, Jonathan please merge this if you have no objections, I hadn't
realized I was delaying it.

Thank you,

William Breathitt Gray

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH] IIO: stm32: Remove quadrature related functions from trigger driver
@ 2019-07-11 12:16       ` William Breathitt Gray
  0 siblings, 0 replies; 22+ messages in thread
From: William Breathitt Gray @ 2019-07-11 12:16 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: Lars-Peter Clausen, Benjamin Gaignard, linux-iio,
	Peter Meerwald-Stadler, Linux Kernel Mailing List,
	Benjamin Gaignard, Hartmut Knaack, Fabrice Gasnier, linux-stm32,
	Linux ARM, Alexandre Torgue

On Thu, Jul 11, 2019 at 02:12:27PM +0200, Benjamin Gaignard wrote:
> Le jeu. 11 juil. 2019 à 13:51, William Breathitt Gray
> <vilhelm.gray@gmail.com> a écrit :
> >
> > On Tue, May 07, 2019 at 11:12:24AM +0200, Benjamin Gaignard wrote:
> > > Quadrature feature is now hosted on it own framework.
> > > Remove quadrature related code from stm32-trigger driver to avoid
> > > code duplication and simplify the ABI.
> > >
> > > Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
> >
> > What is the status of this patch? Are there any objections currently for
> > its inclusion?
> 
> You were the only one asking for more details about it :-)
> If you agree I think that Jonathan can merge it.
> 
> Benjamin
> >
> > William Breathitt Gray
> >
> > _______________________________________________
> > linux-arm-kernel mailing list
> > linux-arm-kernel@lists.infradead.org
> > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

Yes, Jonathan please merge this if you have no objections, I hadn't
realized I was delaying it.

Thank you,

William Breathitt Gray

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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH] IIO: stm32: Remove quadrature related functions from trigger driver
  2019-07-11 12:16       ` William Breathitt Gray
@ 2019-07-14 10:09         ` Jonathan Cameron
  -1 siblings, 0 replies; 22+ messages in thread
From: Jonathan Cameron @ 2019-07-14 10:09 UTC (permalink / raw)
  To: William Breathitt Gray
  Cc: Benjamin Gaignard, Benjamin Gaignard, Lars-Peter Clausen,
	Alexandre Torgue, linux-iio, Linux Kernel Mailing List,
	Peter Meerwald-Stadler, Hartmut Knaack, Fabrice Gasnier,
	linux-stm32, Linux ARM

On Thu, 11 Jul 2019 21:16:20 +0900
William Breathitt Gray <vilhelm.gray@gmail.com> wrote:

> On Thu, Jul 11, 2019 at 02:12:27PM +0200, Benjamin Gaignard wrote:
> > Le jeu. 11 juil. 2019 à 13:51, William Breathitt Gray
> > <vilhelm.gray@gmail.com> a écrit :  
> > >
> > > On Tue, May 07, 2019 at 11:12:24AM +0200, Benjamin Gaignard wrote:  
> > > > Quadrature feature is now hosted on it own framework.
> > > > Remove quadrature related code from stm32-trigger driver to avoid
> > > > code duplication and simplify the ABI.
> > > >
> > > > Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>  
> > >
> > > What is the status of this patch? Are there any objections currently for
> > > its inclusion?  
> > 
> > You were the only one asking for more details about it :-)
> > If you agree I think that Jonathan can merge it.
> > 
> > Benjamin  
> > >
> > > William Breathitt Gray
> > >
> > > _______________________________________________
> > > linux-arm-kernel mailing list
> > > linux-arm-kernel@lists.infradead.org
> > > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel  
> 
> Yes, Jonathan please merge this if you have no objections, I hadn't
> realized I was delaying it.
> 
> Thank you,
> 
> William Breathitt Gray
One last thing...  This seems to be a userspace ABI change.  What
are our potential issues with users of this ABI?

It's not that costly to keep the code, though dropping the docs or
putting a depreciated note in them is probably a good idea.  Hence
I'm not totally convinced the risk of a regression is worth it.

If we think it's the sort of change no one will notice, then
fair enough we'll give it a go and cross our fingers.

Thanks,

Jonathan



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH] IIO: stm32: Remove quadrature related functions from trigger driver
@ 2019-07-14 10:09         ` Jonathan Cameron
  0 siblings, 0 replies; 22+ messages in thread
From: Jonathan Cameron @ 2019-07-14 10:09 UTC (permalink / raw)
  To: William Breathitt Gray
  Cc: Lars-Peter Clausen, Benjamin Gaignard, linux-iio,
	Peter Meerwald-Stadler, Linux Kernel Mailing List,
	Benjamin Gaignard, Hartmut Knaack, Fabrice Gasnier, linux-stm32,
	Linux ARM, Alexandre Torgue

On Thu, 11 Jul 2019 21:16:20 +0900
William Breathitt Gray <vilhelm.gray@gmail.com> wrote:

> On Thu, Jul 11, 2019 at 02:12:27PM +0200, Benjamin Gaignard wrote:
> > Le jeu. 11 juil. 2019 à 13:51, William Breathitt Gray
> > <vilhelm.gray@gmail.com> a écrit :  
> > >
> > > On Tue, May 07, 2019 at 11:12:24AM +0200, Benjamin Gaignard wrote:  
> > > > Quadrature feature is now hosted on it own framework.
> > > > Remove quadrature related code from stm32-trigger driver to avoid
> > > > code duplication and simplify the ABI.
> > > >
> > > > Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>  
> > >
> > > What is the status of this patch? Are there any objections currently for
> > > its inclusion?  
> > 
> > You were the only one asking for more details about it :-)
> > If you agree I think that Jonathan can merge it.
> > 
> > Benjamin  
> > >
> > > William Breathitt Gray
> > >
> > > _______________________________________________
> > > linux-arm-kernel mailing list
> > > linux-arm-kernel@lists.infradead.org
> > > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel  
> 
> Yes, Jonathan please merge this if you have no objections, I hadn't
> realized I was delaying it.
> 
> Thank you,
> 
> William Breathitt Gray
One last thing...  This seems to be a userspace ABI change.  What
are our potential issues with users of this ABI?

It's not that costly to keep the code, though dropping the docs or
putting a depreciated note in them is probably a good idea.  Hence
I'm not totally convinced the risk of a regression is worth it.

If we think it's the sort of change no one will notice, then
fair enough we'll give it a go and cross our fingers.

Thanks,

Jonathan



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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH] IIO: stm32: Remove quadrature related functions from trigger driver
  2019-07-14 10:09         ` Jonathan Cameron
@ 2019-07-14 15:32           ` Benjamin GAIGNARD
  -1 siblings, 0 replies; 22+ messages in thread
From: Benjamin GAIGNARD @ 2019-07-14 15:32 UTC (permalink / raw)
  To: Jonathan Cameron, William Breathitt Gray
  Cc: Benjamin Gaignard, Lars-Peter Clausen, Alexandre TORGUE,
	linux-iio, Linux Kernel Mailing List, Peter Meerwald-Stadler,
	Hartmut Knaack, Fabrice GASNIER, linux-stm32, Linux ARM


On 7/14/19 12:09 PM, Jonathan Cameron wrote:
> On Thu, 11 Jul 2019 21:16:20 +0900
> William Breathitt Gray <vilhelm.gray@gmail.com> wrote:
>
>> On Thu, Jul 11, 2019 at 02:12:27PM +0200, Benjamin Gaignard wrote:
>>> Le jeu. 11 juil. 2019 à 13:51, William Breathitt Gray
>>> <vilhelm.gray@gmail.com> a écrit :
>>>> On Tue, May 07, 2019 at 11:12:24AM +0200, Benjamin Gaignard wrote:
>>>>> Quadrature feature is now hosted on it own framework.
>>>>> Remove quadrature related code from stm32-trigger driver to avoid
>>>>> code duplication and simplify the ABI.
>>>>>
>>>>> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
>>>> What is the status of this patch? Are there any objections currently for
>>>> its inclusion?
>>> You were the only one asking for more details about it :-)
>>> If you agree I think that Jonathan can merge it.
>>>
>>> Benjamin
>>>> William Breathitt Gray
>>>>
>>>> _______________________________________________
>>>> linux-arm-kernel mailing list
>>>> linux-arm-kernel@lists.infradead.org
>>>> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>> Yes, Jonathan please merge this if you have no objections, I hadn't
>> realized I was delaying it.
>>
>> Thank you,
>>
>> William Breathitt Gray
> One last thing...  This seems to be a userspace ABI change.  What
> are our potential issues with users of this ABI?
>
> It's not that costly to keep the code, though dropping the docs or
> putting a depreciated note in them is probably a good idea.  Hence
> I'm not totally convinced the risk of a regression is worth it.

As far I know nobody use this interface yet for me there is no risk to 
remove this code.

Benjamin

>
> If we think it's the sort of change no one will notice, then
> fair enough we'll give it a go and cross our fingers.
>
> Thanks,
>
> Jonathan
>
>

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH] IIO: stm32: Remove quadrature related functions from trigger driver
@ 2019-07-14 15:32           ` Benjamin GAIGNARD
  0 siblings, 0 replies; 22+ messages in thread
From: Benjamin GAIGNARD @ 2019-07-14 15:32 UTC (permalink / raw)
  To: Jonathan Cameron, William Breathitt Gray
  Cc: Benjamin Gaignard, Lars-Peter Clausen, Alexandre TORGUE,
	linux-iio, Linux Kernel Mailing List, Peter Meerwald-Stadler,
	Hartmut Knaack, Fabrice GASNIER, linux-stm32, Linux ARM


On 7/14/19 12:09 PM, Jonathan Cameron wrote:
> On Thu, 11 Jul 2019 21:16:20 +0900
> William Breathitt Gray <vilhelm.gray@gmail.com> wrote:
>
>> On Thu, Jul 11, 2019 at 02:12:27PM +0200, Benjamin Gaignard wrote:
>>> Le jeu. 11 juil. 2019 à 13:51, William Breathitt Gray
>>> <vilhelm.gray@gmail.com> a écrit :
>>>> On Tue, May 07, 2019 at 11:12:24AM +0200, Benjamin Gaignard wrote:
>>>>> Quadrature feature is now hosted on it own framework.
>>>>> Remove quadrature related code from stm32-trigger driver to avoid
>>>>> code duplication and simplify the ABI.
>>>>>
>>>>> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
>>>> What is the status of this patch? Are there any objections currently for
>>>> its inclusion?
>>> You were the only one asking for more details about it :-)
>>> If you agree I think that Jonathan can merge it.
>>>
>>> Benjamin
>>>> William Breathitt Gray
>>>>
>>>> _______________________________________________
>>>> linux-arm-kernel mailing list
>>>> linux-arm-kernel@lists.infradead.org
>>>> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>> Yes, Jonathan please merge this if you have no objections, I hadn't
>> realized I was delaying it.
>>
>> Thank you,
>>
>> William Breathitt Gray
> One last thing...  This seems to be a userspace ABI change.  What
> are our potential issues with users of this ABI?
>
> It's not that costly to keep the code, though dropping the docs or
> putting a depreciated note in them is probably a good idea.  Hence
> I'm not totally convinced the risk of a regression is worth it.

As far I know nobody use this interface yet for me there is no risk to 
remove this code.

Benjamin

>
> If we think it's the sort of change no one will notice, then
> fair enough we'll give it a go and cross our fingers.
>
> Thanks,
>
> Jonathan
>
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH] IIO: stm32: Remove quadrature related functions from trigger driver
  2019-07-14 15:32           ` Benjamin GAIGNARD
@ 2019-07-14 17:23             ` Jonathan Cameron
  -1 siblings, 0 replies; 22+ messages in thread
From: Jonathan Cameron @ 2019-07-14 17:23 UTC (permalink / raw)
  To: Benjamin GAIGNARD
  Cc: William Breathitt Gray, Benjamin Gaignard, Lars-Peter Clausen,
	Alexandre TORGUE, linux-iio, Linux Kernel Mailing List,
	Peter Meerwald-Stadler, Hartmut Knaack, Fabrice GASNIER,
	linux-stm32, Linux ARM

On Sun, 14 Jul 2019 15:32:33 +0000
Benjamin GAIGNARD <benjamin.gaignard@st.com> wrote:

> On 7/14/19 12:09 PM, Jonathan Cameron wrote:
> > On Thu, 11 Jul 2019 21:16:20 +0900
> > William Breathitt Gray <vilhelm.gray@gmail.com> wrote:
> >  
> >> On Thu, Jul 11, 2019 at 02:12:27PM +0200, Benjamin Gaignard wrote:  
> >>> Le jeu. 11 juil. 2019 à 13:51, William Breathitt Gray
> >>> <vilhelm.gray@gmail.com> a écrit :  
> >>>> On Tue, May 07, 2019 at 11:12:24AM +0200, Benjamin Gaignard wrote:  
> >>>>> Quadrature feature is now hosted on it own framework.
> >>>>> Remove quadrature related code from stm32-trigger driver to avoid
> >>>>> code duplication and simplify the ABI.
> >>>>>
> >>>>> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>  
> >>>> What is the status of this patch? Are there any objections currently for
> >>>> its inclusion?  
> >>> You were the only one asking for more details about it :-)
> >>> If you agree I think that Jonathan can merge it.
> >>>
> >>> Benjamin  
> >>>> William Breathitt Gray
> >>>>
> >>>> _______________________________________________
> >>>> linux-arm-kernel mailing list
> >>>> linux-arm-kernel@lists.infradead.org
> >>>> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel  
> >> Yes, Jonathan please merge this if you have no objections, I hadn't
> >> realized I was delaying it.
> >>
> >> Thank you,
> >>
> >> William Breathitt Gray  
> > One last thing...  This seems to be a userspace ABI change.  What
> > are our potential issues with users of this ABI?
> >
> > It's not that costly to keep the code, though dropping the docs or
> > putting a depreciated note in them is probably a good idea.  Hence
> > I'm not totally convinced the risk of a regression is worth it.  
> 
> As far I know nobody use this interface yet for me there is no risk to 
> remove this code.
> 
> Benjamin
Hope you are right :)

Applied to the togreg branch of iio.git and pushed out as testing for
the autobuilders to play with it.

Thanks,

Jonathan

> 
> >
> > If we think it's the sort of change no one will notice, then
> > fair enough we'll give it a go and cross our fingers.
> >
> > Thanks,
> >
> > Jonathan
> >
>   


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [PATCH] IIO: stm32: Remove quadrature related functions from trigger driver
@ 2019-07-14 17:23             ` Jonathan Cameron
  0 siblings, 0 replies; 22+ messages in thread
From: Jonathan Cameron @ 2019-07-14 17:23 UTC (permalink / raw)
  To: Benjamin GAIGNARD
  Cc: Lars-Peter Clausen, Alexandre TORGUE, linux-iio,
	Peter Meerwald-Stadler, Linux Kernel Mailing List,
	William Breathitt Gray, Benjamin Gaignard, Hartmut Knaack,
	Fabrice GASNIER, linux-stm32, Linux ARM

On Sun, 14 Jul 2019 15:32:33 +0000
Benjamin GAIGNARD <benjamin.gaignard@st.com> wrote:

> On 7/14/19 12:09 PM, Jonathan Cameron wrote:
> > On Thu, 11 Jul 2019 21:16:20 +0900
> > William Breathitt Gray <vilhelm.gray@gmail.com> wrote:
> >  
> >> On Thu, Jul 11, 2019 at 02:12:27PM +0200, Benjamin Gaignard wrote:  
> >>> Le jeu. 11 juil. 2019 à 13:51, William Breathitt Gray
> >>> <vilhelm.gray@gmail.com> a écrit :  
> >>>> On Tue, May 07, 2019 at 11:12:24AM +0200, Benjamin Gaignard wrote:  
> >>>>> Quadrature feature is now hosted on it own framework.
> >>>>> Remove quadrature related code from stm32-trigger driver to avoid
> >>>>> code duplication and simplify the ABI.
> >>>>>
> >>>>> Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>  
> >>>> What is the status of this patch? Are there any objections currently for
> >>>> its inclusion?  
> >>> You were the only one asking for more details about it :-)
> >>> If you agree I think that Jonathan can merge it.
> >>>
> >>> Benjamin  
> >>>> William Breathitt Gray
> >>>>
> >>>> _______________________________________________
> >>>> linux-arm-kernel mailing list
> >>>> linux-arm-kernel@lists.infradead.org
> >>>> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel  
> >> Yes, Jonathan please merge this if you have no objections, I hadn't
> >> realized I was delaying it.
> >>
> >> Thank you,
> >>
> >> William Breathitt Gray  
> > One last thing...  This seems to be a userspace ABI change.  What
> > are our potential issues with users of this ABI?
> >
> > It's not that costly to keep the code, though dropping the docs or
> > putting a depreciated note in them is probably a good idea.  Hence
> > I'm not totally convinced the risk of a regression is worth it.  
> 
> As far I know nobody use this interface yet for me there is no risk to 
> remove this code.
> 
> Benjamin
Hope you are right :)

Applied to the togreg branch of iio.git and pushed out as testing for
the autobuilders to play with it.

Thanks,

Jonathan

> 
> >
> > If we think it's the sort of change no one will notice, then
> > fair enough we'll give it a go and cross our fingers.
> >
> > Thanks,
> >
> > Jonathan
> >
>   


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

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2019-07-14 17:23 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-07  9:12 [PATCH] IIO: stm32: Remove quadrature related functions from trigger driver Benjamin Gaignard
2019-05-07  9:12 ` Benjamin Gaignard
2019-05-07 10:18 ` William Breathitt Gray
2019-05-07 10:18   ` William Breathitt Gray
2019-05-07 12:37   ` Benjamin Gaignard
2019-05-07 12:37     ` Benjamin Gaignard
2019-05-08  7:34     ` William Breathitt Gray
2019-05-08  7:34       ` William Breathitt Gray
2019-05-09  7:40       ` Benjamin GAIGNARD
2019-05-09  7:40         ` Benjamin GAIGNARD
2019-07-11 11:50 ` William Breathitt Gray
2019-07-11 11:50   ` William Breathitt Gray
2019-07-11 12:12   ` Benjamin Gaignard
2019-07-11 12:12     ` Benjamin Gaignard
2019-07-11 12:16     ` William Breathitt Gray
2019-07-11 12:16       ` William Breathitt Gray
2019-07-14 10:09       ` Jonathan Cameron
2019-07-14 10:09         ` Jonathan Cameron
2019-07-14 15:32         ` Benjamin GAIGNARD
2019-07-14 15:32           ` Benjamin GAIGNARD
2019-07-14 17:23           ` Jonathan Cameron
2019-07-14 17:23             ` Jonathan Cameron

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.