IP100A Change search phy addr start form 0
Subsystems (2)
PATCH 4/6 IP100A Change search phy addr start form 0
From: Jesse Huang <[email protected]>
Change search phy addr start form 0
Change Logs:
Change search phy addr start form 0
---
drivers/net/sundance.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
212cd4ffa21a57300eae4254bf02e5b33b96f544
drivers/net/sundance.c +3 -2
@@ -21,7 +21,7 @@*/ #define DRV_NAME "sundance" -#define DRV_VERSION "1.01+LK1.13" +#define DRV_VERSION "1.01+LK1.14"#define DRV_RELDATE "04-Aug-2006"
@@ -559,8 +559,9 @@ #endif/* * It seems some phys doesn't deal well with address 0 being accessed * first, so leave address zero to the end of the loop (32 & 31). +* for IP100A the phy should start from 0 */ -for (phy =1 ; phy <=32 && phy_idx <MII_CNT ; phy++) { +for (phy =0 ; phy <=32 && phy_idx <MII_CNT ; phy++) {int phyx = phy &0x1f ;int mii_status =mdio_read (dev, phyx,MII_BMSR );if (mii_status !=0xffff && mii_status !=0x0000 ) {
Signature · 1 line
1.3.GIT
Quoted 27 lines · Jesse Huang
From: Jesse Huang <[email protected]>
Change search phy addr start form 0
Change Logs:
Change search phy addr start form 0---
drivers/net/sundance.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
212cd4ffa21a57300eae4254bf02e5b33b96f544drivers/net/sundance.c +1
-1@@ -21,7 +21,7 @@*/ #define DRV_NAME "sundance" -#define DRV_VERSION "1.01+LK1.13" +#define DRV_VERSION "1.01+LK1.14"#define DRV_RELDATE "04-Aug-2006"
drivers/net/sundance.c #endif · line 567
Quoted 10 lines
drivers/net/sundance.c +2
-1@@ -559,8 +559,9 @@ #endif/* * It seems some phys doesn't deal well with address 0 being accessed * first, so leave address zero to the end of the loop (32 & 31). +* for IP100A the phy should start from 0 */ -for (phy =1 ; phy <=32 && phy_idx <MII_CNT ; phy++) { +for (phy =0 ; phy <=32 && phy_idx <MII_CNT ; phy++) {int phyx = phy &0x1f ;int mii_status =mdio_read (dev, phyx,MII_BMSR );if (mii_status !=0xffff && mii_status !=0x0000 ) {
For IP100A, is the phy built into the chip?
For a standard DP83840[A] phy, phy #0 is a "ghost" which mirrors another phy. For this reason, we scan phy #0 last.
Does the above code not work?
Jeff
Hi Jeff:
In IP100A, phy address is 0. Because IP100A is a single chip, the in chip phy address is 0. so, we must search phy address for 0.
Jesse
----- Original Message -----
From: "Jeff Garzik" <[email protected]>
To: "Jesse Huang" <[email protected]>
Cc: <[email protected]>; <[email protected]>; <[email protected]>
Sent: Friday, August 18, 2006 7:20 PM
Subject: Re: [PATCH 4/6] IP100A Change search phy addr start form 0
Quoted 27 lines · Jesse Huang
From: Jesse Huang <[email protected]>
Change search phy addr start form 0
Change Logs:
Change search phy addr start form 0---
drivers/net/sundance.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
212cd4ffa21a57300eae4254bf02e5b33b96f544drivers/net/sundance.c +1
-1@@ -21,7 +21,7 @@*/ #define DRV_NAME "sundance" -#define DRV_VERSION "1.01+LK1.13" +#define DRV_VERSION "1.01+LK1.14"#define DRV_RELDATE "04-Aug-2006"
drivers/net/sundance.c #endif · line 567
Quoted 10 lines
drivers/net/sundance.c +2
-1@@ -559,8 +559,9 @@ #endif/* * It seems some phys doesn't deal well with address 0 being accessed * first, so leave address zero to the end of the loop (32 & 31). +* for IP100A the phy should start from 0 */ -for (phy =1 ; phy <=32 && phy_idx <MII_CNT ; phy++) { +for (phy =0 ; phy <=32 && phy_idx <MII_CNT ; phy++) {int phyx = phy &0x1f ;int mii_status =mdio_read (dev, phyx,MII_BMSR );if (mii_status !=0xffff && mii_status !=0x0000 ) {
For IP100A, is the phy built into the chip?
For a standard DP83840[A] phy, phy #0 is a "ghost" which mirrors another phy. For this reason, we scan phy #0 last.
Does the above code not work?
Jeff