Skip to content

otg-for-v3.10-v2: separate phy code and add DT helper

Marc Kleine-Budde linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

changes since v1 from the cover letter

- fix compile time breakage on non DT platforms (tnx, Alexander)
- convert mxs-phy to non _relaxed {read,write}l_relaxed() functions (as requested by Alexander)

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4USB: move bulk of otg/otg.c to phy/phy.cdrivers/usb/otg/otg.c drivers/usb/phy/Makefile drivers/usb/phy/phy.c+439 -4270 replies
2/4USB: add devicetree helpers for determining dr_mode and phy_typedrivers/usb/phy/Makefile drivers/usb/phy/of.c drivers/usb/usb-common.c +3 more+130 -00 replies
3/4USB mxs-phy: use readl(), writel() instead of the _relaxed() versionsdrivers/usb/otg/mxs-phy.c+16 -161 reply
3/4USB mxs-phy: use readl(), writel() instead of the _relaxed() versions+0 -01 reply
3/4USB mxs-phy: use readl(), writel() instead of the _relaxed() versions+0 -01 reply
4/4USB mxs-phy: Register phy with frameworkdrivers/usb/otg/mxs-phy.c+9 -00 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchKishon Vijay Abraham IPeter ChenFelipe Balbi
1/4
2/4
3/4
3/4
3/4
4/4R-b R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/4] otg-for-v3.10-v2: separate phy code and add DT helper

Hello,

this series depends on the bugfix patch "USB otg: use try_module_get in all usb_get_phy functions and add missing module_put" (a.k.a tags/otg-for-v3.9-v1) posted earlier and is inteded for v3.10. It separates the phy from the otg code and adds DT helper functions. In mxs-phy the {read,write}l_relaxed() functions are replaced by the non _relaxed version to improve compile time coverage. Further mxs-phy makes now use of the new usb_add_phy_dev() function to register it's phy.

regards,
Marc

---

changes since v1:
- fix compile time breakage on non DT platforms (tnx, Alexander)
- convert mxs-phy to non _relaxed {read,write}l_relaxed() functions (as requested by Alexander)

---

The following changes since commit 6bef020b4aebd7886281fb7fb37c788d5a365eea:

USB otg: use try_module_get in all usb_get_phy functions and add missing module_put (2013-02-27 12:53:15 +0100)

are available in the git repository at:

git://git.pengutronix.de/git/mkl/linux.git tags/otg-for-v3.10-v2

for you to fetch changes up to f5678b135967ea98256ee5df9a360b5769861d23:

USB mxs-phy: Register phy with framework (2013-02-28 11:36:45 +0100)

----------------------------------------------------------------
USB otg, phy: separate phy and add DT helper

Move phy related code into separate file and add device tree helper functions.

----------------------------------------------------------------
Marc Kleine-Budde (1):
USB mxs-phy: use readl(), writel() instead of the _relaxed() versions

Michael Grzeschik (1):
USB: add devicetree helpers for determining dr_mode and phy_type

Sascha Hauer (2):
USB: move bulk of otg/otg.c to phy/phy.c
USB mxs-phy: Register phy with framework

 drivers/usb/otg/mxs-phy.c |   41 +++--
 drivers/usb/otg/otg.c     |  427 -------------------------------------------
 drivers/usb/phy/Makefile  |    2 +
 drivers/usb/phy/of.c      |   47 +++++
 drivers/usb/phy/phy.c     |  438 +++++++++++++++++++++++++++++++++++++++++++++
 drivers/usb/usb-common.c  |   37 ++++
 include/linux/usb/of.h    |   28 +++
 include/linux/usb/otg.h   |    8 +
 include/linux/usb/phy.h   |    9 +
 9 files changed, 594 insertions(+), 443 deletions(-)
 create mode 100644 drivers/usb/phy/of.c
 create mode 100644 drivers/usb/phy/phy.c
 create mode 100644 include/linux/usb/of.h