Linux kernel linux内核4.5及更高版本中struct phy_设备的开发人员发生了什么事?

Linux kernel linux内核4.5及更高版本中struct phy_设备的开发人员发生了什么事?,linux-kernel,linux-device-driver,Linux Kernel,Linux Device Driver,linux内核4.4已将struct phy_设备定义为 363 struct phy_device { 364 /* Information about the PHY type */ 365 /* And management functions */ 366 struct phy_driver *drv; 367 368 struct mii_bus *bus; 369 370 struct device

linux内核4.4已将struct phy_设备定义为

363 struct phy_device {
364         /* Information about the PHY type */
365         /* And management functions */
366         struct phy_driver *drv;
367 
368         struct mii_bus *bus;
369 
370         struct device dev;
内核4.5现在有:

361 struct phy_device {
362         struct mdio_device mdio;
363 
364         /* Information about the PHY type */
365         /* And management functions */
366         struct phy_driver *drv;
367 
368         u32 phy_id;

dev成员发生了什么事?

它被
struct mdio\u device替换
提交消息说

“并非所有连接到MDIO总线的设备都是物理设备。因此,请添加一个 mdio_设备结构,用于表示mdio的通用部分 设备,并将此结构放入phy_设备。“

看看这个,它包含了这个变化

查看更改以了解您需要如何调整您的驱动程序


希望这些信息能引导您相应地移植您的驱动程序。

好的,我想问题已经回答了。谢谢