From a72c5addc543df830ca6de650c72ee585d88acfc Mon Sep 17 00:00:00 2001 From: hgchu Date: Fri, 12 Jan 2018 16:25:09 +0900 Subject: [PATCH] [COMMON] scsi: ufs: exynos: change unique number to 18 digits from 16 Change-Id: I3942c0e564633005c665801132a1a15ecc585651 Signed-off-by: hgchu --- drivers/scsi/ufs/Kconfig | 4 ++++ drivers/scsi/ufs/ufs_quirks.h | 5 +++++ drivers/scsi/ufs/ufshcd.h | 3 +++ 3 files changed, 12 insertions(+) diff --git a/drivers/scsi/ufs/Kconfig b/drivers/scsi/ufs/Kconfig index 5b174f8feb91..4df1cc00826a 100644 --- a/drivers/scsi/ufs/Kconfig +++ b/drivers/scsi/ufs/Kconfig @@ -49,6 +49,10 @@ config SCSI_UFSHCD However, do not compile this as a module if your root file system (the one containing the directory /) is located on a UFS device. +config UFS_UN_18DIGITS + bool "The digits of SEC unique number" + depends on SCSI_UFSHCD + config SCSI_UFSHCD_PCI tristate "PCI bus based UFS Controller support" depends on SCSI_UFSHCD && PCI diff --git a/drivers/scsi/ufs/ufs_quirks.h b/drivers/scsi/ufs/ufs_quirks.h index 88bd4275149e..02be81f9390a 100644 --- a/drivers/scsi/ufs/ufs_quirks.h +++ b/drivers/scsi/ufs/ufs_quirks.h @@ -25,6 +25,11 @@ #define UFS_VENDOR_SAMSUNG 0x1CE #define UFS_VENDOR_SKHYNIX 0x1AD +/*uniqueu number*/ +#define UFS_UN_16_DIGITS 16 +#define UFS_UN_18_DIGITS 18 +#define UFS_UN_MAX_DIGITS 19 //current max digit + 1 + /** * ufs_dev_fix - ufs device quirk info * @card: ufs card details diff --git a/drivers/scsi/ufs/ufshcd.h b/drivers/scsi/ufs/ufshcd.h index 157bb9f2e3bb..6dbe2e83b083 100644 --- a/drivers/scsi/ufs/ufshcd.h +++ b/drivers/scsi/ufs/ufshcd.h @@ -70,6 +70,7 @@ #include "ufs.h" #include "ufshci.h" +#include "ufs_quirks.h" #define UFSHCD "ufshcd" #define UFSHCD_DRIVER_VERSION "0.2" @@ -711,6 +712,8 @@ struct ufs_hba { struct ufs_clk_scaling clk_scaling; bool is_sys_suspended; + char unique_number[UFS_UN_MAX_DIGITS]; + struct ufs_monitor monitor; enum bkops_status urgent_bkops_lvl; -- 2.20.1