]> git.baikalelectronics.ru Git - kernel.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)
commit1dcc3c23db1ad115a0d87489b64ba66edfa06661
tree3d653580fd3a52c600c0f7b02c45236b76a5ce24
parent9c240fbe5aa0facb5bab8ce9084ca34cc4327f76
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