* [PATCH] NVMe-CLI WDC Plugin - add support for additional SN840 device ID.
@ 2019-02-27 15:29 Jeffrey Lien
2019-02-27 15:37 ` Keith Busch
0 siblings, 1 reply; 2+ messages in thread
From: Jeffrey Lien @ 2019-02-27 15:29 UTC (permalink / raw)
Signed-off-by: Jeff Lien <jeff.lien at wdc.com>
---
plugins/wdc/wdc-nvme.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/plugins/wdc/wdc-nvme.c b/plugins/wdc/wdc-nvme.c
index ba4d419..b131b1a 100644
--- a/plugins/wdc/wdc-nvme.c
+++ b/plugins/wdc/wdc-nvme.c
@@ -61,6 +61,7 @@
#define WDC_NVME_SN630_DEV_ID 0x2200
#define WDC_NVME_SN630_DEV_ID_1 0x2201
#define WDC_NVME_SN840_DEV_ID 0x2300
++#define WDC_NVME_SN840_DEV_ID_1 0x2500
#define WDC_NVME_SN640_DEV_ID 0x2400
#define WDC_NVME_SN640_DEV_ID_1 0x2401
#define WDC_NVME_SN640_DEV_ID_2 0x2402
@@ -709,6 +710,8 @@ static __u64 wdc_get_drive_capabilities(int fd) {
case WDC_NVME_SN640_DEV_ID_2:
/* FALLTHRU */
case WDC_NVME_SN840_DEV_ID:
+ /* FALLTHRU */
+ case WDC_NVME_SN840_DEV_ID_1:
capabilities = (WDC_DRIVE_CAP_CAP_DIAG | WDC_DRIVE_CAP_INTERNAL_LOG |
WDC_DRIVE_CAP_DRIVE_STATUS | WDC_DRIVE_CAP_CLEAR_ASSERT |
WDC_DRIVE_CAP_RESIZE | WDC_DRIVE_CAP_CLEAR_PCIE);
--
1.8.3.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] NVMe-CLI WDC Plugin - add support for additional SN840 device ID.
2019-02-27 15:29 [PATCH] NVMe-CLI WDC Plugin - add support for additional SN840 device ID Jeffrey Lien
@ 2019-02-27 15:37 ` Keith Busch
0 siblings, 0 replies; 2+ messages in thread
From: Keith Busch @ 2019-02-27 15:37 UTC (permalink / raw)
On Wed, Feb 27, 2019@03:29:53PM +0000, Jeffrey Lien wrote:
> Signed-off-by: Jeff Lien <jeff.lien at wdc.com>
> ---
> plugins/wdc/wdc-nvme.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/plugins/wdc/wdc-nvme.c b/plugins/wdc/wdc-nvme.c
> index ba4d419..b131b1a 100644
> --- a/plugins/wdc/wdc-nvme.c
> +++ b/plugins/wdc/wdc-nvme.c
> @@ -61,6 +61,7 @@
> #define WDC_NVME_SN630_DEV_ID 0x2200
> #define WDC_NVME_SN630_DEV_ID_1 0x2201
> #define WDC_NVME_SN840_DEV_ID 0x2300
> ++#define WDC_NVME_SN840_DEV_ID_1 0x2500
You've got a stray '+' there, but I fixed it up.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-02-27 15:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-27 15:29 [PATCH] NVMe-CLI WDC Plugin - add support for additional SN840 device ID Jeffrey Lien
2019-02-27 15:37 ` Keith Busch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox