-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add 2 parameters for driver tg3 can support "short preamble" and "reset". #71
Add 2 parameters for driver tg3 can support "short preamble" and "reset". #71
Conversation
Signed-off-by: roy_lee <roy_lee@accton.com>
tp->mi_mode &= ~MAC_MI_MODE_AUTO_POLL; | ||
+ | ||
+ if(short_preamble) { | ||
+ netdev_info(tp->dev, "Setting short preamble..."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should remove this, it is debug level info.
} | ||
|
||
+ if (bcm5718s_reset && tp->phy_id == TG3_PHY_ID_BCM5718S) { | ||
+ netdev_info(tp->dev, "BCM5718S reset..."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should remove this, it is debug level info.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove unnecessary info
Signed-off-by: roy_lee <roy_lee@accton.com>
Signed-off-by: roy_lee <roy_lee@accton.com>
I've removed these 2 debug messages and verified. |
Add parameter to enable *short preamble* for MAC, so MDIO access to some external PHY, like BCM54616, can be validated. Applies to the five platforms below, that have the ethernet controller BCM5720: as7116_54x, as7326_56x, as7716_32x-r0, as7716_32xb, and as7816_64x Verified by mii-tool. (31 is the address of external phy). root@sonic:/home/admin# mii-tool -v eth0 -p 31 using the specified MII index 31. eth0: negotiated, link ok product info: vendor 00:d8:97, model 17 rev 2 basic mode: autonegotiation enabled basic status: autonegotiation complete, link ok capabilities: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD advertising: flow-control link partner: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD Note, this upstreams a patch to the SONiC Linux kernel added in 2018 [1][2][3]. [1]: sonic-net/sonic-linux-kernel#71 [2]: sonic-net/sonic-linux-kernel@ad754bd [3]: sonic-net/sonic-buildimage#2318 Signed-off-by: Roy Lee <roy_lee@accton.com> Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de> Signed-off-by: NipaLocal <nipa@local>
Add parameter to enable *short preamble* for MAC, so MDIO access to some external PHY, like BCM54616, can be validated. Applies to the five platforms below, that have the ethernet controller BCM5720: as7116_54x, as7326_56x, as7716_32x-r0, as7716_32xb, and as7816_64x Verified by mii-tool. (31 is the address of external phy). root@sonic:/home/admin# mii-tool -v eth0 -p 31 using the specified MII index 31. eth0: negotiated, link ok product info: vendor 00:d8:97, model 17 rev 2 basic mode: autonegotiation enabled basic status: autonegotiation complete, link ok capabilities: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD advertising: flow-control link partner: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD Note, this upstreams a patch to the SONiC Linux kernel added in 2018 [1][2][3]. [1]: sonic-net/sonic-linux-kernel#71 [2]: sonic-net/sonic-linux-kernel@ad754bd [3]: sonic-net/sonic-buildimage#2318 Signed-off-by: Roy Lee <roy_lee@accton.com> Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de> Signed-off-by: NipaLocal <nipa@local>
Add parameter to enable *short preamble* for MAC, so MDIO access to some external PHY, like BCM54616, can be validated. Applies to the five platforms below, that have the ethernet controller BCM5720: as7116_54x, as7326_56x, as7716_32x-r0, as7716_32xb, and as7816_64x Verified by mii-tool. (31 is the address of external phy). root@sonic:/home/admin# mii-tool -v eth0 -p 31 using the specified MII index 31. eth0: negotiated, link ok product info: vendor 00:d8:97, model 17 rev 2 basic mode: autonegotiation enabled basic status: autonegotiation complete, link ok capabilities: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD advertising: flow-control link partner: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD Note, this upstreams a patch to the SONiC Linux kernel added in 2018 [1][2][3]. [1]: sonic-net/sonic-linux-kernel#71 [2]: sonic-net/sonic-linux-kernel@ad754bd [3]: sonic-net/sonic-buildimage#2318 Signed-off-by: Roy Lee <roy_lee@accton.com> Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de> Signed-off-by: NipaLocal <nipa@local>
Add parameter to enable *short preamble* for MAC, so MDIO access to some external PHY, like BCM54616, can be validated. Applies to the five platforms below, that have the ethernet controller BCM5720: as7116_54x, as7326_56x, as7716_32x-r0, as7716_32xb, and as7816_64x Verified by mii-tool. (31 is the address of external phy). root@sonic:/home/admin# mii-tool -v eth0 -p 31 using the specified MII index 31. eth0: negotiated, link ok product info: vendor 00:d8:97, model 17 rev 2 basic mode: autonegotiation enabled basic status: autonegotiation complete, link ok capabilities: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD advertising: flow-control link partner: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD Note, this upstreams a patch to the SONiC Linux kernel added in 2018 [1][2][3]. [1]: sonic-net/sonic-linux-kernel#71 [2]: sonic-net/sonic-linux-kernel@ad754bd [3]: sonic-net/sonic-buildimage#2318 Signed-off-by: Roy Lee <roy_lee@accton.com> Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de> Signed-off-by: NipaLocal <nipa@local>
Add "short preamble" parameter for MAC can validate mdio access to some external PHY.
Add "reset" parameter for MAC to reset PHY at driver starting up.
Signed-off-by: roy_lee roy_lee@accton.com