From: deepaksi <deepak.sikri@st.com>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Viresh KUMAR <viresh.kumar@st.com>,
"linux-input@vger.kernel.org" <linux-input@vger.kernel.org>,
Armando VISCONTI <armando.visconti@st.com>,
Shiraz HASHIM <shiraz.hashim@st.com>,
Vipin KUMAR <vipin.kumar@st.com>,
Rajeev KUMAR <rajeev-dlh.kumar@st.com>,
Vipul Kumar SAMAR <vipulkumar.samar@st.com>,
Amit VIRDI <Amit.VIRDI@st.com>,
Pratyush ANAND <pratyush.anand@st.com>,
Bhupesh SHARMA <bhupesh.sharma@st.com>,
"viresh.linux@gmail.com" <viresh.linux@gmail.com>,
Bhavna YADAV <bhavna.yadav@st.com>,
Vincenzo FRASCINO <Vincenzo.FRASCINO@st.com>,
Mirko GARDI <mirko.gardi@st.com>
Subject: Re: [PATCH 1/2] Input/spear-keyboard: Fix for balancing the enable_irq_wake in Power Mgmt
Date: Fri, 24 Feb 2012 14:28:25 +0530 [thread overview]
Message-ID: <4F475131.6050506@st.com> (raw)
In-Reply-To: <20120224083409.GD18291@core.coreip.homeip.net>
Hi,
On 2/24/2012 2:04 PM, Dmitry Torokhov wrote:
> On Thu, Feb 23, 2012 at 03:10:51PM +0530, Viresh Kumar wrote:
>> From: Deepak Sikri<deepak.sikri@st.com>
>>
>> This patch handles the fix for unbalanced irq for the cases when
>> enable_irq_wake fails, and a warning related to same is displayed
>> on the console. The workaround is handled at the driver level.
> So why is the device marked as wakeup capable?
The device is capable of wake up. There are cases in which the
enable_irq_wake call may fail.
This was specifically observed for ARM cortex architecture kernel
implementation for GIC (PL390).
The 2.6.37 kernel versions and before do not have the callbacks related
to function that help to set up
the wake up interrupts in GIC, and enable_irq_wake returns with an
error code -ENXIO.
Now if the user tries to disable the wake up interrupts in the resume
routines without checking in for the cases
where the enable_irq_wake failed, kernel returns a warning related to
unbalanced irq as we are trying to disable
an interrupt which was not enabled.
However, in case the enable_irq_wake is successful ( as was in case of
ARM9 architectures with VIC callbacks
present for setting up wake up interrupts present), this check allowed
to keep track of success cases.
Regards
Deepak
next prev parent reply other threads:[~2012-02-24 8:58 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-23 9:40 [PATCH 1/2] Input/spear-keyboard: Fix for balancing the enable_irq_wake in Power Mgmt Viresh Kumar
2012-02-23 9:40 ` [PATCH 2/2] Input/spear-keyboard: Provide thaw and poweroff routines Viresh Kumar
2012-02-23 10:35 ` Viresh Kumar
2012-02-23 11:29 ` Shubhrajyoti
2012-02-23 11:56 ` Viresh Kumar
2012-02-23 11:59 ` Viresh Kumar
2012-02-23 12:11 ` Shubhrajyoti
2012-02-24 5:29 ` [PATCH V2] " Viresh Kumar
2012-02-24 8:34 ` [PATCH 1/2] Input/spear-keyboard: Fix for balancing the enable_irq_wake in Power Mgmt Dmitry Torokhov
2012-02-24 8:58 ` deepaksi [this message]
2012-02-24 9:02 ` Dmitry Torokhov
2012-02-24 9:12 ` deepaksi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F475131.6050506@st.com \
--to=deepak.sikri@st.com \
--cc=Amit.VIRDI@st.com \
--cc=Vincenzo.FRASCINO@st.com \
--cc=armando.visconti@st.com \
--cc=bhavna.yadav@st.com \
--cc=bhupesh.sharma@st.com \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=mirko.gardi@st.com \
--cc=pratyush.anand@st.com \
--cc=rajeev-dlh.kumar@st.com \
--cc=shiraz.hashim@st.com \
--cc=vipin.kumar@st.com \
--cc=vipulkumar.samar@st.com \
--cc=viresh.kumar@st.com \
--cc=viresh.linux@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.