OSDN Git Service

net: hns3: Fix cmdq registers initialization issue for vf
authorJian Shen <shenjian15@huawei.com>
Wed, 19 Sep 2018 17:29:55 +0000 (18:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Sep 2018 04:20:22 +0000 (21:20 -0700)
commit37dc9cdbdc1bd64bd3b6ea285a9c2e811404dc82
tree61795a18073a526e4453dc16acf7581b1ed0f1ce
parentfd8133148eb6a733f9cfdaecd4d99f378e21d582
net: hns3: Fix cmdq registers initialization issue for vf

According to hardware's description, the head pointer register should
be written before the tail pointer register while initializing the vf
command queue. Otherwise, it may trigger an interrupt even though there
is no command received.

Fixes: fedd0c15d288 ("net: hns3: Add HNS3 VF IMP(Integrated Management Proc) cmd interface")
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c