]> git.dujemihanovic.xyz Git - u-boot.git/commit
phy: nop-phy: Fix phy reset if no reset-gpio defined
authorTim Harvey <tharvey@gateworks.com>
Mon, 28 Feb 2022 22:53:21 +0000 (14:53 -0800)
committerMarek Vasut <marex@denx.de>
Mon, 28 Feb 2022 23:21:11 +0000 (00:21 +0100)
commita41b88ec02ea1dbf4e5e6e895625a5fee96097c5
treedf00fa86fd63286923b1b1ab1b05cd1408ef3d7d
parentf9a719e2954473f9be1f8c14a28288f943a00dd2
phy: nop-phy: Fix phy reset if no reset-gpio defined

Ensure there is a valid reset-gpio defined before using it.

Fixes: f9852acdce02 ("phy: nop-phy: Fix enabling reset")
Cc: Adam Ford <aford173@gmail.com>
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
drivers/phy/nop-phy.c