drivers: ethernet: phy_mii: correct indentation
correct indentation Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
This commit is contained in:
parent
aa6ac8e650
commit
b1483a69d6
1 changed files with 10 additions and 10 deletions
|
@ -221,17 +221,17 @@ static int check_autonegotiation_completion(const struct device *dev)
|
|||
uint16_t c1kt_reg = 0;
|
||||
uint16_t s1kt_reg = 0;
|
||||
|
||||
/* On some PHY chips, the BMSR bits are latched, so the first read may
|
||||
* show incorrect status. A second read ensures correct values.
|
||||
*/
|
||||
if (phy_mii_reg_read(dev, MII_BMSR, &bmsr_reg) < 0) {
|
||||
return -EIO;
|
||||
}
|
||||
/* On some PHY chips, the BMSR bits are latched, so the first read may
|
||||
* show incorrect status. A second read ensures correct values.
|
||||
*/
|
||||
if (phy_mii_reg_read(dev, MII_BMSR, &bmsr_reg) < 0) {
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
/* Second read, clears the latched bits and gives the correct status */
|
||||
if (phy_mii_reg_read(dev, MII_BMSR, &bmsr_reg) < 0) {
|
||||
return -EIO;
|
||||
}
|
||||
/* Second read, clears the latched bits and gives the correct status */
|
||||
if (phy_mii_reg_read(dev, MII_BMSR, &bmsr_reg) < 0) {
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
if (!(bmsr_reg & MII_BMSR_AUTONEG_COMPLETE)) {
|
||||
if (data->autoneg_timeout-- == 0U) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue