public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Tim Roberts <timr@probo.com>
To: linux-acpi@vger.kernel.org
Subject: Seeking Direction
Date: Fri, 15 Oct 2010 12:29:56 -0700	[thread overview]
Message-ID: <4CB8ABB4.9000006@probo.com> (raw)

 I need to call a _DSM method for a device hardwired to a motherboard
USB slot.  There will be two such devices.  I've done this from Windows,
but I have a couple of questions about a Linux implementation.  I
believe that I am not an idiot, but feel free to express an alternative
opinion.

Everything is pretty clear to me, except for the mechanism to find the
DSDT path for the slots.  I'm hoping I can do all of the USB handling
from user-mode without a custom kernel driver.  Given the sysfs name of
the device in /sys/bus/usb/devices (for example, 1-1.3 or 2-1.3), I can
parse that and hack up the path name (\_SB.PCI0.EHC1.HUBN.PR01.PR13 or
..EHC2...), but that seems rather delicate, and I don't know that the
naming scheme there is standardized, should this need to move to another
manufacturer.  I couldn't find any way to link from the sysfs tree for
the USB device back to the /sys/devices/LNXSYSTM:00 tree, which would
give me the DSDT path.

So, in a udev arrival script for a device, or in a USB kernel driver for
a device, how can I learn the DSDT path to that device's slot, or at
least acquire an acpi_handle so I can call a _DSM?

And am I correct in thinking there is no way to enable a GPE callback
without using a kernel driver?

-- 
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.


                 reply	other threads:[~2010-10-15 19:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4CB8ABB4.9000006@probo.com \
    --to=timr@probo.com \
    --cc=linux-acpi@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox