[PATCH v2 0/2] i2c: imx: adapting the mainline
From: Troy Mitchell
Date: Sun Apr 27 2025 - 02:16:48 EST
Since this patch[1], we have new callback function names.
Since this patch[2], we can use `guard` to call `spin_lock_irqsave`
and release this lock when it goes out of scope.
Link:
https://lore.kernel.org/all/20240706112116.24543-2-wsa+renesas@xxxxxxxxxxxxxxxxxxxx/ [1]
https://lore.kernel.org/all/20250227221924.265259-10-lyude@xxxxxxxxxx/ [2]
Signed-off-by: Troy Mitchell <troymitchell988@xxxxxxxxx>
---
Changes in v2:
- Add more details in the commit message
- Drop a useless variable
- Refactor the logic of i2c_imx_isr function
- Link to v1: https://lore.kernel.org/r/20250421-i2c-imx-update-v1-0-1137f1f353d5@xxxxxxxxx
---
Troy Mitchell (2):
i2c: imx: use guard to take spinlock
i2c: imx: drop master prefix
drivers/i2c/busses/i2c-imx.c | 43 ++++++++++++++++++++-----------------------
1 file changed, 20 insertions(+), 23 deletions(-)
---
base-commit: 9d7a0577c9db35c4cc52db90bc415ea248446472
change-id: 20250421-i2c-imx-update-d11d66dd87e8
Best regards,
--
Troy Mitchell <troymitchell988@xxxxxxxxx>