Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

phy: renesas: phy-rcar-gen2: fix typo in function name reference

Replace cmpxcgh by cmpxchg.

Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/20251230141050.93856-1-Julia.Lawall@inria.fr
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Julia Lawall and committed by
Vinod Koul
5068c09d 6c1cdea6

+1 -1
+1 -1
drivers/phy/renesas/phy-rcar-gen2.c
··· 85 85 * Try to acquire exclusive access to PHY. The first driver calling 86 86 * phy_init() on a given channel wins, and all attempts to use another 87 87 * PHY on this channel will fail until phy_exit() is called by the first 88 - * driver. Achieving this with cmpxcgh() should be SMP-safe. 88 + * driver. Achieving this with cmpxchg() should be SMP-safe. 89 89 */ 90 90 if (cmpxchg(&channel->selected_phy, -1, phy->number) != -1) 91 91 return -EBUSY;