]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
phy/micrel: change phy_id_mask for KSZ9021 and KS8001
authorJason Wang <jason77.wang@gmail.com>
Sun, 17 Jun 2012 22:52:09 +0000 (22:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Jun 2012 07:31:36 +0000 (00:31 -0700)
commit48d7d0ad9022b36be9fd8a236fb58ad4c0f3b80c
tree2a9e0dfa356b285ec79056423ebdc3fdfbceea61
parent39d84a58ad6290a43e6503acc8b54ebb7e4ecc54
phy/micrel: change phy_id_mask for KSZ9021 and KS8001

On a freescale imx6q platform, a hardware phy chip KSZ9021 is
recognized as a KS8001 chip by the current driver like this:
eth0: Freescale FEC PHY driver [Micrel KS8001 or KS8721]

KSZ9021 has phy_id 0x00221610, while KSZ8001 has phy_id
0x0022161a, the current phy_id_mask (0x00fffff0/0x00ffff10) can't
distinguish them. So change phy_id_mask to resolve this problem.

Although the micrel datasheet says that the 4 LSB of phyid2 register
contains the chip revision number and the current driver is designed
to follow this rule, in reality the chip implementation doesn't follow
it.

Cc: David J. Choi <david.choi@micrel.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Hui Wang <jason77.wang@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/micrel.c