public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/4] Fine tune USB 3.0 PHY on exynos5420
@ 2014-08-21 14:55 Vivek Gautam
  2014-08-21 14:55 ` [PATCH v5 1/4] phy: Add provision for calibrating phy Vivek Gautam
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Vivek Gautam @ 2014-08-21 14:55 UTC (permalink / raw)
  To: linux-usb
  Cc: linux-samsung-soc, linux-kernel, gregkh, kishon, kgene.kim,
	mathias.nyman, stern, sergei.shtylyov, heikki.krogerus, balbi,
	Vivek Gautam

This series is based on Heikki's patches for simpliefied phy lookup table:
[PATCHv3 0/6] phy: simplified phy lookup [1], applied against 'usb-next' branch
alongwith Sergei's patch for adding generic phy support to usb hcd [2].

Changes since v4:
 - Rebased on latest patches by Heikki.
 - Took care of handling -EPROBE_DEFER error number while getting PHY in
   xhci plat.

Changes from v3:
 - Modified error message as per review comments from Julius.

Changes since v2:
 - Removed any check for DWC3 in xhci-plat for getting usb2-phy and usb3-phy,
   in order to make it more generic.
 - Moved the phy_calibration calls to core/hcd.c to enable a more generic
   solution for issues of calibrating the PHYs.

Changes since v1:
 - Using 'gen_phy' member of 'hcd' instead of declaring more variables
   to hold phys.
 - Added a check for compatible match for 'Synopsys-dwc3' controller,
   since the 'gen_phy' member of 'hcd' already gets the 'usb' PHY
   in core/hcd.c; but XHCI on Synopsys-dwc3 doesn't need that,
   instead two separate PHYs for UTMI+ and PIPE3 for the two HCDs
   (main hcd and shared hcd).
 - Restructured the code in 'xhci_plat_setup()' and 'xhci_plat_resume()'
   to use hcd->gen_phy directly. Also added the check for Synopsys's DWC3
   controller while trying to calibrate the PHY.

Explanation for the need of this patch-series:
"The DWC3-exynos eXtensible host controller present on Exynos5420/5800
SoCs is quirky. The PHY serving this controller operates at High-Speed
by default, so it detects even Super-speed devices as high-speed ones.
Certain PHY parameters like Tx LOS levels and Boost levels need to be
calibrated further post initialization of xHCI controller, to get
SuperSpeed operations working."

[1] https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg710094.html
[2] http://comments.gmane.org/gmane.linux.ports.sh.devel/35932

Vivek Gautam (4):
  phy: Add provision for calibrating phy.
  usb: host: xhci-plat: Get PHYs for xhci's hcds
  usb: hcd: Caibrate PHY post hcd reset
  phy: exynos5-usbdrd: Calibrate LOS levels for exynos5420/5800

 drivers/phy/phy-core.c           |   36 ++++++++
 drivers/phy/phy-exynos5-usbdrd.c |  169 ++++++++++++++++++++++++++++++++++++++
 drivers/usb/core/hcd.c           |   22 +++++
 drivers/usb/host/xhci-plat.c     |   23 ++++++
 include/linux/phy/phy.h          |    8 ++
 5 files changed, 258 insertions(+)

-- 
1.7.10.4


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

end of thread, other threads:[~2014-08-28  4:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-21 14:55 [PATCH v5 0/4] Fine tune USB 3.0 PHY on exynos5420 Vivek Gautam
2014-08-21 14:55 ` [PATCH v5 1/4] phy: Add provision for calibrating phy Vivek Gautam
2014-08-21 14:55 ` [PATCH v5 2/4] usb: host: xhci-plat: Get PHYs for xhci's hcds Vivek Gautam
2014-08-21 14:55 ` [PATCH v5 3/4] usb: hcd: Caibrate PHY post hcd reset Vivek Gautam
2014-08-22 10:49   ` Andreas Färber
2014-08-28  4:09     ` Vivek Gautam
2014-08-21 14:55 ` [PATCH v5 4/4] phy: exynos5-usbdrd: Calibrate LOS levels for exynos5420/5800 Vivek Gautam
2014-08-27  1:58   ` Jingoo Han
2014-08-28  4:29     ` Vivek Gautam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox