ar71xx: ag71xx: Add connect message: fixed phy
It's a little noisier but makes it obvious when the ar7240 switch was connected to the MDIO bus, and to which phy device (or the failure to do so). Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
This commit is contained in:
		 Daniel F. Dickinson
					Daniel F. Dickinson
				
			
				
					committed by
					
						 John Crispin
						John Crispin
					
				
			
			
				
	
			
			
			 John Crispin
						John Crispin
					
				
			
						parent
						
							2655fbe8ef
						
					
				
				
					commit
					0b9f4e8808
				
			| @@ -97,6 +97,13 @@ static int ag71xx_phy_connect_fixed(struct ag71xx *ag) | |||||||
| 	ag->duplex = pdata->duplex; | 	ag->duplex = pdata->duplex; | ||||||
| 	ag->speed = pdata->speed; | 	ag->speed = pdata->speed; | ||||||
|  |  | ||||||
|  | 	if (!ret) { | ||||||
|  | 		dev_info(dev, "connected to fixed PHY at %s [uid=%08x, driver=%s]\n", | ||||||
|  | 			    phydev_name(ag->phy_dev), | ||||||
|  | 			    ag->phy_dev->phy_id, ag->phy_dev->drv->name); | ||||||
|  | 	} else { | ||||||
|  | 		pr_err("Failed to connect to fixed PHY\n"); | ||||||
|  | 	} | ||||||
| 	return ret; | 	return ret; | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user