ufs: Add missing UFS_MASK macro definition

Message ID 1479963531-6458-1-git-send-email-zhangfei.gao@linaro.org
State New
Headers show

Commit Message

zhangfei Nov. 24, 2016, 4:58 a.m.
From: Santosh Y <santoshsy@gmail.com>


Reported-by: Venkatraman S <svenkatr@ti.com>
Reviewed-by: Vinayak Holikatti <vinholikatti@gmail.com>

Signed-off-by: Santosh Y <santoshsy@gmail.com>

Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>

---

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(+)

-- 
2.7.4

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

Comments

Subhash Jadavani Nov. 24, 2016, 3:07 p.m. | #1
On 2016-11-23 20:58, Zhangfei Gao wrote:
> From: Santosh Y <santoshsy@gmail.com>

> 

> Reported-by: Venkatraman S <svenkatr@ti.com>

> Reviewed-by: Vinayak Holikatti <vinholikatti@gmail.com>

> Signed-off-by: Santosh Y <santoshsy@gmail.com>

> Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>

> ---

> 

> 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		= 0x04000000,

>  };

> 

> +#define UFS_MASK(mask, offset)		((mask) << (offset))

> +

>  /* UFS Version 08h */

>  #define MINOR_VERSION_NUM_MASK		UFS_MASK(0xFFFF, 0)

>  #define MAJOR_VERSION_NUM_MASK		UFS_MASK(0xFFFF, 16)


LGTM.
Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>


-- 
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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Martin K. Petersen Nov. 25, 2016, 3:05 p.m. | #2
>>>>> "Zhangfei" == Zhangfei Gao <zhangfei.gao@linaro.org> 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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch hide | download patch | download mbox

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		= 0x04000000,
 };
 
+#define UFS_MASK(mask, offset)		((mask) << (offset))
+
 /* UFS Version 08h */
 #define MINOR_VERSION_NUM_MASK		UFS_MASK(0xFFFF, 0)
 #define MAJOR_VERSION_NUM_MASK		UFS_MASK(0xFFFF, 16)