Skip to content

Samsung USB PHY SoC support cleanup

Tomasz Figa linux-arm-kernel linux-samsung-soc 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 0 repliesNew
  2. v13 of 6 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- rebased to latest usb-next

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6usb: phy: samsung: Select common driver part implicitlydrivers/usb/phy/Kconfig+1 -10 replies
2/6usb: phy: samsung: Use clk_get to get reference clockdrivers/usb/phy/phy-samsung-usb.c+2 -20 replies
3/6usb: phy: samsung: Consolidate reference clock rate handlingdrivers/usb/phy/phy-samsung-usb.c drivers/usb/phy/phy-samsung-usb.h drivers/usb/phy/phy-samsung-usb2.c +1 more+86 -490 replies
4/6usb: phy: samsung: Pass set_isolation callback through driver datadrivers/usb/phy/phy-samsung-usb.c drivers/usb/phy/phy-samsung-usb.h drivers/usb/phy/phy-samsung-usb2.c +1 more+23 -350 replies
5/6usb: phy: samsung: Pass enable/disable callbacks through driver datadrivers/usb/phy/phy-samsung-usb.h drivers/usb/phy/phy-samsung-usb2.c drivers/usb/phy/phy-samsung-usb3.c+15 -130 replies
6/6usb: phy: samsung: Add support for USB 2.0 PHY on Exynos 4x12drivers/usb/phy/phy-samsung-usb.h drivers/usb/phy/phy-samsung-usb2.c+19 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/6] Samsung USB PHY SoC support cleanup

This patch series intends to improve handling of SoC-specific differences in Samsung USB PHY drivers, by reducing the need to explicitly check SoC type using if and switch statements.

In addition, last patch adds support for Exynos 4x12, as this is simply a matter of adding appropriate driver data and additional case in two switches.

Tested on Exynos4210-based Trats board and Exynos4412-based internal Samsung board.

Changes since v1:
- rebased to latest usb-next

Tomasz Figa (6):
usb: phy: samsung: Select common driver part implicitly
usb: phy: samsung: Use clk_get to get reference clock
usb: phy: samsung: Consolidate reference clock rate handling
usb: phy: samsung: Pass set_isolation callback through driver data
usb: phy: samsung: Pass enable/disable callbacks through driver data
usb: phy: samsung: Add support for USB 2.0 PHY on Exynos 4x12

 drivers/usb/phy/Kconfig            |   2 +-
 drivers/usb/phy/phy-samsung-usb.c  | 154 ++++++++++++++++++-------------------
 drivers/usb/phy/phy-samsung-usb.h  |  14 +++-
 drivers/usb/phy/phy-samsung-usb2.c |  53 +++++++++----
 drivers/usb/phy/phy-samsung-usb3.c |  23 ++++--
 5 files changed, 146 insertions(+), 100 deletions(-)
Signature · 1 line
1.8.2.1