소스 검색

net: phy: bcm7xxx: add an explicit version check for GPHY rev G0

GPHY revision G0 has its version rolled over to 0x10, introduce an
explicit check for that revision and invoke the proper workaround
function for it.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Florian Fainelli 11 년 전
부모
커밋
60efff0c3d
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      drivers/net/phy/bcm7xxx.c

+ 2 - 0
drivers/net/phy/bcm7xxx.c

@@ -252,6 +252,8 @@ static int bcm7xxx_28nm_config_init(struct phy_device *phydev)
 		break;
 		break;
 	case 0xe0:
 	case 0xe0:
 	case 0xf0:
 	case 0xf0:
+	/* Rev G0 introduces a roll over */
+	case 0x10:
 		ret = bcm7xxx_28nm_e0_plus_afe_config_init(phydev);
 		ret = bcm7xxx_28nm_e0_plus_afe_config_init(phydev);
 		break;
 		break;
 	default:
 	default: