From: Ben Whitten Subject: [PATCH lora-next 00/10] Conversing sx1301 to regmap and regfield Date: Tue, 7 Aug 2018 18:32:00 +0100 Message-ID: <1533663131-16313-1-git-send-email-ben.whitten@gmail.com> Cc: netdev@vger.kernel.org, Ben Whitten To: afaerber@suse.de, starnight@g.ncu.edu.tw, hasnain.virk@arm.com Return-path: Received: from mail-wr1-f67.google.com ([209.85.221.67]:46535 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727194AbeHGTrr (ORCPT ); Tue, 7 Aug 2018 15:47:47 -0400 Received: by mail-wr1-f67.google.com with SMTP id h14-v6so16496093wrw.13 for ; Tue, 07 Aug 2018 10:32:24 -0700 (PDT) Sender: netdev-owner@vger.kernel.org List-ID: 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 -- 2.7.4