获取不到phy id
RTL8211E使用这款phy芯片,调用get_phy_id()获取到的id是0x1fffffff可以理解为没获取到,求大佬帮助解答。
static int get_phy_id(struct mii_bus *bus, int addr, u32 *phy_id,
bool is_c45, struct phy_c45_device_ids *c45_ids)
{
int phy_reg;
if (is_c45)
return get_phy_c45_ids(bus, addr, phy_id, c45_ids);
/* Grab the bits from PHYIR1, and put them
* in the upper half */
phy_reg = mdiobus_read(bus, addr, MII_PHYSID1);
if (phy_reg < 0)
return -EIO;
*phy_id = (phy_reg & 0xffff) << 16;
/* Grab the bits from PHYIR2, and put them in the lower half */
phy_reg = mdiobus_read(bus, addr, MII_PHYSID2);
if (phy_reg < 0)
return -EIO;
*phy_id |= (phy_reg & 0xffff);
return 0;
}
...全文
相关推荐
phyID2.rar_phy id如何获取_phyid_如何找到PHY ID
获取网卡物理地址的源程序。花了不少功夫才找到的,已经在使用了。
phy 寄存器分析
IEEE 标准phy 寄存器分析
以太网PHY寄存器分析.zip_childrenr1l_phy 寄存器_phy寄存器_以太网 PHY 寄存器_以太网phy
这是BCM PHY寄存器中IEEE定义的通用寄存器部分,对初学者很有帮助
linux内核net phy流程
linux内核 net phy流程,介绍了net phy流程的driver注册到miibus probe设备。不知道怎么搞的把下载所需积分改小后,系统会自动把积分改回来,如果觉得积分太多就联系我吧
linux mdio 读写phy 寄存器工具
linux mdio 读写phy 寄存器工具


驱动程序开发区
