]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8ae1161b7050391739daf0d77663fb7313756703
tree61795a18073a526e4453dc16acf7581b1ed0f1ce
parent741b27d782fe4e100c07d3a4302698c446127ccf
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: 9fc9a0988963 ("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