From: Greg KH <greg@kroah.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: [Pcihpd-discuss] Query regarding interrupt handler code in pciehp
Date: Thu, 17 Nov 2005 06:08:49 +0000 [thread overview]
Message-ID: <20051117060849.GA20218@kroah.com> (raw)
On Thu, Nov 17, 2005 at 02:55:05PM +0900, Rajat Jain wrote:
> Hi,
>
> This is a query regarding the "interrupt_event_handler()" function in
> pciehp_ctrl.c. Please refer to the following code:
>
> 673: else if (ctrl->event_queue[loop].event_type = INT_BUTTON_PRESS) {
> 675: if (ATTN_BUTTN(ctrl->ctrlcap)) {
> 676: dbg("Button pressed\n");
> 677: p_slot->hpc_ops->get_power_status(p_slot, &getstatus);
> 678: if (getstatus) {
>
> As evident from above, in order to get Power Controller status, it
> checks the capability of Attention Button Present. Shouldn't it check
> the capability of Power Controller Present instead and should be
> written like this:
>
> if (POWER_CTRL(ctrl->ctrlcap)) {
>
> Please let me know if I am missing something.
So what exactly would your change look like? Does the current code not
work properly for you?
thanks,
greg k-h
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28&alloc_id\x16845&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
next reply other threads:[~2005-11-17 6:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-17 6:08 Greg KH [this message]
2005-11-17 20:40 ` [Pcihpd-discuss] Query regarding interrupt handler code in pciehp Rajesh Shah
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=20051117060849.GA20218@kroah.com \
--to=greg@kroah.com \
--cc=linux-hotplug@vger.kernel.org \
/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.