Re: [PATCH] mfd: arizona: Move chip reset to before register patch

From: Mark Brown
Date: Tue Nov 13 2012 - 20:20:07 EST


On Tue, Nov 13, 2012 at 01:12:19PM +0000, Charles Keepax wrote:
> On Tue, Nov 13, 2012 at 02:56:20PM +0900, Mark Brown wrote:

> > No, we should never write to the chip until we have successfully
> > identified it. Do a sync or similar instead (we should be triggering
> > this very soon afterwards via runtime PM anyway).

> In that case I would be inclined to seperate out the chip
> identification and the register patch doing the reset in between.
> Is this something that would sound reasonable or would you rather
> just add a sync after the reset?

Just do a sync, make sure that we mark the map as dirty when we do the
reset via register write and it'll not have any effect anyway. We
should also check if we've got the LDO and use that for reset too
actually...

Attachment: signature.asc
Description: Digital signature