lkml.org 
[lkml]   [2012]   [Feb]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] mfd/ab8500: support AB9540 variant
From
On Wed, Feb 1, 2012 at 12:31 PM, Mark Brown
<broonie@opensource.wolfsonmicro.com> wrote:
> On Wed, Feb 01, 2012 at 12:02:35PM +0100, Linus Walleij wrote:
>
>> identifier field. If possible, we fall back on auto-detecting
>> the AB variant. The necessary deviations are factored into
>> the driver and board data.
>
> This seems a bit weird - I would expect the silicon to be more accurate
> than user provided platform data.

Well, that would have been good. As it happens, the hardware
is reusing the same ID for four widely different ASICs.

Second, if you try to even read it on older chip variants, it fails
with I2C errors. So for older chips we have to pass this through
platform data.

> I'd expect the driver to always check
> the information provided by the device and at least log if there's a
> difference.

Well, I will just get an I2C error back in the case where it is
passed from platform data, so it will sadly only delay the boot.

For newer ASICs we solve it by not providing platform data
and instead fall back to reading chip revision.

I will write this into the code as a comment so it's clear.

> It'd also be easier to review the patch if there was some description of
> the differences (or there were a series of patches adding
> parameterisation for relevant things followed by one adding the new
> device).

OK breaking it apart...

Yours,
Linus Walleij


\
 
 \ /
  Last update: 2012-02-01 15:45    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site