Skip to contentSkip to conversation

e1000: add support for Marvell Alaska M88E1118R PHY

PATCH In review Florian Fainelli 3 participants 4 messages Jan 19, 2011 – Jan 21, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 e1000: add support for Marvell Alaska M88E1118R PHY

From: Florian Fainelli <[email protected]>

This patch adds support for Marvell Alask M88E188R PHY chips. Support for other M88* PHYs is already there, so there is nothing more to add than its PHY id.

CC Dirk Brandewie <[email protected]>
CC Jeff Kirsher <[email protected]>

---

drivers/net/e1000/e1000_hw.c +3 -1
index aed223b..7501d97 100644
@@ -124,6 +124,7 @@ static s32 e1000_set_phy_type(struct e1000_hw *hw)
 	case M88E1000_I_PHY_ID:
 	case M88E1011_I_PHY_ID:
 	case M88E1111_I_PHY_ID:
+	case M88E1118_E_PHY_ID:
 		hw->phy_type = e1000_phy_m88;
 		break;
 	case IGP01E1000_I_PHY_ID:
@@ -3222,7 +3223,8 @@ static s32 e1000_detect_gig_phy(struct e1000_hw *hw)
 		break;
 	case e1000_ce4100:
 		if ((hw->phy_id == RTL8211B_PHY_ID) ||
-		    (hw->phy_id == RTL8201N_PHY_ID))
+		    (hw->phy_id == RTL8201N_PHY_ID) ||
+		    (hw->phy_id == M88E1118_E_PHY_ID))
 			match = true;
 		break;
 	case e1000_82541:
drivers/net/e1000/e1000_hw.h +1 -0
index 196eeda..c70b23d 100644
@@ -2917,6 +2917,7 @@ struct e1000_host_command_info {
 #define M88E1000_14_PHY_ID M88E1000_E_PHY_ID
 #define M88E1011_I_REV_4   0x04
 #define M88E1111_I_PHY_ID  0x01410CC0
+#define M88E1118_E_PHY_ID  0x01410E40
 #define L1LXT971A_PHY_ID   0x001378E0
 
 #define RTL8211B_PHY_ID    0x001CC910
Signature · 1 line
1.7.1
#1 lore raw
Quoted 10 lines · Florian Fainelli

From: Florian Fainelli <[email protected]>

This patch adds support for Marvell Alask M88E188R PHY chips. Support for other M88* PHYs is already there, so there is nothing more to add than its PHY id.

CC Dirk Brandewie <[email protected]>
CC Jeff Kirsher <[email protected]>

---

The patch itself looks fine. I am concerned about validation.

Dirk - is there a chance that the ce4100 will use this PHY? If so, can you cover the validation?

For now I will add this to my net-next tree while I await word from Dirk.

Signature · 2 lines
Cheers,
Jeff
#2 lore raw
Quoted 12 lines · Jeff Kirsher
Quoted 10 lines · Florian Fainelli

From: Florian Fainelli <[email protected]>

This patch adds support for Marvell Alask M88E188R PHY chips. Support for other M88* PHYs is already there, so there is nothing more to add than its PHY id.

CC Dirk Brandewie <[email protected]>
CC Jeff Kirsher <[email protected]>

---

Quoted 4 lines

The patch itself looks fine. I am concerned about validation.

Dirk - is there a chance that the ce4100 will use this PHY? If so, can you cover the validation?

Florian is working on a CE4100 based platform. It looks like they used a different PHY from the Flacon Falls reference platform. I can't directly test this patch since I don't have their hardware. I will be testing .38-rc1 next week on falcon falls.

I think the best we can do without the hardware is to compare the data sheet for the new PHY with the PHYs already supported and make sure they are compatible. If the datasheets match up for the features the driver is using this seems pretty low risk IMHO.

--Dirk

Quoted 3 lines

For now I will add this to my net-next tree while I await word from Dirk.

#3 lore raw

Hello Dirk, Jeff,

Quoted 2 lines · On Thursday 20 January 2011 19:49:19 Dirk Brandewie wrote:
Quoted 1 line · Jeff Kirsher

On Wed, Jan 19, 2011 at 01:09, Florian Fainelli <[email protected]>

Quoted 13 lines · wrote:
Quoted 13 lines
Quoted 10 lines

From: Florian Fainelli <[email protected]>

This patch adds support for Marvell Alask M88E188R PHY chips. Support for other M88* PHYs is already there, so there is nothing more to add than its PHY id.

CC Dirk Brandewie <[email protected]>
CC Jeff Kirsher <[email protected]>

---

The patch itself looks fine. I am concerned about validation.

Quoted 7 lines
Quoted 2 lines

Dirk - is there a chance that the ce4100 will use this PHY? If so, can you cover the validation?

Florian is working on a CE4100 based platform. It looks like they used a different PHY from the Flacon Falls reference platform. I can't directly test this patch since I don't have their hardware. I will be testing .38-rc1 next week on falcon falls.

Indeed, we use this PHY on our hardware.

Quoted 5 lines

I think the best we can do without the hardware is to compare the data sheet for the new PHY with the PHYs already supported and make sure they are compatible. If the datasheets match up for the features the driver is using this seems pretty low risk IMHO.

As far as I could check, all M88E111* should behave the same for the setup done in e1000.
--
Florian