diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2017-08-22 08:15:10 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-08-28 07:17:11 -0400 |
commit | b65c6921433c8fcf306b4671f9f9f7c68c36cefc (patch) | |
tree | 4970188c3a7f3fb7710bb4c166636c7319ac12d7 /drivers/nvme/nvme.h | |
parent | 3e18562961933c7772b7e91ba6fc1e908b453d93 (diff) | |
download | u-boot-b65c6921433c8fcf306b4671f9f9f7c68c36cefc.tar.gz u-boot-b65c6921433c8fcf306b4671f9f9f7c68c36cefc.tar.xz u-boot-b65c6921433c8fcf306b4671f9f9f7c68c36cefc.zip |
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>
Diffstat (limited to 'drivers/nvme/nvme.h')
-rw-r--r-- | drivers/nvme/nvme.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvme/nvme.h b/drivers/nvme/nvme.h index cd411be83d..f0fa6399bf 100644 --- a/drivers/nvme/nvme.h +++ b/drivers/nvme/nvme.h @@ -621,6 +621,7 @@ struct nvme_dev { char model[40]; char firmware_rev[8]; u32 max_transfer_shift; + u64 cap; u32 stripe_size; u32 page_size; u8 vwc; |