]> git.dujemihanovic.xyz Git - u-boot.git/commit
phy: Extend generic_setup_phy() with PHY mode and submode
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 8 Sep 2024 21:09:03 +0000 (23:09 +0200)
committerMarek Vasut <marex@denx.de>
Mon, 9 Sep 2024 15:18:04 +0000 (17:18 +0200)
commit35941d3a962dbee1fdf9bb3fe0eb7185d833b9d8
tree4bb0546ecc6de1fceb3481c11a7d68e5150ea09f
parentd0f74bd417daf6492975ce346843ba0767caf51c
phy: Extend generic_setup_phy() with PHY mode and submode

Extend generic_setup_phy() parameter list with PHY mode and submode and
call generic_phy_set_mode() in generic_setup_phy(), so the generic PHY
setup function can configure the PHY into correct mode before powering
the PHY up.

Update all call sites of generic_setup_phy() as well, all of which are
USB host related, except for DM test which now behaves as a USB host
test.

Note that if the PHY driver does not implement the .set_mode callback,
generic_phy_set_mode() call returns 0 and does not error out, so this
should not break any existing systems.

Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
drivers/phy/phy-uclass.c
drivers/usb/host/ehci-generic.c
drivers/usb/host/ehci-msm.c
drivers/usb/host/ehci-mx6.c
drivers/usb/host/ehci-pci.c
drivers/usb/host/ohci-generic.c
include/generic-phy.h
test/dm/phy.c