Skip to content

Instantly share code, notes, and snippets.

@bkrepo
Created December 20, 2016 01:51
Show Gist options
  • Select an option

  • Save bkrepo/d8717fc593f627b8a59719ad06e56d1f to your computer and use it in GitHub Desktop.

Select an option

Save bkrepo/d8717fc593f627b8a59719ad06e56d1f to your computer and use it in GitHub Desktop.
Remove the disabling advertise patch
From 60cf7ed36b9f29a6595cf5c3d4b39dd0ae36e31b Mon Sep 17 00:00:00 2001
From: Brian Kim <[email protected]>
Date: Fri, 4 Nov 2016 15:41:17 +0900
Subject: [PATCH] ODROID-C2: eth: phy: Remove the disabling advertise
1000baseT/Full
ODROID-C2 supports the gigabit ethernet. So. this is generating the
potential error which is wrong ethernet link speed detection.
Change-Id: I825caa4877abbda3c152d208d2131736342a54e8
Signed-off-by: Brian Kim <[email protected]>
---
drivers/amlogic/ethernet/phy/am_realtek.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/amlogic/ethernet/phy/am_realtek.c b/drivers/amlogic/ethernet/phy/am_realtek.c
index 47e6c4f..9e3dcc3 100644
--- a/drivers/amlogic/ethernet/phy/am_realtek.c
+++ b/drivers/amlogic/ethernet/phy/am_realtek.c
@@ -34,15 +34,11 @@ MODULE_LICENSE("GPL");
static int rtl8211f_config_init(struct phy_device *phydev)
{
- int val;
/* we want to disable eee */
phy_write(phydev, RTL8211F_MMD_CTRL, 0x7);
phy_write(phydev, RTL8211F_MMD_DATA, 0x3c);
phy_write(phydev, RTL8211F_MMD_CTRL, 0x4007);
phy_write(phydev, RTL8211F_MMD_DATA, 0x0);
-/* disable 1000m adv*/
- val = phy_read(phydev, 0x9);
- phy_write(phydev, 0x9, val&(~(1<<9)));
/* rx reg 21 bit 3 tx reg 17 bit 8*/
/*phy_write(phydev, 0x1f, 0xd08);
val = phy_read(phydev, 0x15);
--
2.7.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment