All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/18] staging:iio:accel rework driver and move out of staging.
@ 2016-10-03 19:26 Jonathan Cameron
  2016-10-03 19:26 ` [PATCH 01/18] staging:iio:accel:sca3000 Fix a use before setting of the indio_dev->buffer pointer Jonathan Cameron
                   ` (17 more replies)
  0 siblings, 18 replies; 28+ messages in thread
From: Jonathan Cameron @ 2016-10-03 19:26 UTC (permalink / raw)
  To: linux-iio; +Cc: knaack.h, lars, pmeerw, Jonathan Cameron

This was around about the 4th IIO driver dating back to the days when I was
sticking these on sprinters and seeing if we could learn anything useful
about how they ran.

It was a device way ahead of it's time.  Back then this was pretty much
the only relatively high G / low cost sensor and it had a hardware fifo.

Anyhow, it has languished in staging primarily because of the complexity
around working out how we handle hardware buffers.  However, that trail has
long since been blaized by the likes of the am335x driver and now lots of
of newer devices are coming with fifos to smooth the flow of data between
these realtime chips and non realtime operating sytems, so it just became
a question of getting around to sorting it out.  I suspect there are very
few of these still out there, but I have an sca3000-e05 so that's no excuse :)

Anyhow, please review the whole series, but in particular the final move
patch (i.e. the resulting code).  The only odd corner I know of now is
the interaction of the watermark with the software controlled watermarks.
That may take some thought, but in the meantime I don't think that is
sufficient reason to keep it in staging.

Some wacky corners in this hardware (like the crazy number representations
for the motion detection thresholds).  It's a good datasheet but you
do have to wonder what the designers were thinking at times ;)

Jonathan

p.s. The best bit about this series is now I can moan at everyone else
about not cleaning up their staging drivers as this is the last one
of mine ;)


Jonathan Cameron (18):
  staging:iio:accel:sca3000 Fix a use before setting of the
    indio_dev->buffer pointer.
  staging:iio:accel:sca3000 merge files into one.
  staging:iio:accel:sca3000 drop sca3000_register_ring_funcs
  staging:iio:accel:sca3000 Fix clearing of flag + setting of size of
    scan.
  staging:iio:accel:sca3000 Drop custom ABI for watersheds.
  staging:iio:accel:sca3000 move to hybrid hard / soft buffer design.
  staging:iio:accel:sca3000 drop some unused variables.
  staging:iio:accel:sca3000 use a 'fake' channel to handle freefall
    event registration.
  staging:iio:accel:sca3000 Clean up register defines.
  staging:iio:accel:sca3000 add readback of the 3db low pass filter
    frequency
  staging:iio:accel:sca3000: Fix off by one error in axis due to
    IIO_NO_MOD
  staging:iio:accel:sca3000 Add write support to the low pass filter
    control
  staging:iio:accel:sca3000 Drop custom measurement mode attributes
  staging:iio:accel:sca3000 replace non standard revision attr with
    dev_info on probe
  staging:iio:accel:sca3000 Tidy up probe order to avoid a race.
  staging:iio:accel:sca3000 small checkpatch fixes (alignment etc)
  staging:iio:accel:sca3000 kernel docify comments that were nearly
    kernel doc.
  staging:iio:accel:sca3000 Move out of staging.

 drivers/iio/accel/Kconfig                |   12 +
 drivers/iio/accel/Makefile               |    2 +
 drivers/iio/accel/sca3000.c              | 1588 ++++++++++++++++++++++++++++++
 drivers/staging/iio/accel/Kconfig        |   10 -
 drivers/staging/iio/accel/Makefile       |    2 -
 drivers/staging/iio/accel/sca3000.h      |  279 ------
 drivers/staging/iio/accel/sca3000_core.c | 1210 -----------------------
 drivers/staging/iio/accel/sca3000_ring.c |  350 -------
 drivers/staging/iio/ring_hw.h            |   27 -
 9 files changed, 1602 insertions(+), 1878 deletions(-)
 create mode 100644 drivers/iio/accel/sca3000.c
 delete mode 100644 drivers/staging/iio/accel/sca3000.h
 delete mode 100644 drivers/staging/iio/accel/sca3000_core.c
 delete mode 100644 drivers/staging/iio/accel/sca3000_ring.c
 delete mode 100644 drivers/staging/iio/ring_hw.h

