
On Fri, Jan 21, 2022 at 3:18 PM Tom Rini trini@konsulko.com wrote:
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.
I apparently forgot to encapsulate the nop_phy_ops reference to the new function in an if-def. I'll send a V3 shortly.
adam
-- Tom