Dmitry Torokhov
144337eeef
Input: mms114 - replace udelay with usleep_range
...
The driver currently uses udelay(MMS114_I2C_DELAY) (50us) to ensure a
mandatory delay between I2C transfers in __mms114_read_reg() and
mms114_write_reg().
Both functions invoke underlying I2C core operations (i2c_transfer,
i2c_master_send) which acquire mutexes and sleep. Furthermore, the
interrupt handler mms114_interrupt() is registered as a threaded IRQ
handler. Since the entire execution path is fully sleepable,
busy-waiting with udelay() for 50us unnecessarily wastes CPU cycles.
Replace udelay() with usleep_range() to allow the CPU to enter low-power
states or execute other tasks during the delay.
Assisted-by: Antigravity:gemini-3.5-flash
Link: https://patch.msgid.link/20260616050912.1531241-4-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2026-06-22 23:19:21 -07:00
..
2024-10-19 21:21:41 -07:00
2026-03-24 21:14:18 -07:00
2026-05-30 22:10:47 -07:00
2023-09-06 14:23:47 -07:00
2026-03-24 21:14:19 -07:00
2023-09-06 14:23:47 -07:00
2026-06-10 15:47:47 -07:00
2025-12-18 12:17:10 -08:00
2026-05-30 22:10:47 -07:00
2026-05-31 19:43:25 -07:00
2026-05-30 22:10:47 -07:00
2024-09-30 07:58:33 -07:00
2026-05-30 22:10:47 -07:00
2026-05-30 22:10:47 -07:00
2026-03-24 21:14:22 -07:00
2024-10-02 17:23:23 -04:00
2024-08-19 10:22:56 -07:00
2026-05-30 22:10:47 -07:00
2026-05-30 22:10:47 -07:00
2026-05-30 22:10:47 -07:00
2026-03-24 21:14:23 -07:00
2024-08-05 10:48:49 -07:00
2026-05-30 22:10:47 -07:00
2023-01-27 14:49:53 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-04-19 17:54:06 -07:00
2026-05-30 22:10:47 -07:00
2026-02-21 17:09:51 -08:00
2026-05-30 22:10:47 -07:00
2026-03-24 21:14:24 -07:00
2026-05-30 22:10:47 -07:00
2026-03-24 21:14:26 -07:00
2026-05-30 22:10:47 -07:00
2025-08-21 12:00:59 -07:00
2026-02-21 17:09:51 -08:00
2026-03-25 09:08:17 -07:00
2025-03-10 10:46:08 -07:00
2025-03-10 10:46:08 -07:00
2025-03-10 10:46:08 -07:00
2026-03-24 21:14:27 -07:00
2026-06-22 20:44:12 -07:00
2025-10-13 09:35:26 -07:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-05-30 22:10:47 -07:00
2025-09-17 14:44:02 -07:00
2026-05-30 22:10:47 -07:00
2026-03-24 21:14:49 -07:00
2024-10-02 17:23:23 -04:00
2026-05-30 22:10:47 -07:00
2026-05-30 22:10:47 -07:00
2026-05-30 22:10:47 -07:00
2026-03-24 21:14:50 -07:00
2026-03-24 21:14:50 -07:00
2026-02-21 17:09:51 -08:00
2026-03-24 21:14:51 -07:00
2026-05-30 22:11:56 -07:00
2026-03-24 21:14:53 -07:00
2026-05-29 22:31:40 -07:00
2026-03-24 21:14:53 -07:00
2024-10-15 11:43:25 -07:00
2026-05-29 22:31:40 -07:00
2026-05-30 22:10:47 -07:00
2026-02-21 17:09:51 -08:00
2026-05-30 22:10:47 -07:00
2026-05-30 22:10:47 -07:00
2026-06-22 23:19:21 -07:00
2026-03-24 21:14:56 -07:00
2026-02-21 17:09:51 -08:00
2026-03-25 07:53:57 -07:00
2026-05-30 22:10:47 -07:00
2026-02-21 17:09:51 -08:00
2026-05-30 22:10:47 -07:00
2024-10-19 21:21:43 -07:00
2026-05-30 22:10:47 -07:00
2023-07-07 16:54:29 -07:00
2026-05-30 22:10:47 -07:00
2026-05-30 22:10:47 -07:00
2026-05-30 22:10:47 -07:00
2026-05-30 22:10:47 -07:00
2026-05-30 22:10:47 -07:00
2026-05-30 22:10:47 -07:00
2025-04-28 12:14:12 -07:00
2024-10-15 11:43:25 -07:00
2026-03-25 07:53:59 -07:00
2024-10-02 17:23:23 -04:00
2026-03-25 07:53:59 -07:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-06-14 13:58:16 -07:00
2024-10-19 21:21:43 -07:00
2026-02-21 17:09:51 -08:00
2025-08-21 12:00:59 -07:00
2024-08-04 18:10:40 -07:00
2026-05-30 22:10:47 -07:00
2024-08-04 18:10:40 -07:00
2026-05-30 22:10:47 -07:00
2026-03-25 07:53:59 -07:00
2024-12-10 16:17:30 -08:00
2026-04-26 21:00:25 -07:00
2026-05-30 22:10:47 -07:00
2026-02-21 17:09:51 -08:00
2026-05-29 22:31:40 -07:00
2026-05-30 22:10:47 -07:00
2026-03-25 07:54:00 -07:00
2024-10-15 11:43:25 -07:00
2025-08-21 12:00:59 -07:00
2025-08-21 12:00:59 -07:00
2025-08-21 12:00:59 -07:00
2026-05-30 22:10:47 -07:00
2026-05-30 22:10:47 -07:00
2026-03-25 07:54:00 -07:00