]> git.baikalelectronics.ru Git - uboot.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)
commite05eb6c273d900d00b0fa50a3f4f5698a4a539b0
treef09f2e8d1ea772812c45b7c0bbba336342b1dcc8
parentacdead3d23732f5a13b299c10625c51b9785e7e0
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