nvme: Cache controller's capabilities
authorBin Meng <bmeng.cn@gmail.com>
Tue, 22 Aug 2017 15:15:10 +0000 (08:15 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 28 Aug 2017 11:17:11 +0000 (07:17 -0400)
commitb65c6921433c8fcf306b4671f9f9f7c68c36cefc
tree4970188c3a7f3fb7710bb4c166636c7319ac12d7
parent3e18562961933c7772b7e91ba6fc1e908b453d93
nvme: Cache controller's capabilities

Capabilities register is RO and accessed at various places in the
driver. Let's cache it in the controller driver's priv struct.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
drivers/nvme/nvme.c
drivers/nvme/nvme.h