Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.

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>

authored by

Souradeep Chakrabarti and committed by
Paolo Abeni
9c91c7fa eda40be3

+1 -1
+1 -1
drivers/net/ethernet/microsoft/mana/hw_channel.c
··· 848 848 } 849 849 850 850 if (!wait_for_completion_timeout(&ctx->comp_event, 851 - (msecs_to_jiffies(hwc->hwc_timeout) * HZ))) { 851 + (msecs_to_jiffies(hwc->hwc_timeout)))) { 852 852 dev_err(hwc->dev, "HWC: Request timed out!\n"); 853 853 err = -ETIMEDOUT; 854 854 goto out;