Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'regmap-v3.9-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap

Pull regmap revert from Mark Brown:
"regmap: Back out work buffer fix

This reverts commit bc8ce4 (regmap: don't corrupt work buffer in
_regmap_raw_write()) since it turns out that it can cause issues when
taken in isolation from the other changes in -next that lead to its
discovery. On the basis that nobody noticed the problems for quite
some time without that subsequent work let's drop it from v3.9."

* tag 'regmap-v3.9-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap:
regmap: Back out work buffer fix

+2 -1
+2 -1
drivers/base/regmap/regmap.c
··· 943 943 unsigned int ival; 944 944 int val_bytes = map->format.val_bytes; 945 945 for (i = 0; i < val_len / val_bytes; i++) { 946 - ival = map->format.parse_val(val + (i * val_bytes)); 946 + memcpy(map->work_buf, val + (i * val_bytes), val_bytes); 947 + ival = map->format.parse_val(map->work_buf); 947 948 ret = regcache_write(map, reg + (i * map->reg_stride), 948 949 ival); 949 950 if (ret) {