
21 Jan
2022
21 Jan
'22
10:18 p.m.
On Mon, Jan 17, 2022 at 05:45:59PM -0600, Adam Ford wrote:
Some usb-nop-xceiv devices use a gpio to put them in and out of reset. Add a reset function to put them into that state. This is similar to how Linux handles the usb-nop-xceiv driver.
Signed-off-by: Adam Ford aford173@gmail.com
V2: Only use the GPIO functions when DM_GPIO is enabled Add error handling so if the GPIO fails, it will shutdown the clocks and return with the error code. Call nop_phy_reset() instead of repeating the same code.
drivers/phy/nop-phy.c:47:23: error: implicit declaration of function 'nop_phy_reset'; did you mean 'nop_phy_init'? [-Werror=implicit-function-declaration] is what I get now on those platforms.
--
Tom