]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
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)
commit5ea79631c0c47d28831a0635e8af9da539d449cd
tree3d653580fd3a52c600c0f7b02c45236b76a5ce24
parent6ef2977d414cc196baba0fb53509c5f8cd9154b4
b44: Truncate PHY address

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>
drivers/net/b44.c