Bhupesh Sharma
4220504767
net/phy: realtek: Fix the PHY ID mask to ensure the correct Realtek PHY is detected
...
The 'get_phy_driver' code in 'drivers/net/phy/phy.c' uses the following
method to determine which driver is to be loaded for a particular PHY
module:
list_for_each(entry, &phy_drivers) {
drv = list_entry(entry, struct phy_driver, list);
if ((drv->uid & drv->mask) == (phy_id & drv->mask))
return drv;
}
This means that a drv->mask of 0xfffff0 will return incorrect phy driver
for the logic above, even if the drv->uid is anything other than
something ending with a 0x0.
For e.g. if the RTL8211E drv->uid is 0x1cc915 and drv->mask is 0xffffff
and the RTL8211B drv->uid is 0x1cc910 and drv->mask is 0xffffff0, then
the phy driver selected will always be RTL8211B even though the
underlying phy connected on the board is a 8211E module.
This patch fixes this issue.
Signed-off-by: Bhupesh Sharma <bhupesh.sharma@freescale.com >
2013-11-22 16:50:51 -06:00
..
2013-11-17 14:11:31 -05:00
2013-11-17 14:11:32 -05:00
2013-11-22 16:50:51 -06:00
2013-09-20 10:30:54 -04:00
2007-11-25 18:35:17 +01:00
2012-05-23 14:19:21 -05:00
2011-01-09 18:06:50 +01:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-08-19 12:34:18 -05:00
2010-07-12 00:14:29 -07:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-05-13 16:30:27 +08:00
2012-05-23 14:19:21 -05:00
2013-07-25 17:57:46 +02:00
2013-09-20 16:57:40 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-10-14 16:06:53 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-10-14 16:06:54 -04:00
2008-08-26 23:08:19 -07:00
2012-05-22 10:18:15 -05:00
2009-02-10 00:16:27 +01:00
2013-04-01 16:33:52 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2012-05-23 14:19:21 -05:00
2013-09-20 17:55:37 +02:00
2013-09-20 17:55:36 +02:00
2013-08-19 12:34:18 -05:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-08-19 12:34:21 -05:00
2013-08-19 12:34:21 -05:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-06-24 19:11:14 -05:00
2013-08-19 12:34:18 -05:00
2013-07-24 09:44:38 -04:00
2013-11-04 20:32:31 +01:00
2013-11-04 20:32:31 +01:00
2013-10-31 13:22:13 -04:00
2013-08-19 12:34:18 -05:00
2013-08-19 12:34:18 -05:00
2013-02-04 09:05:43 -05:00
2008-08-29 13:58:07 -06:00
2013-02-04 09:05:43 -05:00
2009-06-12 20:47:16 +02:00
2013-11-22 16:50:34 -06:00
2013-07-24 09:44:38 -04:00
2012-05-22 13:41:47 -05:00
2012-05-23 14:19:21 -05:00
2013-04-01 16:33:52 -04:00
2013-08-19 12:34:18 -05:00
2008-04-28 22:26:36 -07:00
2013-11-08 15:25:14 -05:00
2008-05-21 00:14:08 +02:00
2012-05-22 13:41:47 -05:00
2013-11-11 14:46:24 -05:00
2013-10-14 16:06:54 -04:00
2012-05-22 13:41:47 -05:00
2013-07-24 09:44:38 -04:00
2013-11-22 16:50:50 -06:00
2013-11-22 16:50:50 -06:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2012-07-11 13:15:30 -05:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2012-11-04 11:00:36 -07:00
2013-07-24 09:44:38 -04:00
2013-10-14 16:06:53 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-07-24 09:44:38 -04:00
2013-10-14 16:06:53 -04:00