NVMe: don't try to read csts when failing to reset it
authorShawn Lin <shawn.lin@rock-chips.com>
Mon, 19 Dec 2016 10:42:01 +0000 (18:42 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 21 Dec 2016 03:22:23 +0000 (11:22 +0800)
commite946f494b4d8877468825572a4d9a8baf12e7896
tree038973beeb5dfc0debad67ffca95671f4186ae5c
parent5cd329fd35f4089eccdf9b2bce7d1e435259b6cd
NVMe: don't try to read csts when failing to reset it

We could find the external abort for trying to access
nvme's BAR space to check the csts, but it's possible
that the link state is forbidden to access the BAR when
failing to reset it. So we should reuse the former csts
to print the log instead of doing that again.

Change-Id: I34438a726381e588eb21149b1aab76a66ef0e665
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
drivers/nvme/host/pci.c