diff mbox series

scsi: ufs: Fix RX_TERMINATION_FORCE_ENABLE define value

Message ID 87405e9b14c6eb01b395f01eac4ab085e8020ff7.1555614814.git.sousa@synopsys.com (mailing list archive)
State Mainlined
Commit ebcb8f8508c5edf428f52525cec74d28edea7bcb
Headers show
Series scsi: ufs: Fix RX_TERMINATION_FORCE_ENABLE define value | expand

Commit Message

Pedro Sousa April 18, 2019, 7:13 p.m. UTC
Fix RX_TERMINATION_FORCE_ENABLE define value from 0x0089 to 0x00A9
according to MIPI Alliance MPHY specification.

Fixes: e785060ea3a1 ("ufs: definitions for phy interface")
Cc: stable@vger.kernel.org
Signed-off-by: Pedro Sousa <sousa@synopsys.com>
---
 drivers/scsi/ufs/unipro.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Avri Altman April 18, 2019, 9:04 p.m. UTC | #1
Hi,
I tried to look it up in the unipro spec V1.6 (2013) - 
but it wasn't there.
Is this attribute introduced on a later version? 
Thanks,
Avri
Bean Huo April 18, 2019, 9:51 p.m. UTC | #2
Hi, Avri

>
>Hi,
>I tried to look it up in the unipro spec V1.6 (2013) - but it wasn't there.
>Is this attribute introduced on a later version?
>Thanks,
>Avri

It is in M-phy spec, 
RX_Termination_Force_Enable should be 0xA9, I think, here is typo.
But currently no driver uses it.


//Bean

>________________________________________
>From: Pedro Sousa <PedroM.Sousa@synopsys.com>
>Sent: Thursday, April 18, 2019 10:13 PM
>To: alim.akhtar@samsung.com; Avri Altman; martin.petersen@oracle.com
>Cc: linux-scsi@vger.kernel.org; stable@vger.kernel.org; Pedro Sousa
>Subject: [PATCH] scsi: ufs: Fix RX_TERMINATION_FORCE_ENABLE define value
>
>Fix RX_TERMINATION_FORCE_ENABLE define value from 0x0089 to 0x00A9
>according to MIPI Alliance MPHY specification.
>
>Fixes: e785060ea3a1 ("ufs: definitions for phy interface")
>Cc: stable@vger.kernel.org
>Signed-off-by: Pedro Sousa <sousa@synopsys.com>
>---
> drivers/scsi/ufs/unipro.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/drivers/scsi/ufs/unipro.h b/drivers/scsi/ufs/unipro.h index
>23129d7..c77e365 100644
>--- a/drivers/scsi/ufs/unipro.h
>+++ b/drivers/scsi/ufs/unipro.h
>@@ -52,7 +52,7 @@
> #define RX_HS_UNTERMINATED_ENABLE              0x00A6
> #define RX_ENTER_HIBERN8                       0x00A7
> #define RX_BYPASS_8B10B_ENABLE                 0x00A8
>-#define RX_TERMINATION_FORCE_ENABLE            0x0089
>+#define RX_TERMINATION_FORCE_ENABLE            0x00A9
> #define RX_MIN_ACTIVATETIME_CAPABILITY         0x008F
> #define RX_HIBERN8TIME_CAPABILITY              0x0092
> #define RX_REFCLKFREQ                          0x00EB
>--
>2.7.4
Pedro Sousa April 22, 2019, 9:55 a.m. UTC | #3
Hi Bean, Avri,

From: Bean Huo (beanhuo) <beanhuo@micron.com>
Date: Thu, Apr 18, 2019 at 22:51:01

> Hi, Avri
> 
> >
> >Hi,
> >I tried to look it up in the unipro spec V1.6 (2013) - but it wasn't there.
> >Is this attribute introduced on a later version?
> >Thanks,
> >Avri
> 
> It is in M-phy spec, 
> RX_Termination_Force_Enable should be 0xA9, I think, here is typo.
> But currently no driver uses it.
> 
> 
> //Bean

That's correct I've looked it up in M-phy spec.
Thank you for checking.

Despite not being in use I am correcting it since I am planning to use it 
in a future submission.

Thank you,
Pedro
Martin K. Petersen April 29, 2019, 12:16 p.m. UTC | #4
Pedro,

> Fix RX_TERMINATION_FORCE_ENABLE define value from 0x0089 to 0x00A9
> according to MIPI Alliance MPHY specification.

Applied to 5.2/scsi-queue. Thanks!
diff mbox series

Patch

diff --git a/drivers/scsi/ufs/unipro.h b/drivers/scsi/ufs/unipro.h
index 23129d7..c77e365 100644
--- a/drivers/scsi/ufs/unipro.h
+++ b/drivers/scsi/ufs/unipro.h
@@ -52,7 +52,7 @@ 
 #define RX_HS_UNTERMINATED_ENABLE		0x00A6
 #define RX_ENTER_HIBERN8			0x00A7
 #define RX_BYPASS_8B10B_ENABLE			0x00A8
-#define RX_TERMINATION_FORCE_ENABLE		0x0089
+#define RX_TERMINATION_FORCE_ENABLE		0x00A9
 #define RX_MIN_ACTIVATETIME_CAPABILITY		0x008F
 #define RX_HIBERN8TIME_CAPABILITY		0x0092
 #define RX_REFCLKFREQ				0x00EB