diff options
author | Prasad Kanneganti <prasad.kanneganti@cavium.com> | 2017-05-25 10:42:14 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-26 14:41:47 -0400 |
commit | d5c7d9b934dc07261e97088681e3753b3f5eba80 (patch) | |
tree | 8be54472c0a9d824312b9a8842f61ad48986b4ea /fs/ceph/caps.c | |
parent | ae782dec2c60457ec66a5c2589f4bd135ffa5893 (diff) |
liquidio: fix rare pci_driver.probe failure of VF driver
There's a rare pci_driver.probe failure of the VF driver that's caused by
PF/VF handshake going out of sync. The culprit is octeon_mbox_write() who
ignores an ack timeout condition; it just keeps unconditionally writing all
elements of mbox_cmd->data[] even when the other side is not ready for
them. Fix it by making each write of mbox_cmd->data[i] conditional to
having previously received an ack.
Also fix the octeon_mbox_state enum such that each state gets a unique
value. Also add ULL suffix to numeric literals in macro definitions.
Signed-off-by: Prasad Kanneganti <prasad.kanneganti@cavium.com>
Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/ceph/caps.c')
0 files changed, 0 insertions, 0 deletions