net: phy: xilinx_phy: Read phytype using property xlnx,phy-type
This patch reads phytype from property "xlnx,phy-type" instead od simply looking for "phy-type". This is to be inline with Linux and also fixes the issue of detecting it wrongly in u-boot. Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
		
							parent
							
								
									047f3bf828
								
							
						
					
					
						commit
						c643c491b9
					
				|  | @ -105,7 +105,7 @@ static int xilinxphy_of_init(struct phy_device *phydev) | ||||||
| 
 | 
 | ||||||
| 	debug("%s\n", __func__); | 	debug("%s\n", __func__); | ||||||
| 	phytype = fdtdec_get_int(gd->fdt_blob, dev_of_offset(phydev->dev), | 	phytype = fdtdec_get_int(gd->fdt_blob, dev_of_offset(phydev->dev), | ||||||
| 				 "phy-type", -1); | 				 "xlnx,phy-type", -1); | ||||||
| 	if (phytype == XAE_PHY_TYPE_1000BASE_X) | 	if (phytype == XAE_PHY_TYPE_1000BASE_X) | ||||||
| 		phydev->flags |= XAE_PHY_TYPE_1000BASE_X; | 		phydev->flags |= XAE_PHY_TYPE_1000BASE_X; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue