]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] mv643xx: Fix promiscuous mode handling
authorDale Farnsworth <dale@farnsworth.org>
Fri, 2 Sep 2005 19:36:48 +0000 (12:36 -0700)
committerJeff Garzik <jgarzik@pobox.com>
Mon, 5 Sep 2005 22:08:30 +0000 (18:08 -0400)
commit333a62614c7a7f944748c671d1b1ad1ae048bb69
tree60106923617dae852111129609bc68e6b4be3aeb
parent8a64ebf9b4cf1ab9b812ea272267bfdf2fe40af8
[PATCH] mv643xx: Fix promiscuous mode handling

mv643xx_eth_get_config_reg() was reading the wrong register.
mv643xx_eth_set_config_reg() was or'ing instead of setting the
register.  These functions are trivial and both are called only from
mv643xx_eth_set_rx_mode() when changing to/from promiscuous mode.
Remove both functions and do the operations directly in
mv643xx_eth_set_rx_mode().

Also, maintain promiscuous mode setting across port resets.

Signed-off-by: Dale Farnsworth <dale@farnsworth.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/mv643xx_eth.c
drivers/net/mv643xx_eth.h