summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/chelsio/cxgb3/sge.c
diff options
context:
space:
mode:
authorIonut Nicu <ioan.nicu.ext@nsn.com>2013-08-09 10:09:20 (GMT)
committerMark Brown <broonie@linaro.org>2013-08-09 11:47:29 (GMT)
commit515f2261703d09c6b647a5687b7d657dd5911065 (patch)
tree8d8a3264f62d32c91463f3ff392db15debb30262 /drivers/net/ethernet/chelsio/cxgb3/sge.c
parent1767da9e8e9a1dc1416d6bb1029b8cf5659dac2a (diff)
downloadlinux-fsl-qoriq-515f2261703d09c6b647a5687b7d657dd5911065.tar.xz
regmap: regcache: allow read-only regs to be cached
The regmap_writeable() check should not be done in regcache_write() because this prevents read-only registers to be cached. After a read on a read-only register its value will not be stored in the cache and the next time someone will try to read it the value will be read from the bus instead of the cache. Instead the regmap_writeable() check should be done in _regmap_write() to prevent callers from writing to read-only registers. Signed-off-by: Ionut Nicu <ioan.nicu.ext@nsn.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb3/sge.c')
0 files changed, 0 insertions, 0 deletions