Skip to content

Commit 1728c05

Browse files
committed
Merge branch 'lan8742-phy'
Yuiko Oshino says: ==================== net: phy: add LAN8742 phy support add LAN8742 phy support update LAN88xx phy ID and phy ID mask so that it can coexist with LAN8742 The current phy IDs on the available hardware. LAN8742 0x0007C130, 0x0007C131 LAN88xx 0x0007C132 v3->v4: - fixed the one tab missing issue in the smsc.c. v2->v3: -added comments about the 0xfffffff2 mask that is for the differentiation and the future revisions. v1->v2: -removed "REVIEW REQUEST3" from the PATCH 1/2. ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents 613707e + 53ad228 commit 1728c05

File tree

2 files changed

+30
-3
lines changed

2 files changed

+30
-3
lines changed

drivers/net/phy/microchip.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,8 @@ static int lan88xx_config_aneg(struct phy_device *phydev)
344344

345345
static struct phy_driver microchip_phy_driver[] = {
346346
{
347-
.phy_id = 0x0007c130,
348-
.phy_id_mask = 0xfffffff0,
347+
.phy_id = 0x0007c132,
348+
.phy_id_mask = 0xfffffff2,
349349
.name = "Microchip LAN88xx",
350350

351351
/* PHY_GBIT_FEATURES */
@@ -369,7 +369,7 @@ static struct phy_driver microchip_phy_driver[] = {
369369
module_phy_driver(microchip_phy_driver);
370370

371371
static struct mdio_device_id __maybe_unused microchip_tbl[] = {
372-
{ 0x0007c130, 0xfffffff0 },
372+
{ 0x0007c132, 0xfffffff2 },
373373
{ }
374374
};
375375

drivers/net/phy/smsc.c

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,32 @@ static struct phy_driver smsc_phy_driver[] = {
481481
.get_strings = smsc_get_strings,
482482
.get_stats = smsc_get_stats,
483483

484+
.suspend = genphy_suspend,
485+
.resume = genphy_resume,
486+
}, {
487+
.phy_id = 0x0007c130, /* 0x0007c130 and 0x0007c131 */
488+
.phy_id_mask = 0xfffffff2,
489+
.name = "Microchip LAN8742",
490+
491+
/* PHY_BASIC_FEATURES */
492+
.flags = PHY_RST_AFTER_CLK_EN,
493+
494+
.probe = smsc_phy_probe,
495+
496+
/* basic functions */
497+
.read_status = lan87xx_read_status,
498+
.config_init = smsc_phy_config_init,
499+
.soft_reset = smsc_phy_reset,
500+
501+
/* IRQ related */
502+
.config_intr = smsc_phy_config_intr,
503+
.handle_interrupt = smsc_phy_handle_interrupt,
504+
505+
/* Statistics */
506+
.get_sset_count = smsc_get_sset_count,
507+
.get_strings = smsc_get_strings,
508+
.get_stats = smsc_get_stats,
509+
484510
.suspend = genphy_suspend,
485511
.resume = genphy_resume,
486512
} };
@@ -498,6 +524,7 @@ static struct mdio_device_id __maybe_unused smsc_tbl[] = {
498524
{ 0x0007c0d0, 0xfffffff0 },
499525
{ 0x0007c0f0, 0xfffffff0 },
500526
{ 0x0007c110, 0xfffffff0 },
527+
{ 0x0007c130, 0xfffffff2 },
501528
{ }
502529
};
503530

0 commit comments

Comments
 (0)