Re: [PATCH V2 net] net: hns3: fix a wrong reset interrupt status mask
From: David Miller
Date: Tue Nov 19 2019 - 22:11:27 EST
From: Huazhong Tan <tanhuazhong@xxxxxxxxxx>
Date: Wed, 20 Nov 2019 10:07:15 +0800
> According to hardware user manual, bits5~7 in register
> HCLGE_MISC_VECTOR_INT_STS means reset interrupts status,
> but HCLGE_RESET_INT_M is defined as bits0~2 now. So it
> will make hclge_reset_err_handle() read the wrong reset
> interrupt status.
>
> This patch fixes this wrong bit mask.
>
> Fixes: 2336f19d7892 ("net: hns3: check reset interrupt status when reset fails")
> Signed-off-by: Huazhong Tan <tanhuazhong@xxxxxxxxxx>
> ---
> Change log:
> V1->V2: fixes comment from David Miller.
Applied.