]> xenbits.xensource.com Git - people/aperard/linux.git/commitdiff
octeontx2-af: Use matching wake_up API variant in CGX command interface
authorLinu Cherian <lcherian@marvell.com>
Tue, 12 Mar 2024 07:06:22 +0000 (12:36 +0530)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:20:59 +0000 (18:20 -0400)
[ Upstream commit e642921dfeed1e15e73f78f2c3b6746f72b6deb2 ]

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")
Signed-off-by: Linu Cherian <lcherian@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/cgx.c

index 90be87dc105d3f00363d24c37ed0ef2a4f113855..e6fe599f7bf3aa74087d5e84c0383b01e47e4609 100644 (file)
@@ -1346,7 +1346,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))