All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ufs: Add missing UFS_MASK macro definition
@ 2016-11-24  4:58 Zhangfei Gao
  2016-11-24 15:07 ` Subhash Jadavani
  2016-11-25 15:05 ` Martin K. Petersen
  0 siblings, 2 replies; 3+ messages in thread
From: Zhangfei Gao @ 2016-11-24  4:58 UTC (permalink / raw)
  To: Subhash Jadavani, Martin K . Petersen; +Cc: linux-scsi, Santosh Y, Zhangfei Gao

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)
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-11-25 15:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-24  4:58 [PATCH] ufs: Add missing UFS_MASK macro definition Zhangfei Gao
2016-11-24 15:07 ` Subhash Jadavani
2016-11-25 15:05 ` Martin K. Petersen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.