summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorSubhash Jadavani <subhashj@codeaurora.org>2015-01-09 18:08:00 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 10:58:21 -0700
commite0c0dd6ba0f3962ee4982d940961b71cc6183d5c (patch)
treeb8d4a1cdcc289a870c86e0a37525a04f9921e09e /include/linux
parentbd0b5b89190f00a06ed6773aa6ecfa39884835be (diff)
scsi: ufs: set right GenSelectorIndex for M-PHY attributes
DME attributes read/write commands need GenSelectorIndex argument and according to UFS host controller specification, it should specify the targeted M-PHY data lane. This is the valid range of GenSelectorIndex for M-PHY attributes: 0 to (2 * PA_MaxDataLanes - 1) Example (Note: PA_MaxDataLanes is UniPro protocol constant set to 4): --------------------------------------- MPHY Access target | GenSelectorIndex --------------------------------------- TX Lane0 | 0 TX Lane1 | 1 RX Lane0 | 4 RX Lane1 | 5 --------------------------------------- This change make sure that correct GenSelectorIndex is passed for M-PHY attributes Change-Id: I38c14b5801ece7fce7a7970385756859618efd32 Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org> [venkatg@codeaurora.org: resolved trivial merge conflicts] Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/scsi/ufs/unipro.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/scsi/ufs/unipro.h b/include/linux/scsi/ufs/unipro.h
index a0713c6642ca..3fdd775ee306 100644
--- a/include/linux/scsi/ufs/unipro.h
+++ b/include/linux/scsi/ufs/unipro.h
@@ -117,6 +117,9 @@
#define PA_TACTIVATE_TIME_UNIT_US 10
#define PA_HIBERN8_TIME_UNIT_US 100
+/* PHY Adapter Protocol Constants */
+#define PA_MAXDATALANES 4
+
/* PA power modes */
enum {
FAST_MODE = 1,