]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: phy: Request rgmii-id phy reset gpio as output
authorStefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Tue, 2 May 2023 12:50:43 +0000 (14:50 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 5 May 2023 22:03:18 +0000 (18:03 -0400)
Request the reset gpio of the rgmii-id phy as output to be consistent
with the eth-phy-uclass driver.

Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Reviewed-by: Michal Simek <michal.simek@amd.com>
drivers/net/phy/ethernet_id.c

index 8864f99bb32fa73dc7b74b18087de239934b9f57..a715e83db98e80a1cdd661232c7b0e1b3a76ca48 100644 (file)
@@ -39,7 +39,7 @@ struct phy_device *phy_connect_phy_id(struct mii_dev *bus, struct udevice *dev,
 
        if (!IS_ENABLED(CONFIG_DM_ETH_PHY)) {
                ret = gpio_request_by_name_nodev(node, "reset-gpios", 0, &gpio,
-                                                GPIOD_ACTIVE_LOW);
+                                                GPIOD_IS_OUT | GPIOD_ACTIVE_LOW);
                if (!ret) {
                        assert = ofnode_read_u32_default(node,
                                                         "reset-assert-us", 0);