]> git.baikalelectronics.ru Git - uboot.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)
commit8b0fa66882783bba9adcfeda58066f7ef5bb66be
treedf00fa86fd63286923b1b1ab1b05cd1408ef3d7d
parentf724a82c4cdc7f374962fa11fadb09b8c758cda9
phy: nop-phy: Fix phy reset if no reset-gpio defined

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

Fixes: 668d0273f889 ("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