nvme_manager: Support reading Kioxia modelNumber
Read Kioxia modelNumber via SMBUS.
Tested: Verified that Kioxia drives support SMBUS read of the model
number.
Signed-off-by: Brandon Kim <brandonkim@google.com>
Change-Id: Ifec79a6f012352a2f53a5aae467566fb5f0439e3
diff --git a/nvme_manager.cpp b/nvme_manager.cpp
index 7154227..e641edc 100644
--- a/nvme_manager.cpp
+++ b/nvme_manager.cpp
@@ -327,7 +327,7 @@
static_cast<char>(rsp_data_command_8[offset]);
}
- if (nvmeData.vendor == "Samsung")
+ if ((nvmeData.vendor == "Samsung") || (nvmeData.vendor == "Kioxia"))
{
unsigned char rsp_data_vpd[I2C_DATA_MAX] = {0};
const int rx_len = (MODELNUMBER_END_INDEX - MODELNUMBER_START_INDEX);