Apply clear_mask correctly.

Reviewed by:	jmcneill, kan
Sponsored by:	DARPA, AFRL
This commit is contained in:
Ruslan Bukin 2016-12-12 17:08:52 +00:00
parent f9a22a068d
commit f3c658a869
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=309896

View File

@ -589,7 +589,7 @@ jz4780_clock_modify_4(device_t dev, bus_addr_t addr, uint32_t clear_mask,
sc = device_get_softc(dev);
val = CSR_READ_4(sc, addr);
val &= clear_mask;
val &= ~clear_mask;
val |= set_mask;
CSR_WRITE_4(sc, addr, val);
return (0);