commit | b65c6921433c8fcf306b4671f9f9f7c68c36cefc | [log] [tgz] |
---|---|---|
author | Bin Meng <bmeng.cn@gmail.com> | Tue Aug 22 08:15:10 2017 -0700 |
committer | Tom Rini <trini@konsulko.com> | Mon Aug 28 07:17:11 2017 -0400 |
tree | 4970188c3a7f3fb7710bb4c166636c7319ac12d7 | |
parent | 3e18562961933c7772b7e91ba6fc1e908b453d93 [diff] [blame] |
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>
diff --git a/drivers/nvme/nvme.h b/drivers/nvme/nvme.h index cd411be..f0fa639 100644 --- a/drivers/nvme/nvme.h +++ b/drivers/nvme/nvme.h
@@ -621,6 +621,7 @@ char model[40]; char firmware_rev[8]; u32 max_transfer_shift; + u64 cap; u32 stripe_size; u32 page_size; u8 vwc;