File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -221,17 +221,17 @@ static int check_autonegotiation_completion(const struct device *dev)
221
221
uint16_t c1kt_reg = 0 ;
222
222
uint16_t s1kt_reg = 0 ;
223
223
224
- /* On some PHY chips, the BMSR bits are latched, so the first read may
225
- * show incorrect status. A second read ensures correct values.
226
- */
227
- if (phy_mii_reg_read (dev , MII_BMSR , & bmsr_reg ) < 0 ) {
228
- return - EIO ;
229
- }
224
+ /* On some PHY chips, the BMSR bits are latched, so the first read may
225
+ * show incorrect status. A second read ensures correct values.
226
+ */
227
+ if (phy_mii_reg_read (dev , MII_BMSR , & bmsr_reg ) < 0 ) {
228
+ return - EIO ;
229
+ }
230
230
231
- /* Second read, clears the latched bits and gives the correct status */
232
- if (phy_mii_reg_read (dev , MII_BMSR , & bmsr_reg ) < 0 ) {
233
- return - EIO ;
234
- }
231
+ /* Second read, clears the latched bits and gives the correct status */
232
+ if (phy_mii_reg_read (dev , MII_BMSR , & bmsr_reg ) < 0 ) {
233
+ return - EIO ;
234
+ }
235
235
236
236
if (!(bmsr_reg & MII_BMSR_AUTONEG_COMPLETE )) {
237
237
if (data -> autoneg_timeout -- == 0U ) {
You can’t perform that action at this time.
0 commit comments