lkml.org 
[lkml]   [2018]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v1] mfd: tps6586x: Move interrupt handling into workqueue
On Mon, May 14, 2018 at 12:18:42AM +0300, Dmitry Osipenko wrote:
> Reading of status register within the interrupt handler fails with -EAGAIN
> if I2C is busy with handling some other request at the same time. Move the
> actual interrupt handling into a workqueue to avoid the unfortunate I2C
> failure and to avoid hanging CPU in interrupt up to 1 second (transfer
> timeout in the Tegra I2C driver).
>
> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
> ---
> drivers/mfd/tps6586x.c | 40 +++++++++++++++++++++++++++++-----------
> 1 file changed, 29 insertions(+), 11 deletions(-)

Could this not be achieved with a threaded interrupt handler?

Thierry
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2018-05-14 13:52    [W:0.056 / U:0.628 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site