Skip to content

USB: add devicetree helpers for determining dr_mode and phy_type

Marc Kleine-Budde linux-arm-kernel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest9 patches 0 repliesNew
  2. v15 of 9 patches 0 repliesSuperseded

Changes in v5 from the cover letter

- add support for USB_DR_MODE_DUAL_ROLE in dt helper

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9USB otg: use try_module_get in all usb_get_phy functions and add missing module_putdrivers/usb/otg/otg.c+7 -31 reply
1/9USB otg: use try_module_get in all usb_get_phy functions and add missing module_put+0 -01 reply
1/9USB otg: use try_module_get in all usb_get_phy functions and add missing module_put+0 -01 reply
1/9USB otg: use try_module_get in all usb_get_phy functions and add missing module_put+0 -01 reply
1/9USB otg: use try_module_get in all usb_get_phy functions and add missing module_put+0 -00 replies
1/9USB otg: use try_module_get in all usb_get_phy functions and add missing module_put+0 -00 replies
2/9USB: 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/9USB: move bulk of otg/otg.c to phy/phy.c+0 -01 reply
3/9USB: 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+129 -01 reply
3/9USB: add devicetree helpers for determining dr_mode and phy_type+0 -01 reply
3/9USB: add devicetree helpers for determining dr_mode and phy_type+0 -01 reply
4/9USB chipidea: ci13xxx-imx: create dynamic platformdatadrivers/usb/chipidea/ci13xxx_imx.c+15 -100 replies
5/9USB chipidea: add PTW and PTS handlingDocumentation/devicetree/bindings/usb/ci13xxx-imx.txt drivers/usb/chipidea/bits.h drivers/usb/chipidea/ci13xxx_imx.c +2 more+61 -10 replies
6/9USB chipidea: introduce dual role mode pdata flagsdrivers/usb/chipidea/core.c include/linux/usb/chipidea.h+17 -70 replies
7/9USB chipidea i.MX: introduce dr_mode propertyDocumentation/devicetree/bindings/usb/ci13xxx-imx.txt drivers/usb/chipidea/ci13xxx_imx.c+2 -00 replies
8/9USB mxs-phy: Register phy with frameworkdrivers/usb/otg/mxs-phy.c+9 -00 replies
9/9USB chipidea i.MX: use devm_usb_get_phy_by_phandle to get phydrivers/usb/chipidea/ci13xxx_imx.c+17 -210 replies

Reviews trailers per patch

10 of 17 patches have a Reviewed-by or Acked-by.

PatchKishon Vijay Abraham IFelipe BalbiPeter Chen
1/9R-b A-b
1/9R-b A-b
1/9R-b A-b
1/9R-b A-b
1/9R-b A-b
1/9R-b A-b
2/9
2/9
3/9
3/9
3/9
4/9R-b
5/9
6/9
7/9R-b
8/9R-b A-b R-b
9/9R-b R-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 v5 thread

Cover letter [PATCH v5 0/9] USB: add devicetree helpers for determining dr_mode and phy_type

Hello, this is the 5th round of Sascha's patch series, rebased to Greg's usb-next.

Please consider to apply.

regards,
Marc

changes since v4:
- add support for USB_DR_MODE_DUAL_ROLE in dt helper

changes since v3:

- add phy patches (which were accidently already part of v2)
- Use OP_DEVLC instead of OP_PORTSC for lpm case
- Use enum usb_dr_mode ub ci_hdrc_probe()

changes since v2:

- fix adding of GPL Header was in wrong patch
- add missing hunk for new file of.c

changes since v1:
- move phy specific of helper to drivers/usb/phy/of.c
- use strcmp instead of strcasecmp for matching property values
- change usb_phy_dr_mode to usb_dr_mode
- change USBPHY_INTERFACE_MODE_NA to USBPHY_INTERFACE_MODE_UNKNOWN
- add copyright header to new files
- chipidea: drop mdelay at end of PTS/PTW setup
- chipidea: implement lpm core type handling for PTS/PTW

The following changes since commit 74e1a2a39355b2d3ae8c60c78d8add162c6d7183:

Merge tag 'usb-3.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb (2013-02-21 12:20:00 -0800)

are available in the git repository at:

git://git.pengutronix.de/git/mkl/linux.git tags/usb-chipidea-for-next-v5

for you to fetch changes up to 1065bb064c06565cc0b86337d52977ab5afc3e90:

USB chipidea i.MX: use devm_usb_get_phy_by_phandle to get phy (2013-02-27 12:54:13 +0100)

----------------------------------------------------------------
USB: chipidea patches for v3.10

These add OF helpers for handling the dr_mode and phy_type property and makes use of them in the chipidea driver.

----------------------------------------------------------------
Marc Kleine-Budde (1):
USB otg: use try_module_get in all usb_get_phy functions and add missing module_put

Michael Grzeschik (3):
USB: add devicetree helpers for determining dr_mode and phy_type USB chipidea: ci13xxx-imx: create dynamic platformdata USB chipidea: add PTW and PTS handling

Sascha Hauer (5):
USB: move bulk of otg/otg.c to phy/phy.c
USB chipidea: introduce dual role mode pdata flags USB chipidea i.MX: introduce dr_mode property
USB mxs-phy: Register phy with framework
USB chipidea i.MX: use devm_usb_get_phy_by_phandle to get phy

 .../devicetree/bindings/usb/ci13xxx-imx.txt        |    6 +
 drivers/usb/chipidea/bits.h                        |   14 +-
 drivers/usb/chipidea/ci13xxx_imx.c                 |   67 +--
 drivers/usb/chipidea/core.c                        |   61 ++-
 drivers/usb/otg/mxs-phy.c                          |    9 +
 drivers/usb/otg/otg.c                              |  423 -------------------
 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/chipidea.h                       |    3 +-
 include/linux/usb/of.h                             |   27 ++
 include/linux/usb/otg.h                            |    8 +
 include/linux/usb/phy.h                            |    9 +
 14 files changed, 689 insertions(+), 462 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