net: mana: Fix the extra HZ in mana_hwc_send_request
Subsystems (6)
PATCH 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.
--- 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
@@ -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
Quoted 10 lines
From: Souradeep Chakrabarti <[email protected]>
Sent: Thursday, May 16, 2024 9:06 AM
...
Commit62c1bff593b7added an extra HZ along withmsecs_to_jiffies. This patch fixes that.Fixes 62c1bff593b7 ("net: mana: Configure hwc timeout from hardware")Signed-off-by Souradeep Chakrabarti <[email protected]>---
Looks good to me.
Quoted 6 lines · Souradeep Chakrabarti
Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
Commit
62c1bff593b7added an extra HZ along withmsecs_to_jiffies. This patch fixes that.
Quoted 6 lines
Fixes 62c1bff593b7 ("net: mana: Configure hwc timeout from hardware")Signed-off-by Souradeep Chakrabarti <[email protected]>--- drivers/net/ethernet/microsoft/mana/hw_channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
LGTM.
Quoted 6 lines · Souradeep Chakrabarti
Commit
62c1bff593b7added an extra HZ along withmsecs_to_jiffies. This patch fixes that.Fixes 62c1bff593b7 ("net: mana: Configure hwc timeout from hardware")Signed-off-by Souradeep Chakrabarti <[email protected]>
https://www.kernel.org/doc/html/latest/process/maintainer-netdev.html#netdev-faq
Please set the Subject line to [PATCH net] to indicate which tree this applies to.
Andrew