Skip to content

Commit 9c91c7f

Browse files
Souradeep ChakrabartiPaolo Abeni
authored andcommitted
net: mana: Fix the extra HZ in mana_hwc_send_request
Commit 62c1bff added an extra HZ along with msecs_to_jiffies. This patch fixes that. Cc: [email protected] Fixes: 62c1bff ("net: mana: Configure hwc timeout from hardware") Signed-off-by: Souradeep Chakrabarti <[email protected]> Reviewed-by: Brett Creeley <[email protected]> Reviewed-by: Dexuan Cui <[email protected]> Link: https://lore.kernel.org/r/1716185104-31658-1-git-send-email-schakrabarti@linux.microsoft.com Signed-off-by: Paolo Abeni <[email protected]>
1 parent eda40be commit 9c91c7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/microsoft/mana/hw_channel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ int mana_hwc_send_request(struct hw_channel_context *hwc, u32 req_len,
848848
}
849849

850850
if (!wait_for_completion_timeout(&ctx->comp_event,
851-
(msecs_to_jiffies(hwc->hwc_timeout) * HZ))) {
851+
(msecs_to_jiffies(hwc->hwc_timeout)))) {
852852
dev_err(hwc->dev, "HWC: Request timed out!\n");
853853
err = -ETIMEDOUT;
854854
goto out;

0 commit comments

Comments
 (0)