Skip to content

iio: gyro: mpu3050: Multiple bug fixes

Ethan Tidmore linux-iio lkml 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 6 repliesIn review
  2. v24 patches 10 repliesSuperseded

Changes in v3 from the cover letter

- Patch 1 & 2 remove unneeded code snippets.
- Patch 3 remove stray change and tidy up grammar.
- Patch 4 clarify patch purpose.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4iio: gyro: mpu3050: Fix incorrect free_irq() variabledrivers/iio/gyro/mpu3050-core.c+1 -10 replies
2/4iio: gyro: mpu3050: Fix irq resource leakdrivers/iio/gyro/mpu3050-core.c+6 -10 replies
3/4iio: gyro: mpu3050: Move iio_device_register() to correct locationdrivers/iio/gyro/mpu3050-core.c+13 -81 reply
4/4iio: gyro: mpu3050: Fix out-of-sequence free_irq()drivers/iio/gyro/mpu3050-core.c+1 -13 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchLinus WalleijAndy Shevchenko
SeriesR-b
1/4R-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/4] iio: gyro: mpu3050: Multiple bug fixes

This series fixes 4 bugs:
- Patch 1: Fix free_irq() being called with wrong handler.
- Patch 2: Added missing free_irq() in an error path.
- Patch 3: Moved iio_device_register() to end of probe function, in doing so had to implement correct error cleanups and place iio_device_unregister in beginning of remove callback.
- Patch 4: free_irq() is after called iio_triggered_buffer_cleanup() which breaks LIFO, place it before it.

I plan on doing a proper devm_ conversion of this driver, but went ahead and did these fixes so they could be backported.

v3:
- Patch 1 & 2 remove unneeded code snippets.
- Patch 3 remove stray change and tidy up grammar.
- Patch 4 clarify patch purpose.

Ethan Tidmore (4):
iio: gyro: mpu3050: Fix incorrect free_irq() variable
iio: gyro: mpu3050: Fix irq resource leak
iio: gyro: mpu3050: Move iio_device_register() to correct location
iio: gyro: mpu3050: Fix out-of-sequence free_irq()

 drivers/iio/gyro/mpu3050-core.c | 32 +++++++++++++++++++++-----------
 1 file changed, 21 insertions(+), 11 deletions(-)
Signature · 1 line
2.53.0