svn commit: r241579 - head/sys/dev/etherswitch/arswitch
Aleksandr Rybalko
ray at FreeBSD.org
Mon Oct 15 12:28:15 UTC 2012
Author: ray
Date: Mon Oct 15 12:28:14 2012
New Revision: 241579
URL: http://svn.freebsd.org/changeset/base/241579
Log:
Mask data to only 16 bits to be sure on write into switch reg.
Submitted by: Luiz Otavio O Souza
Approved by: adrian (mentor)
Modified:
head/sys/dev/etherswitch/arswitch/arswitch_reg.c
Modified: head/sys/dev/etherswitch/arswitch/arswitch_reg.c
==============================================================================
--- head/sys/dev/etherswitch/arswitch/arswitch_reg.c Mon Oct 15 12:20:40 2012 (r241578)
+++ head/sys/dev/etherswitch/arswitch/arswitch_reg.c Mon Oct 15 12:28:14 2012 (r241579)
@@ -148,7 +148,7 @@ int
arswitch_writereg_msb(device_t dev, int addr, int data)
{
- return (arswitch_writereg16(dev, addr + 2, data >> 16));
+ return (arswitch_writereg16(dev, addr + 2, (data >> 16) & 0xffff));
}
int
More information about the svn-src-all
mailing list