-- 
2.10.0


^ permalink raw reply	[flat|nested] 28+ messages in thread
* [PATCH 00/18 V2]  staging:iio:accel rework driver and move out of staging.
@ 2016-10-08 16:39 Jonathan Cameron
  2016-10-08 16:39 ` [PATCH 04/18] staging:iio:accel:sca3000 Fix clearing of flag + setting of size of scan Jonathan Cameron
  0 siblings, 1 reply; 28+ messages in thread
From: Jonathan Cameron @ 2016-10-08 16:39 UTC (permalink / raw)
  To: linux-iio; +Cc: knaack.h, lars, pmeerw, Jonathan Cameron

Changes since V1:
- Fix the patch that breaks the makefile due to a := when it should be +=
  It didn't make it to the end of the set, but broke building of other drivers
  in the middle (thanks Lars-Peter Clausen)
- Drop the unwanted buffer setup after the move to the hybrid hardware /
  software buffer (Lars-Peter Clausen)
- Use chan->address rather than the modifier to index the address array.
  (Lars-Peter Clausen)
- Typo and gibberish fixups (Peter Meerwald-Stadhler)

V1 Message

This was around about the 4th IIO driver dating back to the days when I was
sticking these on sprinters and seeing if we could learn anything useful
about how they ran.

It was a device way ahead of it's time.  Back then this was pretty much
the only relatively high G / low cost sensor and it had a hardware fifo.

Anyhow, it has languished in staging primarily because of the complexity
around working out how we handle hardware buffers.  However, that trail has
long since been blaized by the likes of the am335x driver and now lots of
of newer devices are coming with fifos to smooth the flow of data between
these realtime chips and non realtime operating sytems, so it just became
a question of getting around to sorting it out.  I suspect there are very
few of these still out there, but I have an sca3000-e05 so that's no excuse 

Anyhow, please review the whole series, but in particular the final move
patch (i.e. the resulting code).  The only odd corner I know of now is
the interaction of the watermark with the software controlled watermarks.
That may take some thought, but in the meantime I don't think that is
sufficient reason to keep it in staging.

Some wacky corners in this hardware (like the crazy number representations
for the motion detection thresholds).  It's a good datasheet but you
do have to wonder what the designers were thinking at times 

Jonathan

p.s. The best bit about this series is now I can moan at everyone else
about not cleaning up their staging drivers as this is the last one
of mine. 

Jonathan Cameron (18):
  staging:iio:accel:sca3000 Fix a use before setting of the
    indio_dev->buffer pointer.
  staging:iio:accel:sca3000 merge files into one.
  staging:iio:accel:sca3000 drop sca3000_register_ring_funcs
  staging:iio:accel:sca3000 Fix clearing of flag + setting of size of
    scan.
  staging:iio:accel:sca3000 Drop custom ABI for watersheds.
  staging:iio:accel:sca3000 move to hybrid hard / soft buffer design.
  staging:iio:accel:sca3000 drop some unused variables.
  staging:iio:accel:sca3000 use a 'fake' channel to handle freefall
    event registration.
  staging:iio:accel:sca3000 Clean up register defines.
  staging:iio:accel:sca3000 add readback of the 3db low pass filter
    frequency
  staging:iio:accel:sca3000: Fix off by one error in axis due to
    IIO_NO_MOD
  staging:iio:accel:sca3000 Add write support to the low pass filter
    control
  staging:iio:accel:sca3000 Drop custom measurement mode attributes
  staging:iio:accel:sca3000 replace non standard revision attr with
    dev_info on probe
  staging:iio:accel:sca3000 Tidy up probe order to avoid a race.
  staging:iio:accel:sca3000 small checkpatch fixes (alignment etc)
  staging:iio:accel:sca3000 kernel docify comments that were nearly
    kernel doc.
  staging:iio:accel:sca3000 Move out of staging.

 drivers/iio/accel/Kconfig                |   12 +
 drivers/iio/accel/Makefile               |    2 +
 drivers/iio/accel/sca3000.c              | 1575 ++++++++++++++++++++++++++++++
 drivers/staging/iio/accel/Kconfig        |   10 -
 drivers/staging/iio/accel/Makefile       |    3 -
 drivers/staging/iio/accel/sca3000.h      |  279 ------
 drivers/staging/iio/accel/sca3000_core.c | 1210 -----------------------
 drivers/staging/iio/accel/sca3000_ring.c |  350 -------
 drivers/staging/iio/ring_hw.h            |   27 -
 9 files changed, 1589 insertions(+), 1879 deletions(-)
 create mode 100644 drivers/iio/accel/sca3000.c
 delete mode 100644 drivers/staging/iio/accel/sca3000.h
 delete mode 100644 drivers/staging/iio/accel/sca3000_core.c
 delete mode 100644 drivers/staging/iio/accel/sca3000_ring.c
 delete mode 100644 drivers/staging/iio/ring_hw.h

-- 
2.10.0


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

end of thread, other threads:[~2016-10-08 17:06 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-03 19:26 [PATCH 00/18] staging:iio:accel rework driver and move out of staging Jonathan Cameron
2016-10-03 19:26 ` [PATCH 01/18] staging:iio:accel:sca3000 Fix a use before setting of the indio_dev->buffer pointer Jonathan Cameron
2016-10-03 19:26 ` [PATCH 02/18] staging:iio:accel:sca3000 merge files into one Jonathan Cameron
2016-10-04  8:46   ` Lars-Peter Clausen
2016-10-04 12:29     ` Jonathan Cameron
2016-10-03 19:26 ` [PATCH 03/18] staging:iio:accel:sca3000 drop sca3000_register_ring_funcs Jonathan Cameron
2016-10-03 19:26 ` [PATCH 04/18] staging:iio:accel:sca3000 Fix clearing of flag + setting of size of scan Jonathan Cameron
2016-10-04  8:59   ` Lars-Peter Clausen
2016-10-04 12:28     ` Jonathan Cameron
2016-10-03 19:26 ` [PATCH 05/18] staging:iio:accel:sca3000 Drop custom ABI for watersheds Jonathan Cameron
2016-10-03 19:26 ` [PATCH 06/18] staging:iio:accel:sca3000 move to hybrid hard / soft buffer design Jonathan Cameron
2016-10-03 19:26 ` [PATCH 07/18] staging:iio:accel:sca3000 drop some unused variables Jonathan Cameron
2016-10-03 19:26 ` [PATCH 08/18] staging:iio:accel:sca3000 use a 'fake' channel to handle freefall event registration Jonathan Cameron
2016-10-03 19:26 ` [PATCH 09/18] staging:iio:accel:sca3000 Clean up register defines Jonathan Cameron
2016-10-03 19:26 ` [PATCH 10/18] staging:iio:accel:sca3000 add readback of the 3db low pass filter frequency Jonathan Cameron
2016-10-03 19:26 ` [PATCH 11/18] staging:iio:accel:sca3000: Fix off by one error in axis due to IIO_NO_MOD Jonathan Cameron
2016-10-04  8:52   ` Lars-Peter Clausen
2016-10-08 16:59     ` Jonathan Cameron
2016-10-03 19:26 ` [PATCH 12/18] staging:iio:accel:sca3000 Add write support to the low pass filter control Jonathan Cameron
2016-10-03 19:26 ` [PATCH 13/18] staging:iio:accel:sca3000 Drop custom measurement mode attributes Jonathan Cameron
2016-10-03 19:26 ` [PATCH 14/18] staging:iio:accel:sca3000 replace non standard revision attr with dev_info on probe Jonathan Cameron
2016-10-03 19:26 ` [PATCH 15/18] staging:iio:accel:sca3000 Tidy up probe order to avoid a race Jonathan Cameron
2016-10-03 19:27 ` [PATCH 16/18] staging:iio:accel:sca3000 small checkpatch fixes (alignment etc) Jonathan Cameron
2016-10-03 19:27 ` [PATCH 17/18] staging:iio:accel:sca3000 kernel docify comments that were nearly kernel doc Jonathan Cameron
2016-10-03 20:07   ` Peter Meerwald-Stadler
2016-10-03 20:27     ` Jonathan Cameron
2016-10-03 19:27 ` [PATCH 18/18] staging:iio:accel:sca3000 Move out of staging Jonathan Cameron
2016-10-08 16:39 [PATCH 00/18 V2] staging:iio:accel rework driver and move " Jonathan Cameron
2016-10-08 16:39 ` [PATCH 04/18] staging:iio:accel:sca3000 Fix clearing of flag + setting of size of scan 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.