This series is designed to be applied to a lora-next which is based on v4.19-rc7, not what is currently upstream, there were no additional changes in this rebase.
In this series we add the write variant to regmap_noinc then use it within the sx1301 driver to load firmware. We complete the sx1301 migration to regmap by replacing the SPI burst read and write with regmap_noinc_read and write. The various fields of the sx1301 are converted to regmap to pass the read modify write down to the regmap layer and reduce our code. The downside is that in the cases of the hand optimised multiple field writes at once within one register, however if it is desirable these can be replaced with regmap_update_bits. Apply the same regmap treatment for the radio device and allow it to register as a clock provider, this clock is enabled when the lora link is brought up as it is required prior to calibration of the concentrator. modprobe lora-sx125x lora-dev: init sx1301 spi0.0: SX1301 module probed sx125x_con spi0.0-a: SX125x version: 21 sx125x_con spi0.0-a: SX125x module probed sx125x_con spi0.0-b: SX125x version: 21 sx125x_con spi0.0-b: registering clkout sx125x_con spi0.0-b: SX125x module probed ip link set lora0 up sx125x_con spi0.0-b: enabling clkout Ben Whitten (5): regmap: Add regmap_noinc_write API net: lora: sx1301: replace burst spi functions with regmap_noinc net: lora: sx1301: convert to using regmap fields for bit ops net: lora: sx125x: convert to regmap fields net: lora: sx125x sx1301: allow radio to register as a clk provider drivers/base/regmap/internal.h | 3 + drivers/base/regmap/regmap.c | 77 ++++++++++++ drivers/net/lora/sx125x.c | 159 +++++++++++++++++++++++-- drivers/net/lora/sx1301.c | 257 ++++++++++++----------------------------- drivers/net/lora/sx1301.h | 50 +++++++- include/linux/regmap.h | 19 +++ 6 files changed, 369 insertions(+), 196 deletions(-) -- 2.7.4