Changeset 45fecbb6 in rtems


Ignore:
Timestamp:
Jun 16, 2013, 1:40:03 PM (6 years ago)
Author:
Jiri Gaisler <jiri@…>
Branches:
4.11, master
Children:
9a037da9
Parents:
1bdc6d1
git-author:
Jiri Gaisler <jiri@…> (06/16/13 13:40:03)
git-committer:
Joel Sherrill <joel.sherrill@…> (06/19/13 13:21:49)
Message:

greth: do not advertise 1000M capability if MAC does not support it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/libchip/network/greth.c

    r1bdc6d1 r45fecbb6  
    307307
    308308    while ((read_mii(phyaddr, 0)) & 0x8000) {}
     309    phystatus = read_mii(phyaddr, 1);
     310
     311    /* Disable Gbit auto-neg advertisement if MAC does not support it */
     312
     313    if ((!sc->gbit_mac) && (phystatus & 0x100)) write_mii(phyaddr, 9, 0);
     314
     315    /* Restart auto-negotiation if available */
     316    if (phystatus & 0x08) {
     317        write_mii(phyaddr, 0, phyctrl | 0x1200);
     318        phyctrl = read_mii(phyaddr, 0);
     319    }
    309320
    310321    /* Check if PHY is autoneg capable and then determine operating mode,
Note: See TracChangeset for help on using the changeset viewer.