Skip to content

Commit b1483a6

Browse files
maass-hamburgdkalowsk
authored andcommitted
drivers: ethernet: phy_mii: correct indentation
correct indentation Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
1 parent aa6ac8e commit b1483a6

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

drivers/ethernet/phy/phy_mii.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -221,17 +221,17 @@ static int check_autonegotiation_completion(const struct device *dev)
221221
uint16_t c1kt_reg = 0;
222222
uint16_t s1kt_reg = 0;
223223

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+
}
230230

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+
}
235235

236236
if (!(bmsr_reg & MII_BMSR_AUTONEG_COMPLETE)) {
237237
if (data->autoneg_timeout-- == 0U) {

0 commit comments

Comments
 (0)