b44: Truncate PHY address
authorMichael Buesch <mb@bu3sch.de>
Tue, 25 Mar 2008 17:04:46 +0000 (18:04 +0100)
committerJeff Garzik <jeff@garzik.org>
Wed, 26 Mar 2008 03:42:07 +0000 (23:42 -0400)
Some ROMs on embedded devices store incorrect values for
the PHY address of the ethernet device.
It looks like the number is sign-extended.
Truncate the value by applying the PHY-address mask to it.
The patch was tested on a bcm47xx embedded system (where the bug
triggers) and a bcm4400 PCI card.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: Jeff Garzik <jeff@garzik.org>

No differences found