]> git.baikalelectronics.ru Git - kernel.git/commit
regmap: fix page selection for noinc writes
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Thu, 17 Sep 2020 15:34:05 +0000 (18:34 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 21 Sep 2020 19:58:02 +0000 (20:58 +0100)
commitb76906b05efcbcaf77a7301ce3ffd1ce35127aee
tree4ae810e58655b757338ded381c449a9557ed95cd
parent4560b025e733fbef44b6c2f458784b45e2c4afdb
regmap: fix page selection for noinc writes

Non-incrementing writes can fail if register + length crosses page
border. However for non-incrementing writes we should not check for page
border crossing. Fix this by passing additional flag to _regmap_raw_write
and passing length to _regmap_select_page basing on the flag.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Fixes: 893d5fca5b56 ("regmap: Add regmap_noinc_write API")
Link: https://lore.kernel.org/r/20200917153405.3139200-2-dmitry.baryshkov@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/internal.h
drivers/base/regmap/regcache.c
drivers/base/regmap/regmap.c