Re: [PATCH] ufs: Add missing UFS_MASK macro definition

2016-11-25 Thread Martin K. Petersen
> "Zhangfei" == Zhangfei Gao  writes:

Applied to 4.10/scsi-queue.

-- 
Martin K. Petersen  Oracle Linux Engineering
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH] ufs: Add missing UFS_MASK macro definition

2016-11-24 Thread Subhash Jadavani

On 2016-11-23 20:58, Zhangfei Gao wrote:

From: Santosh Y 

Reported-by: Venkatraman S 
Reviewed-by: Vinayak Holikatti 
Signed-off-by: Santosh Y 
Signed-off-by: Zhangfei Gao 
---

Find the original patch from
http://www.spinics.net/lists/linux-scsi/msg58634.html

 drivers/scsi/ufs/ufshci.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/scsi/ufs/ufshci.h b/drivers/scsi/ufs/ufshci.h
index 9599741..bbd8df9 100644
--- a/drivers/scsi/ufs/ufshci.h
+++ b/drivers/scsi/ufs/ufshci.h
@@ -83,6 +83,8 @@ enum {
MASK_UIC_DME_TEST_MODE_SUPPORT  = 0x0400,
 };

+#define UFS_MASK(mask, offset) ((mask) << (offset))
+
 /* UFS Version 08h */
 #define MINOR_VERSION_NUM_MASK UFS_MASK(0x, 0)
 #define MAJOR_VERSION_NUM_MASK UFS_MASK(0x, 16)


LGTM.
Reviewed-by: Subhash Jadavani 

--
The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] ufs: Add missing UFS_MASK macro definition

2016-11-23 Thread Zhangfei Gao
From: Santosh Y 

Reported-by: Venkatraman S 
Reviewed-by: Vinayak Holikatti 
Signed-off-by: Santosh Y 
Signed-off-by: Zhangfei Gao 
---

Find the original patch from
http://www.spinics.net/lists/linux-scsi/msg58634.html

 drivers/scsi/ufs/ufshci.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/scsi/ufs/ufshci.h b/drivers/scsi/ufs/ufshci.h
index 9599741..bbd8df9 100644
--- a/drivers/scsi/ufs/ufshci.h
+++ b/drivers/scsi/ufs/ufshci.h
@@ -83,6 +83,8 @@ enum {
MASK_UIC_DME_TEST_MODE_SUPPORT  = 0x0400,
 };
 
+#define UFS_MASK(mask, offset) ((mask) << (offset))
+
 /* UFS Version 08h */
 #define MINOR_VERSION_NUM_MASK UFS_MASK(0x, 0)
 #define MAJOR_VERSION_NUM_MASK UFS_MASK(0x, 16)
-- 
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html