Skip to contentSkip to conversation

octeontx2-af: Use matching wake_up API variant in CGX command interface

PATCH Applied Linu Cherian 2 participants 2 messages Mar 12, 2024 – Mar 13, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 octeontx2-af: Use matching wake_up API variant in CGX command interface

Use wake_up API instead of wake_up_interruptible, since wait_event_timeout API is used for waiting on command completion.

Fixes 1463f382f58d ("octeontx2-af: Add support for CGX link management")
---
 drivers/net/ethernet/marvell/octeontx2/af/cgx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/marvell/octeontx2/af/cgx.c +1 -1
index 6c70c8498690..3c0f55b3e48e 100644
@@ -1338,7 +1338,7 @@ static irqreturn_t cgx_fwi_event_handler(int irq, void *data)
 
 		/* Release thread waiting for completion  */
 		lmac->cmd_pend = false;
-		wake_up_interruptible(&lmac->wq_cmd_cmplt);
+		wake_up(&lmac->wq_cmd_cmplt);
 		break;
 	case CGX_EVT_ASYNC:
 		if (cgx_event_is_linkevent(event))
Signature · 1 line
2.34.1
#1 lore raw
This patch was applied to netdev/net.git (main) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net.git (main)
by David S. Miller <[email protected]>:

Quoted 9 lines · On Tue, 12 Mar 2024 12:36:22 +0530 you wrote:

Use wake_up API instead of wake_up_interruptible, since wait_event_timeout API is used for waiting on command completion.

Fixes 1463f382f58d ("octeontx2-af: Add support for CGX link management")

[...]

Here is the summary with links:
- [net] octeontx2-af: Use matching wake_up API variant in CGX command interface

    https://git.kernel.org/netdev/net/c/e642921dfeed

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html