Skip to contentSkip to conversation

net: mana: Fix the extra HZ in mana_hwc_send_request

PATCH Applied Souradeep Chakrabarti 2 participants 2 messages May 20, 2024 – May 22, 2024

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

PATCH v2 1/1 net: mana: Fix the extra HZ in mana_hwc_send_request

Commit 62c1bff593b7 added an extra HZ along with msecs_to_jiffies. This patch fixes that.

Fixes 62c1bff593b7 ("net: mana: Configure hwc timeout from hardware")
---
 drivers/net/ethernet/microsoft/mana/hw_channel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/microsoft/mana/hw_channel.c +1 -1
index 2729a2c5acf9..ca814fe8a775 100644
@@ -848,7 +848,7 @@ int mana_hwc_send_request(struct hw_channel_context *hwc, u32 req_len,
 	}
 
 	if (!wait_for_completion_timeout(&ctx->comp_event,
-					 (msecs_to_jiffies(hwc->hwc_timeout) * HZ))) {
+					 (msecs_to_jiffies(hwc->hwc_timeout)))) {
 		dev_err(hwc->dev, "HWC: Request timed out!\n");
 		err = -ETIMEDOUT;
 		goto out;
Signature · 1 line
2.34.1
#1 lore raw
This patch was applied to netdev/net.git (main) by Paolo Abeni <[email protected]>:

Hello:

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

Quoted 10 lines · On Sun, 19 May 2024 23:05:04 -0700 you wrote:

Commit 62c1bff593b7 added an extra HZ along with msecs_to_jiffies. This patch fixes that.

Fixes 62c1bff593b7 ("net: mana: Configure hwc timeout from hardware")

[...]

Here is the summary with links:
- [V2,net] net: mana: Fix the extra HZ in mana_hwc_send_request

    https://git.kernel.org/netdev/net/c/9c91c7fadb17

You are awesome, thank you!

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