Author: kevans Date: Mon Dec 11 22:55:51 2017 New Revision: 326783 URL: https://svnweb.freebsd.org/changeset/base/326783
Log: Correct a typo in syscon driver 'modify' logic Not previously caught because the current consumer (not yet in tree) doesn't use the 'modify' bits (yet). Reported by: rpokala Modified: head/sys/dev/syscon/syscon.c Modified: head/sys/dev/syscon/syscon.c ============================================================================== --- head/sys/dev/syscon/syscon.c Mon Dec 11 20:47:26 2017 (r326782) +++ head/sys/dev/syscon/syscon.c Mon Dec 11 22:55:51 2017 (r326783) @@ -104,7 +104,7 @@ syscon_modify_4(device_t dev, device_t consumer, bus_ SYSCON_LOCK(sc); val = bus_read_4(sc->mem_res, offset); val &= ~clear_bits; - val |= ~set_bits; + val |= set_bits; bus_write_4(sc->mem_res, offset, val); SYSCON_UNLOCK(sc); } _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"