[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20121203072741.GC9848@opensource.wolfsonmicro.com>
Date: Mon, 3 Dec 2012 16:27:42 +0900
From: Mark Brown <broonie@...nsource.wolfsonmicro.com>
To: GShark Jeong <gshark.jeong@...il.com>
Cc: Liam Gridwood <lrg@...com>, Daniel Jeong <daniel.jeong@...com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/1] regulator: new driver for LP8755
On Mon, Dec 03, 2012 at 04:24:43PM +0900, GShark Jeong wrote:
> 2012/12/3 Mark Brown <broonie@...nsource.wolfsonmicro.com>
> > On Mon, Dec 03, 2012 at 01:44:24PM +0900, Daniel Jeong wrote:
> > > + if (ret < 0)
> > > + goto out_i2c_error;
> > > + dev_info(pchip->dev, "lp8755 : chip ID is 0x%x\n", regval);
> > This isn't actually checking anything except the I/O. Can the chip ID
> > really vary?
> My configurations are already programmed in otp memory of chip as default
> values.
> So this comment for to others who are using different initial values with
> default data.
> I will drop it.
It seems like a better fix would be to add a check for the ID and fail
if the OTP value doesn't match, that way the driver won't try to run on
unsupported hardware.
--
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