[U-Boot] [PATCH 2/3] smsc95xx: in smsc95xx_set_multicast write to reg

Wolfgang Grandegger wg at denx.de
Fri Nov 11 11:59:57 CET 2011


The write to the mac_cr register was missing. This usually not
cause an issue before, since the next function writing the
register's shadow copy into the register would do it as a side
effect.

Signed-off-by: Wolfgang Grandegger <wg at denx.de>
Cc: Simon Glass <sjg at chromium.org>
---
 drivers/usb/eth/smsc95xx.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/usb/eth/smsc95xx.c b/drivers/usb/eth/smsc95xx.c
index eb529f1..16e24bd 100644
--- a/drivers/usb/eth/smsc95xx.c
+++ b/drivers/usb/eth/smsc95xx.c
@@ -428,6 +428,8 @@ static void smsc95xx_set_multicast(struct ueth_data *dev)
 {
 	/* No multicast in u-boot */
 	dev->mac_cr &= ~(MAC_CR_PRMS_ | MAC_CR_MCPAS_ | MAC_CR_HPFILT_);
+
+	smsc95xx_write_reg(dev, MAC_CR, dev->mac_cr);
 }
 
 /* starts the TX path */
-- 
1.7.4.1



More information about the U-Boot mailing list