
29 Jan
2022
29 Jan
'22
1:50 p.m.
On Sat, Jan 22, 2022 at 12:02:02PM -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
V3: Encapsulate the nop_phy_ops reference to nop_phy_reset in an if-def so it doesn't appear when DM_GPIO is not enabled.
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.
At the risk of sounding a bit too cranky, please build test v4 for k2e_evm as it's still failing to build due to these changes.
--
Tom