[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LFD.2.00.1103262118010.31464@localhost6.localdomain6>
Date: Sat, 26 Mar 2011 21:24:50 +0100 (CET)
From: Thomas Gleixner <tglx@...utronix.de>
To: Varun Wadekar <vwadekar@...dia.com>
cc: LKML <linux-kernel@...r.kernel.org>,
LAK <linux-arm-kernel@...ts.infradead.org>,
Russell King <linux@....linux.org.uk>,
Lennert Buytenhek <buytenh@...tstofly.org>,
Colin Cross <ccross@...roid.com>,
"linux-tegra@...r.kernel.org" <linux-tegra@...r.kernel.org>
Subject: Re: [patch 02/23] arm: tegra: Remove unused function which fiddles
with irq_desc
On Sun, 27 Mar 2011, Varun Wadekar wrote:
>
> Thomas, then how do you think we should handle restoring of gpio states
> across suspend-resume cycles?
That code is unused. Period. No caller, nothing nada. So what does it
handle?
> > -
> > - for (i = INT_GPIO_BASE; i < (INT_GPIO_BASE + TEGRA_NR_GPIOS); i++) {
> > - struct irq_desc *desc = irq_to_desc(i);
> > - if (!desc || (desc->status & IRQ_WAKEUP))
> > - continue;
> > - enable_irq(i);
> > - }
And this part is totally unacceptable and should have never been
merged. Further it is in the way of cleanups to the core code and as
there is no user I'm not willing to even think about what it does and
why it is there.
FYI, the core code deals with interrupt suspending/resuming
already. So if there is a problem with that which does not cover your
specific problem, then you better talk to me before hacking up such
private workarounds and expecting that I tolerate them in unused code.
Thanks,
tglx
--
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