]> git.dujemihanovic.xyz Git - u-boot.git/commit
phy: Add generic_{setup,shutdown}_phy() helpers
authorPatrice Chotard <patrice.chotard@foss.st.com>
Tue, 6 Sep 2022 06:15:26 +0000 (08:15 +0200)
committerMarek Vasut <marex@denx.de>
Mon, 10 Oct 2022 16:08:18 +0000 (18:08 +0200)
commit84e561407a5f62a8746dcf8f920e4682690435a0
treef09f2e8d1ea772812c45b7c0bbba336342b1dcc8
parent7cc1af902dfad290ab39b0ee52128b18d83a151a
phy: Add generic_{setup,shutdown}_phy() helpers

In drivers usb/host/{ehci,ohci}-generic.c, {ehci,ohci}_setup_phy() and
{ehci,ohci}_shutdown_phy() shares 95% of common code.
Factorize this code in new generic_{setup,shudown}_phy() functions.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Cc: Marek Vasut <marex@denx.de>
Cc: Simon Glass <sjg@chromium.org>
drivers/phy/phy-uclass.c
include/generic-phy.h