Re: [RFC/PATCH 3/3] mfd: twl4030-irq: implement bus_*lock

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Mark Brown
Date: Tuesday, December 28, 2010 - 4:58 pm

On Tue, Dec 28, 2010 at 07:14:19PM +0200, Felipe Balbi wrote:


I suspect you need to do some sort of sync with the hardware here - the
_sync bit of the name comes from the fact that the mask and unmask stuff
is still called with IRQs disabled and so can't touch and I2C chip, this
is called after reenabling them give a chance for the updates done to
be reflected in the hardware.  The implementation everyone else has done
is to update a register cache in the other functions then write that
out here before dropping the mutex.


I just realised that this collides with the conversion to the irq_
versions that has been done on the driver in -next by either myself or
Lennart (we both submitted essentially the same patches and a couple of
his went in) - that was a purely mechanical conversion that didn't
address any of the issues this patch addresses but they're touching the
same code.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC/PATCH 1/2] mfd: twl6030-irq: move to threaded_irq, Felipe Balbi, (Tue Dec 28, 6:59 am)
[RFC/PATCH 2/2] mfd: twl4030-irq: move to threaded_irq, Felipe Balbi, (Tue Dec 28, 6:59 am)
[RFC/PATCH 0/3] TWL4030 IRQ Changes, Felipe Balbi, (Tue Dec 28, 10:14 am)
[RFC/PATCH 1/3] mfd: twl4030-irq: move to threaded_irq, Felipe Balbi, (Tue Dec 28, 10:14 am)
[RFC/PATCH 3/3] mfd: twl4030-irq: implement bus_*lock, Felipe Balbi, (Tue Dec 28, 10:14 am)
Re: [RFC/PATCH 0/3] TWL4030 IRQ Changes, Felipe Balbi, (Tue Dec 28, 10:36 am)
Re: [RFC/PATCH 0/3] TWL4030 IRQ Changes, Mark Brown, (Tue Dec 28, 10:41 am)
Re: [RFC/PATCH 3/3] mfd: twl4030-irq: implement bus_*lock, Mark Brown, (Tue Dec 28, 4:58 pm)
Re: [RFC/PATCH 0/3] TWL4030 IRQ Changes, Felipe Balbi, (Tue Dec 28, 5:39 pm)