Skip to content

Conversing sx1301 to regmap and regfield

Ben Whitten netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10net: lora: sx1301: add register, bit-fields, and helpers for regmapdrivers/net/lora/Kconfig drivers/net/lora/sx1301.c drivers/net/lora/sx1301.h+439 -139 replies
2/10net: lora: add methods for devm registrationdrivers/net/lora/dev.c include/linux/lora/dev.h+21 -01 reply
3/10net: lora: sx1301: convert to devm registration of netdevdrivers/net/lora/sx1301.c+31 -561 reply
4/10net: lora: sx1301: convert probe function to regmap accessdrivers/net/lora/sx1301.c drivers/net/lora/sx1301.h+35 -1270 replies
5/10net: lora: sx1301: add device to private data and convert ram readsdrivers/net/lora/sx1301.c+21 -130 replies
6/10net: lora: sx1301: simplify firmware loading and convertdrivers/net/lora/sx1301.c+37 -720 replies
7/10net: lora: sx1301: convert read and write burst to take priv datadrivers/net/lora/sx1301.c+10 -80 replies
8/10net: lora: sx1301: convert read and write to priv pointerdrivers/net/lora/sx1301.c+12 -120 replies
9/10net: lora: sx1301: convert agc calibrate to regmap functionsdrivers/net/lora/sx1301.c+26 -750 replies
10/10net: lora: sx1301: convert all firmware to regmapdrivers/net/lora/sx1301.c+28 -390 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH lora-next 00/10] Conversing sx1301 to regmap and regfield

This series converts the majority of sx1301 code to using regmap and regfield system.
The SPI subsystem is as yet untouched but will be converted to a regmap_bus in a future series with sx1257 conversions.

Interestingly the initial state did not work for me as I was getting kernel oopses somewhere todo with sx1301_page_read on my hardware.
Since conversion to regmap the sx1301 initialises properly, sx1257 still oopses because of the SPI bus read but presumably will go away with regmap_bus.

Ben Whitten (10):
net: lora: sx1301: add register, bit-fields, and helpers for regmap
net: lora: add methods for devm registration
net: lora: sx1301: convert to devm registration of netdev
net: lora: sx1301: convert probe function to regmap access
net: lora: sx1301: add device to private data and convert ram reads
net: lora: sx1301: simplify firmware loading and convert
net: lora: sx1301: convert read and write burst to take priv data
net: lora: sx1301: convert read and write to priv pointer
net: lora: sx1301: convert agc calibrate to regmap functions
net: lora: sx1301: convert all firmware to regmap

 drivers/net/lora/Kconfig  |   1 +
 drivers/net/lora/dev.c    |  20 ++
 drivers/net/lora/sx1301.c | 803 ++++++++++++++++++++++++----------------------
 drivers/net/lora/sx1301.h | 176 ++++++++++
 include/linux/lora/dev.h  |   1 +
 5 files changed, 623 insertions(+), 378 deletions(-)
 create mode 100644 drivers/net/lora/sx1301.h
Signature · 1 line
2.7.4