Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1270886 > unrolled thread

[PATCH] phy: phy-mt65xx-usb3: fix test fail of HS receiver sensitivity

Started byChunfeng Yun <chunfeng.yun@mediatek.com>
First post2015-11-17 07:10 +0100
Last post2015-11-17 09:00 +0100
Articles 3 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] phy: phy-mt65xx-usb3: fix test fail of HS receiver sensitivity Chunfeng Yun <chunfeng.yun@mediatek.com> - 2015-11-17 07:10 +0100
    Re: [PATCH] phy: phy-mt65xx-usb3: fix test fail of HS receiver  sensitivity Greg KH <greg@kroah.com> - 2015-11-17 07:20 +0100
      Re: [PATCH] phy: phy-mt65xx-usb3: fix test fail of HS receiver  sensitivity chunfeng yun <chunfeng.yun@mediatek.com> - 2015-11-17 09:00 +0100

#1270886 — [PATCH] phy: phy-mt65xx-usb3: fix test fail of HS receiver sensitivity

FromChunfeng Yun <chunfeng.yun@mediatek.com>
Date2015-11-17 07:10 +0100
Subject[PATCH] phy: phy-mt65xx-usb3: fix test fail of HS receiver sensitivity
Message-ID<qvHCN-1dg-5@gated-at.bofh.it>
when use the default value 8 of RG_USB20_SQTH, the HS receiver
sensitivity test of HQA will fail, set it as 2 to fix up the
issue.

Change-Id: Ia5bdbbfc8ebb170d3ef26007e665b7350b6d28ab
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
---
 drivers/phy/phy-mt65xx-usb3.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/drivers/phy/phy-mt65xx-usb3.c b/drivers/phy/phy-mt65xx-usb3.c
index f30b28b..dc480d3 100644
--- a/drivers/phy/phy-mt65xx-usb3.c
+++ b/drivers/phy/phy-mt65xx-usb3.c
@@ -49,6 +49,8 @@
 #define PA6_RG_U2_ISO_EN		BIT(31)
 #define PA6_RG_U2_BC11_SW_EN		BIT(23)
 #define PA6_RG_U2_OTG_VBUSCMP_EN	BIT(20)
+#define PA6_RG_U2_SQTH		GENMASK(3, 0)
+#define PA6_RG_U2_SQTH_VAL(x)	(0xf & (x))
 
 #define U3P_U2PHYACR4		(SSUSB_SIFSLV_U2PHY_COM_BASE + 0x0020)
 #define P2C_RG_USB20_GPIO_CTL		BIT(9)
@@ -165,9 +167,10 @@ static void phy_instance_init(struct mt65xx_u3phy *u3phy,
 		writel(tmp, port_base + U3P_U2PHYDTM0);
 	}
 
-	/* DP/DM BC1.1 path Disable */
 	tmp = readl(port_base + U3P_USBPHYACR6);
-	tmp &= ~PA6_RG_U2_BC11_SW_EN;
+	tmp &= ~PA6_RG_U2_BC11_SW_EN;	/* DP/DM BC1.1 path Disable */
+	tmp &= ~PA6_RG_U2_SQTH;
+	tmp |= PA6_RG_U2_SQTH_VAL(2);
 	writel(tmp, port_base + U3P_USBPHYACR6);
 
 	tmp = readl(port_base + U3P_U3PHYA_DA_REG0);
-- 
1.8.1.1.dirty

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

[toc] | [next] | [standalone]


#1270892 — Re: [PATCH] phy: phy-mt65xx-usb3: fix test fail of HS receiver sensitivity

FromGreg KH <greg@kroah.com>
Date2015-11-17 07:20 +0100
SubjectRe: [PATCH] phy: phy-mt65xx-usb3: fix test fail of HS receiver sensitivity
Message-ID<qvHMu-1gI-9@gated-at.bofh.it>
In reply to#1270886
On Tue, Nov 17, 2015 at 02:02:58PM +0800, Chunfeng Yun wrote:
> when use the default value 8 of RG_USB20_SQTH, the HS receiver
> sensitivity test of HQA will fail, set it as 2 to fix up the
> issue.
> 
> Change-Id: Ia5bdbbfc8ebb170d3ef26007e665b7350b6d28ab

What is this field for?  Hint, it should never be there for a patch you
submit upstream as it means nothing...

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1270937 — Re: [PATCH] phy: phy-mt65xx-usb3: fix test fail of HS receiver sensitivity

Fromchunfeng yun <chunfeng.yun@mediatek.com>
Date2015-11-17 09:00 +0100
SubjectRe: [PATCH] phy: phy-mt65xx-usb3: fix test fail of HS receiver sensitivity
Message-ID<qvJlg-26t-1@gated-at.bofh.it>
In reply to#1270892
Hi,
On Mon, 2015-11-16 at 22:16 -0800, Greg KH wrote:
> On Tue, Nov 17, 2015 at 02:02:58PM +0800, Chunfeng Yun wrote:
> > when use the default value 8 of RG_USB20_SQTH, the HS receiver
> > sensitivity test of HQA will fail, set it as 2 to fix up the
> > issue.
> > 
> > Change-Id: Ia5bdbbfc8ebb170d3ef26007e665b7350b6d28ab
> 
> What is this field for?  Hint, it should never be there for a patch you
> submit upstream as it means nothing...
> 
I'm sorry for forgetting remove it. 
And I will remove change-id in next round after review

Thanks a lot

> greg k-h


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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web