linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] i2c: imx: adapting the mainline
@ 2025-04-27  6:16 Troy Mitchell
  2025-04-27  6:16 ` [PATCH v2 1/2] i2c: imx: use guard to take spinlock Troy Mitchell
  2025-04-27  6:16 ` [PATCH v2 2/2] i2c: imx: drop master prefix Troy Mitchell
  0 siblings, 2 replies; 5+ messages in thread
From: Troy Mitchell @ 2025-04-27  6:16 UTC (permalink / raw)
  To: Oleksij Rempel, Pengutronix Kernel Team, Andi Shyti, Shawn Guo,
	Sascha Hauer, Fabio Estevam
  Cc: linux-i2c, imx, linux-arm-kernel, linux-kernel, Troy Mitchell,
	Yongchao Jia, Frank Li, Ahmad Fatoum

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@sang-engineering.com/ [1]
https://lore.kernel.org/all/20250227221924.265259-10-lyude@redhat.com/ [2]

Signed-off-by: Troy Mitchell <troymitchell988@gmail.com>
---
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@gmail.com

---
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@gmail.com>


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

end of thread, other threads:[~2025-04-28  4:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-27  6:16 [PATCH v2 0/2] i2c: imx: adapting the mainline Troy Mitchell
2025-04-27  6:16 ` [PATCH v2 1/2] i2c: imx: use guard to take spinlock Troy Mitchell
2025-04-28  0:55   ` Peng Fan
2025-04-28  4:57     ` Troy Mitchell
2025-04-27  6:16 ` [PATCH v2 2/2] i2c: imx: drop master prefix Troy Mitchell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).