From: Christoph Hellwig Date: Fri, 12 May 2017 15:16:10 +0000 (+0200) Subject: nvme: save hmpre and hmmin in struct nvme_ctrl X-Git-Tag: v4.13-rc1~70^2~67^2~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fe6d53c9c0bb51977521d409a2efe453b7123c39;p=platform%2Fkernel%2Flinux-exynos.git nvme: save hmpre and hmmin in struct nvme_ctrl We'll need the later for the HMB support. Signed-off-by: Christoph Hellwig Reviewed-by: Keith Busch Reviewed-by: Sagi Grimberg Reviewed-by: Johannes Thumshirn --- diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index 032cce3..767bcc6 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -1633,6 +1633,8 @@ int nvme_init_identify(struct nvme_ctrl *ctrl) } } else { ctrl->cntlid = le16_to_cpu(id->cntlid); + ctrl->hmpre = le32_to_cpu(id->hmpre); + ctrl->hmmin = le32_to_cpu(id->hmmin); } kfree(id); diff --git a/drivers/nvme/host/nvme.h b/drivers/nvme/host/nvme.h index 22ee60b..e2e341b 100644 --- a/drivers/nvme/host/nvme.h +++ b/drivers/nvme/host/nvme.h @@ -166,6 +166,9 @@ struct nvme_ctrl { /* Power saving configuration */ u64 ps_max_latency_us; + u32 hmpre; + u32 hmmin; + /* Fabrics only */ u16 sqsize; u32 ioccsz;