The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH v3 0/2] iio: gyro: mpu3050: fix pm_runtime error handling
@ 2026-02-09 11:33 Antoniu Miclaus
  2026-02-09 12:02 ` Antoniu Miclaus
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Antoniu Miclaus @ 2026-02-09 11:33 UTC (permalink / raw)
  To: Linus Walleij, Jonathan Cameron, David Lechner, Nuno Sá,
	Andy Shevchenko, linux-iio, linux-kernel
  Cc: Antoniu Miclaus

Fix pm_runtime error handling across the mpu3050 driver. The existing
code uses pm_runtime_get_sync() without checking return values, allowing
operations to proceed even when the device fails to resume.

Replace pm_runtime_get_sync() with pm_runtime_resume_and_get() and
propagate errors appropriately. Unlike pm_runtime_get_sync(), the usage
count is not incremented on error.

Changes in v3:
- Rename patches to focus on fix rather than API change
- Add Fixes: tags
- Collect Reviewed-by

Antoniu Miclaus (2):
  iio: gyro: mpu3050-i2c: fix pm_runtime error handling in bypass_select
  iio: gyro: mpu3050-core: fix pm_runtime error handling

 drivers/iio/gyro/mpu3050-core.c | 17 +++++++++++++----
 drivers/iio/gyro/mpu3050-i2c.c  |  3 +--
 2 files changed, 14 insertions(+), 6 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2026-02-09 14:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-09 11:33 [PATCH v3 0/2] iio: gyro: mpu3050: fix pm_runtime error handling Antoniu Miclaus
2026-02-09 12:02 ` Antoniu Miclaus
2026-02-09 12:02 ` [PATCH v3 1/2] iio: gyro: mpu3050-i2c: " Antoniu Miclaus
2026-02-09 12:02 ` [PATCH v3 2/2] iio: gyro: mpu3050-core: " Antoniu Miclaus
2026-02-09 13:34   ` Andy Shevchenko
2026-02-09 14:27   ` Nuno Sá
2026-02-09 12:13 ` [PATCH v3 0/2] iio: gyro: mpu3050: " Miclaus, Antoniu
2026-02-09 13:32   ` Andy Shevchenko
2026-02-09 13:39     ` Miclaus, Antoniu
2026-02-09 13:54       ` Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox