Commit 94870df3 authored by Wolfram Sang's avatar Wolfram Sang Committed by Greg Kroah-Hartman

net: amd-xgbe: fix comparison to bitshift when dealing with a mask


[ Upstream commit a3276892 ]

Due to a typo, the mask was destroyed by a comparison instead of a bit
shift.
Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: default avatarTom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c3d7d3a0
...@@ -595,7 +595,7 @@ static void xgbe_isr_task(unsigned long data) ...@@ -595,7 +595,7 @@ static void xgbe_isr_task(unsigned long data)
reissue_mask = 1 << 0; reissue_mask = 1 << 0;
if (!pdata->per_channel_irq) if (!pdata->per_channel_irq)
reissue_mask |= 0xffff < 4; reissue_mask |= 0xffff << 4;
XP_IOWRITE(pdata, XP_INT_REISSUE_EN, reissue_mask); XP_IOWRITE(pdata, XP_INT_REISSUE_EN, reissue_mask);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment