lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20141117125433.GA29518@opensource.wolfsonmicro.com>
Date:	Mon, 17 Nov 2014 12:54:33 +0000
From:	Richard Fitzgerald <rf@...nsource.wolfsonmicro.com>
To:	Lee Jones <lee.jones@...aro.org>
Cc:	Charles Keepax <ckeepax@...nsource.wolfsonmicro.com>,
	broonie@...nel.org, linus.walleij@...aro.org, gnurou@...il.com,
	alsa-devel@...a-project.org, tiwai@...e.de,
	patches@...nsource.wolfsonmicro.com, lgirdwood@...il.com,
	linux-kernel@...r.kernel.org, linux-gpio@...r.kernel.org
Subject: Re: [PATCH 1/3] mfd: arizona: Add support for CS47L24

On Mon, Nov 17, 2014 at 12:16:48PM +0000, Lee Jones wrote:
> On Thu, 13 Nov 2014, Charles Keepax wrote:
> 
> > On Thu, Nov 13, 2014 at 10:12:28AM +0000, Lee Jones wrote:
> > > On Tue, 11 Nov 2014, Richard Fitzgerald wrote:
> > > 
> > > > Signed-off-by: Richard Fitzgerald <rf@...nsource.wolfsonmicro.com>
> > > > ---
> > > >  drivers/mfd/Kconfig              |    6 +
> > > >  drivers/mfd/Makefile             |    3 +
> > > >  drivers/mfd/arizona-core.c       |   91 ++-
> > > >  drivers/mfd/arizona-irq.c        |   42 +-
> > > >  drivers/mfd/arizona-spi.c        |    9 +
> > > >  drivers/mfd/arizona.h            |    5 +
> > > >  drivers/mfd/cs47l24-tables.c     | 1632 ++++++++++++++++++++++++++++++++++++++
> > > 
> > > No chance.
> > > 
> > > Please resend with these in a header file (like all of the others).
> > > 
> > > I'd also like Charles' Reviewed-by before accepting.
> > 
> > This looks good to me. I don't quite follow what you are
> > requesting with the header file? This still uses the header file
> > for the registers but just defining which are available on this
> > chip.
> 
> Looks like I was a little hasty with my comments.  However 8000 lines
> over 4 platforms just to describe which registers are readable is all
> a little bit grim.  Is there any way you can use ranges instead of
> listing every single register on the chip?  How many gaps are there? 
> 

It's debatable. Ranges would be possible but there are a lot of gaps.
Personally, speaking as someone who has to maintain these drivers, I
like that fact that I can look at this file and see exactly which registers
are readable and volatile because they are all explicitly listed. It's also
useful that the files are searchable for specific registers.

I'll point Charles at this to get his opinion.

> -- 
> Lee Jones
> Linaro STMicroelectronics Landing Team Lead
> Linaro.org │ Open source software for ARM SoCs
> Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