* [PATCH 0/2] iio: st_sensors: fix data-ready pin configuration
@ 2017-08-11 19:44 Lorenzo Bianconi
2017-08-11 19:44 ` [PATCH 1/2] iio: pressure: st_pressure: fix drdy configuration for LPS22HB and LPS25H Lorenzo Bianconi
2017-08-11 19:44 ` [PATCH 2/2] iio: accel: st_accel: fix data-ready line configuration Lorenzo Bianconi
0 siblings, 2 replies; 5+ messages in thread
From: Lorenzo Bianconi @ 2017-08-11 19:44 UTC (permalink / raw)
To: jic23; +Cc: linux-iio, gregor.boirie, denis.ciocca, lorenzo.bianconi
Lorenzo Bianconi (2):
iio: pressure: st_pressure: fix drdy configuration for LPS22HB and
LPS25H
iio: accel: st_accel: fix data-ready line configuration
drivers/iio/accel/st_accel_core.c | 4 ++--
drivers/iio/pressure/st_pressure_core.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
--
2.14.0
^ permalink raw reply [flat|nested] 5+ messages in thread* [PATCH 1/2] iio: pressure: st_pressure: fix drdy configuration for LPS22HB and LPS25H 2017-08-11 19:44 [PATCH 0/2] iio: st_sensors: fix data-ready pin configuration Lorenzo Bianconi @ 2017-08-11 19:44 ` Lorenzo Bianconi 2017-08-12 12:48 ` Jonathan Cameron 2017-08-11 19:44 ` [PATCH 2/2] iio: accel: st_accel: fix data-ready line configuration Lorenzo Bianconi 1 sibling, 1 reply; 5+ messages in thread From: Lorenzo Bianconi @ 2017-08-11 19:44 UTC (permalink / raw) To: jic23; +Cc: linux-iio, gregor.boirie, denis.ciocca, lorenzo.bianconi Remove int2 configuration parameter for LPS22HB and LPS25H since these devices export just int1 as data-ready line Fixes: 931878405b86 (iio:pressure: Add support for LPS25H pressure sensor) Fixes: e039e2f5b4da (iio:st_pressure:initial lps22hb sensor support) Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com> --- drivers/iio/pressure/st_pressure_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/pressure/st_pressure_core.c b/drivers/iio/pressure/st_pressure_core.c index aa61ec15c139..c84eea73b3ae 100644 --- a/drivers/iio/pressure/st_pressure_core.c +++ b/drivers/iio/pressure/st_pressure_core.c @@ -390,7 +390,7 @@ static const struct st_sensor_settings st_press_sensors_settings[] = { .drdy_irq = { .addr = 0x23, .mask_int1 = 0x01, - .mask_int2 = 0x10, + .mask_int2 = 0x00, .addr_ihl = 0x22, .mask_ihl = 0x80, .addr_od = 0x22, @@ -449,7 +449,7 @@ static const struct st_sensor_settings st_press_sensors_settings[] = { .drdy_irq = { .addr = 0x12, .mask_int1 = 0x04, - .mask_int2 = 0x08, + .mask_int2 = 0x00, .addr_ihl = 0x12, .mask_ihl = 0x80, .addr_od = 0x12, -- 2.14.0 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] iio: pressure: st_pressure: fix drdy configuration for LPS22HB and LPS25H 2017-08-11 19:44 ` [PATCH 1/2] iio: pressure: st_pressure: fix drdy configuration for LPS22HB and LPS25H Lorenzo Bianconi @ 2017-08-12 12:48 ` Jonathan Cameron 0 siblings, 0 replies; 5+ messages in thread From: Jonathan Cameron @ 2017-08-12 12:48 UTC (permalink / raw) To: Lorenzo Bianconi; +Cc: linux-iio, gregor.boirie, denis.ciocca, lorenzo.bianconi On Fri, 11 Aug 2017 21:44:13 +0200 Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> wrote: > Remove int2 configuration parameter for LPS22HB and LPS25H since > these devices export just int1 as data-ready line > > Fixes: 931878405b86 (iio:pressure: Add support for LPS25H pressure sensor) > Fixes: e039e2f5b4da (iio:st_pressure:initial lps22hb sensor support) > Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com> While this is clearly a fix, as I understand it you would also need to have some crazy configuration to make this a problem so I am going to take it for the next merge window rather than quicker. Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it. Thanks, Jonathan > --- > drivers/iio/pressure/st_pressure_core.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/iio/pressure/st_pressure_core.c b/drivers/iio/pressure/st_pressure_core.c > index aa61ec15c139..c84eea73b3ae 100644 > --- a/drivers/iio/pressure/st_pressure_core.c > +++ b/drivers/iio/pressure/st_pressure_core.c > @@ -390,7 +390,7 @@ static const struct st_sensor_settings st_press_sensors_settings[] = { > .drdy_irq = { > .addr = 0x23, > .mask_int1 = 0x01, > - .mask_int2 = 0x10, > + .mask_int2 = 0x00, > .addr_ihl = 0x22, > .mask_ihl = 0x80, > .addr_od = 0x22, > @@ -449,7 +449,7 @@ static const struct st_sensor_settings st_press_sensors_settings[] = { > .drdy_irq = { > .addr = 0x12, > .mask_int1 = 0x04, > - .mask_int2 = 0x08, > + .mask_int2 = 0x00, > .addr_ihl = 0x12, > .mask_ihl = 0x80, > .addr_od = 0x12, ^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 2/2] iio: accel: st_accel: fix data-ready line configuration 2017-08-11 19:44 [PATCH 0/2] iio: st_sensors: fix data-ready pin configuration Lorenzo Bianconi 2017-08-11 19:44 ` [PATCH 1/2] iio: pressure: st_pressure: fix drdy configuration for LPS22HB and LPS25H Lorenzo Bianconi @ 2017-08-11 19:44 ` Lorenzo Bianconi 2017-08-12 12:48 ` Jonathan Cameron 1 sibling, 1 reply; 5+ messages in thread From: Lorenzo Bianconi @ 2017-08-11 19:44 UTC (permalink / raw) To: jic23; +Cc: linux-iio, gregor.boirie, denis.ciocca, lorenzo.bianconi Remove int2 configuration parameter for LIS3DH, LSM303DLHC, LSM330D, LSM330DL, LSM330DLC, LSM303AGR, LIS2DH12 and LNG2DM since these devices export just int1 as data-ready line Fixes: 23cde4d65cc7 (iio: Added platform data to select the DRDY pin) Fixes: dcdb0a78cab3 (iio: accel: st_accel: add support to lng2dm) Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com> --- drivers/iio/accel/st_accel_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/accel/st_accel_core.c b/drivers/iio/accel/st_accel_core.c index 1e0eea110fa9..752856b3a849 100644 --- a/drivers/iio/accel/st_accel_core.c +++ b/drivers/iio/accel/st_accel_core.c @@ -161,7 +161,7 @@ static const struct st_sensor_settings st_accel_sensors_settings[] = { .drdy_irq = { .addr = 0x22, .mask_int1 = 0x10, - .mask_int2 = 0x08, + .mask_int2 = 0x00, .addr_ihl = 0x25, .mask_ihl = 0x02, .addr_stat_drdy = ST_SENSORS_DEFAULT_STAT_ADDR, @@ -637,7 +637,7 @@ static const struct st_sensor_settings st_accel_sensors_settings[] = { .drdy_irq = { .addr = 0x22, .mask_int1 = 0x10, - .mask_int2 = 0x08, + .mask_int2 = 0x00, .addr_ihl = 0x25, .mask_ihl = 0x02, .addr_stat_drdy = ST_SENSORS_DEFAULT_STAT_ADDR, -- 2.14.0 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] iio: accel: st_accel: fix data-ready line configuration 2017-08-11 19:44 ` [PATCH 2/2] iio: accel: st_accel: fix data-ready line configuration Lorenzo Bianconi @ 2017-08-12 12:48 ` Jonathan Cameron 0 siblings, 0 replies; 5+ messages in thread From: Jonathan Cameron @ 2017-08-12 12:48 UTC (permalink / raw) To: Lorenzo Bianconi; +Cc: linux-iio, gregor.boirie, denis.ciocca, lorenzo.bianconi On Fri, 11 Aug 2017 21:44:14 +0200 Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> wrote: > Remove int2 configuration parameter for LIS3DH, LSM303DLHC, LSM330D, > LSM330DL, LSM330DLC, LSM303AGR, LIS2DH12 and LNG2DM since these devices > export just int1 as data-ready line > > Fixes: 23cde4d65cc7 (iio: Added platform data to select the DRDY pin) > Fixes: dcdb0a78cab3 (iio: accel: st_accel: add support to lng2dm) > Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com> Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it. Thanks, Jonathan > --- > drivers/iio/accel/st_accel_core.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/iio/accel/st_accel_core.c b/drivers/iio/accel/st_accel_core.c > index 1e0eea110fa9..752856b3a849 100644 > --- a/drivers/iio/accel/st_accel_core.c > +++ b/drivers/iio/accel/st_accel_core.c > @@ -161,7 +161,7 @@ static const struct st_sensor_settings st_accel_sensors_settings[] = { > .drdy_irq = { > .addr = 0x22, > .mask_int1 = 0x10, > - .mask_int2 = 0x08, > + .mask_int2 = 0x00, > .addr_ihl = 0x25, > .mask_ihl = 0x02, > .addr_stat_drdy = ST_SENSORS_DEFAULT_STAT_ADDR, > @@ -637,7 +637,7 @@ static const struct st_sensor_settings st_accel_sensors_settings[] = { > .drdy_irq = { > .addr = 0x22, > .mask_int1 = 0x10, > - .mask_int2 = 0x08, > + .mask_int2 = 0x00, > .addr_ihl = 0x25, > .mask_ihl = 0x02, > .addr_stat_drdy = ST_SENSORS_DEFAULT_STAT_ADDR, ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-08-12 12:48 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-08-11 19:44 [PATCH 0/2] iio: st_sensors: fix data-ready pin configuration Lorenzo Bianconi 2017-08-11 19:44 ` [PATCH 1/2] iio: pressure: st_pressure: fix drdy configuration for LPS22HB and LPS25H Lorenzo Bianconi 2017-08-12 12:48 ` Jonathan Cameron 2017-08-11 19:44 ` [PATCH 2/2] iio: accel: st_accel: fix data-ready line configuration Lorenzo Bianconi 2017-08-12 12:48 ` Jonathan Cameron
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).