Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752242AbZK0QXY (ORCPT ); Fri, 27 Nov 2009 11:23:24 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751582AbZK0QXX (ORCPT ); Fri, 27 Nov 2009 11:23:23 -0500 Received: from cassiel.sirena.org.uk ([80.68.93.111]:55572 "EHLO cassiel.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751465AbZK0QXW (ORCPT ); Fri, 27 Nov 2009 11:23:22 -0500 Date: Fri, 27 Nov 2009 16:23:22 +0000 From: Mark Brown To: Grazvydas Ignotas Cc: avorontsov@ru.mvista.com, linux-kernel@vger.kernel.org, Madhusudhan Chikkature , linux-omap@vger.kernel.org Subject: Re: [PATCH] power_supply: Add driver for TWL4030/TPS65950 BCI charger Message-ID: <20091127162321.GF29512@sirena.org.uk> References: <1259333060-24277-1-git-send-email-notasas@gmail.com> <20091127145426.GA6135@oksana.dev.rtsoft.ru> <6ed0b2680911270747k4bd5610eg1e0ef83c41622bba@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6ed0b2680911270747k4bd5610eg1e0ef83c41622bba@mail.gmail.com> X-Cookie: Sorry. Nice try. User-Agent: Mutt/1.5.18 (2008-05-17) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: broonie@sirena.org.uk X-SA-Exim-Scanned: No (on cassiel.sirena.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1207 Lines: 26 On Fri, Nov 27, 2009 at 05:47:40PM +0200, Grazvydas Ignotas wrote: > On Fri, Nov 27, 2009 at 4:54 PM, Anton Vorontsov > >> + ? ? /* WORKAROUND for lockdep forcing IRQF_DISABLED on us, which > >> + ? ? ?* we don't want and can't tolerate. ?Although it might be > >> + ? ? ?* friendlier not to borrow this thread context... > >> + ? ? ?*/ > >> + ? ? local_irq_enable(); > >> +#endif > > Can you explain why the driver can't tolerate disabled irqs? > > Calling schedule_delayed_work() from an irq context should be OK. > Ah, this is leftover from TI code this driver is based on, which used > to do more things directly in interrupt handler. So I guess it can be > removed, updated patch attached. Actually, the genirq infrastructure in 2.6.32 has been improved to allow I2C based interrupt controllers properly so even those twl4030 drivers that do I/O in interrupt callbacks should now be able to run without these workarounds once the core has been updated. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/