[PATCH lora-next 00/11] net: lora: sx130x: Fixes for enabling regcache

From: Andreas FÃrber
Date: Sun Jan 06 2019 - 03:38:21 EST


Hello,

This series fixes a number of issues that stood in the way of enabling the
regmap cache for SX130x. It goes on to enable REGCACHE_RBTREE.

1) Soft reset needs special treatment.
2) More registers need to be treated as volatile.
3) Some register field writes need to be forced.

This complements Ben Whitten's regmap conversion patches [1] I already squashed,
mainly [2]. I intend to squash these into my driver commit as well.

In my testing it has not regressed with spi-gpio or cdc-acm, nor with spi-sun6i;
given that we seem no closer to a solution for the clk lock-up, we may need to
revert that commit from [1] again.

Have a lot of fun!

Cheers,
Andreas

[1] https://patchwork.ozlabs.org/cover/983168/
[2] https://patchwork.ozlabs.org/patch/983170/

Cc: Ben Whitten <ben.whitten@xxxxxxxxx>
Cc: Mark Brown <broonie@xxxxxxxxxx>
Cc: linux-lpwan@xxxxxxxxxxxxxxxxxxx
Cc: netdev@xxxxxxxxxxxxxxx

Andreas FÃrber (11):
net: lora: sx125x: Abort on wrong version
net: lora: sx130x: Fix error codes
net: lora: sx130x: Revert drop of sx1301_soft_reset()
net: lora: sx130x: Fix soft reset
net: lora: sx130x: Fix regmap field toggles
net: lora: sx130x: Force regmap field write before sleep
net: lora: sx130x: Force regmap field writes before function
boundaries
net: lora: sx130x: Force regmap field write before reading status
net: lora: sx130x: Mark AGCSTS register as volatile
net: lora: sx130x: Mark MCU_CTRL register as volatile
net: lora: sx130x: Enable regmap caching

drivers/net/lora/sx125x.c | 6 ++++-
drivers/net/lora/sx130x.c | 65 +++++++++++++++++++++++++++++++++--------------
2 files changed, 51 insertions(+), 20 deletions(-)

--
2.16.4