From: =?UTF-8?Q?Andreas_F=c3=a4rber?= Subject: Re: [PATCH lora-next 01/10] net: lora: sx1301: add register, bit-fields, and helpers for regmap Date: Wed, 8 Aug 2018 14:51:49 +0200 Message-ID: References: <1533663131-16313-1-git-send-email-ben.whitten@gmail.com> <1533663131-16313-2-git-send-email-ben.whitten@gmail.com> <6faee71e-1226-9f24-6e0d-46a9dbb4d6c2@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: "starnight@g.ncu.edu.tw" , "hasnain.virk@arm.com" , "netdev@vger.kernel.org" To: Ben Whitten , Ben Whitten Return-path: Received: from mx2.suse.de ([195.135.220.15]:59880 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726680AbeHHPLZ (ORCPT ); Wed, 8 Aug 2018 11:11:25 -0400 In-Reply-To: Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: Am 08.08.2018 um 14:32 schrieb Ben Whitten: >>> drivers/net/lora/Kconfig | 1 + >>> drivers/net/lora/sx1301.c | 282 >> +++++++++++++++++++++++++++++++++++++++++++--- >>> drivers/net/lora/sx1301.h | 169 >> +++++++++++++++++++++++++++ >>> 3 files changed, 439 insertions(+), 13 deletions(-) >>> create mode 100644 drivers/net/lora/sx1301.h >> >> My main concern about this patch is its sheer size. Normally >> for >> #defines the rule is not to add unused ones. Here I see for >> example FSK >> RSSI fields that we're surely not using yet. Any chance to >> strip this >> down some more? > > Sure, I'll strip the reg_fields down to those only required for > loading firmware and setting clocks that will be used in the > immediate term. This does clutter the driver a bit > unnecessarily at the moment. > I would like to keep the full register dump in the header file > though as its self-contained and gives a full picture of the chip. Could you do that in more steps though? I'm thinking, convert only the registers in use to regmap (that'll make it easier to review), then add more registers, then convert to regmap fields? Regards, Andreas -- SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG Nürnberg)