]> git.ipfire.org Git - thirdparty/u-boot.git/commit
net: phy: Factor out PHY GPIO reset code
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Mon, 18 Mar 2024 14:57:01 +0000 (15:57 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 26 Mar 2024 23:58:26 +0000 (19:58 -0400)
commite99a6efa80eaf69aa07d5845f6d2bb362a81c0dd
treedb6bb5520f2527aa5ccf43f83147ab2276b894e2
parent85d44e424a32b49f2c9ddf002a684e43bb7828c1
net: phy: Factor out PHY GPIO reset code

Pull the PHY GPIO reset code into separate function, since
this is and will be reused multiple times. Set up default
reset assert and deassert timing to generous 20ms and 1ms
for maximum compatibility in case those DT properties are
missing.

Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
drivers/net/phy/ethernet_id.c
drivers/net/phy/phy.c
include/phy.h