forked from openwrt/openwrt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,7 +55,7 @@ Signed-off-by: David Bauer <[email protected]> | |
#define PHY_PMA_MGBT_POLARITY 0x82 | ||
#define PHY_MDI_MDI_X_MASK GENMASK(1, 0) | ||
#define PHY_MDI_MDI_X_NORMAL 0x3 | ||
@@ -228,7 +235,8 @@ static int gpy_ack_interrupt(struct phy_ | ||
@@ -228,7 +235,8 @@ static int gpy_ack_interrupt(struct phy_device *phydev) | ||
|
||
/* Clear all pending interrupts */ | ||
ret = phy_read(phydev, PHY_ISTAT); | ||
|
@@ -65,7 +65,7 @@ Signed-off-by: David Bauer <[email protected]> | |
} | ||
|
||
static int gpy_mbox_read(struct phy_device *phydev, u32 addr) | ||
@@ -270,6 +278,35 @@ out: | ||
@@ -270,10 +278,41 @@ out: | ||
return ret; | ||
} | ||
|
||
|
@@ -101,3 +101,9 @@ Signed-off-by: David Bauer <[email protected]> | |
static int gpy_config_init(struct phy_device *phydev) | ||
{ | ||
/* Nothing to configure. Configuration Requirement Placeholder */ | ||
return 0; | ||
+ | ||
+ return gpy_led_write(phydev); | ||
} | ||
|
||
static int gpy_probe(struct phy_device *phydev) |