[PATCH 34/34] net: mana: Fix the extra HZ in mana_hwc_send_request
authorSouradeep Chakrabarti <schakrabarti@linux.microsoft.com>
Mon, 20 May 2024 06:05:04 +0000 (23:05 -0700)
committerSalvatore Bonaccorso <carnil@debian.org>
Fri, 1 Nov 2024 04:23:37 +0000 (05:23 +0100)
Commit 62c1bff593b7 added an extra HZ along with msecs_to_jiffies.
This patch fixes that.

Cc: stable@vger.kernel.org
Fixes: 62c1bff593b7 ("net: mana: Configure hwc timeout from hardware")
Signed-off-by: Souradeep Chakrabarti <schakrabarti@linux.microsoft.com>
Reviewed-by: Brett Creeley <brett.creeley@amd.com>
Reviewed-by: Dexuan Cui <decui@microsoft.com>
Link: https://lore.kernel.org/r/1716185104-31658-1-git-send-email-schakrabarti@linux.microsoft.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
(cherry picked from commit 9c91c7fadb1771dcc2815c5271d14566366d05c5)
Signed-off-by: Bastian Blank <waldi@debian.org>
Gbp-Pq: Topic features/all/ethernet-microsoft
Gbp-Pq: Name 0034-net-mana-Fix-the-extra-HZ-in-mana_hwc_send_request.patch

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

index 88d18677cb4f21ca0b9f411c6d72bc6d9e280d1d..236daa0535ba008ed893e9b45d5db6205e19d304 100644 (file)
@@ -853,7 +853,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;