All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Li, Shaohua" <shaohua.li-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
To: Pedro Venda <pjlv-aHmAgkVUFT6Joy8PIJZ9VA@public.gmane.org>,
	acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: RE: smartbattery support
Date: Tue, 12 Oct 2004 09:03:32 +0800	[thread overview]
Message-ID: <16A54BF5D6E14E4D916CE26C9AD305754B4711@pdsmsx402.ccr.corp.intel.com> (raw)

In this case, the EC based SMBus host isn't EC. Actually it's a child of
EC. You must use its HID (ACPI0001) to find it. I suggest you write a
new driver for the SMBus host.

Thanks,
Shaohua

>-----Original Message-----
>From: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:acpi-devel-
>admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Pedro Venda
>Sent: Tuesday, October 12, 2004 5:26 AM
>To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>Subject: Re: [ACPI] smartbattery support
>
>Pedro Venda wrote:
>>>> Device (SMBC)
>>>>                    {
>>>>                        Name (_HID, "ACPI0001")
>>>>                        Name (_EC, 0x1820)
>>>>                        Device (SBS0)
>>>>                        {
>>>>                            Name (_HID, "ACPI0002")
>>>>                            Name (_SBS, 0x02)
>>>>                        }
>>>>                    }
>
>hi everyone,
>
>i can't get an acpi_handle for the ec host.
>
>i am writing code in bruno ducrot's i2c-ec-smbus driver and i'm trying
>to detect the smbus address from the ACPI's ASL code above.
>
>i'm trying to acpi_get_handle(NULL,"_EC",ec->handle) but it fails
>because of the parent=NULL (i think).
>
>i suspect i need to use the ec driver's device handler in the parent
>paramenter of acpi_get_handle(). is that correct?
>
>or am i doing everything wrong?
>
>[]
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: IT Product Guide on
ITManagersJournal
>Use IT products in your business? Tell us what you think of them. Give
us
>Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out
more
>http://productguide.itmanagersjournal.com/guidepromo.tmpl
>_______________________________________________
>Acpi-devel mailing list
>Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>https://lists.sourceforge.net/lists/listinfo/acpi-devel


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

             reply	other threads:[~2004-10-12  1:03 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-12  1:03 Li, Shaohua [this message]
     [not found] ` <16A54BF5D6E14E4D916CE26C9AD305754B4711-4yWAQGcml66iAffOGbnezLfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-10-12  9:46   ` smartbattery support Pedro Venda
  -- strict thread matches above, loose matches on Subject: below --
2004-10-08  8:39 Li, Shaohua
     [not found] ` <16A54BF5D6E14E4D916CE26C9AD30575457124-4yWAQGcml66iAffOGbnezLfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-10-08  9:16   ` Bruno Ducrot
     [not found]     ` <20041008091658.GE6785-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2004-10-08 19:37       ` Pedro Venda
2004-10-08 19:36   ` Pedro Venda
     [not found]     ` <4166EC29.8070006-aHmAgkVUFT6Joy8PIJZ9VA@public.gmane.org>
2004-10-11  9:49       ` Bruno Ducrot
     [not found]         ` <20041011094935.GA23992-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2004-10-11 18:36           ` Pedro Venda
     [not found]             ` <416AD2B3.9050403-aHmAgkVUFT6Joy8PIJZ9VA@public.gmane.org>
2004-10-11 21:25               ` Pedro Venda
2004-10-12 16:58               ` Bruno Ducrot
2004-10-07 13:43 Li, Shaohua
     [not found] ` <16A54BF5D6E14E4D916CE26C9AD30575456AB2-4yWAQGcml66iAffOGbnezLfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-10-08  8:29   ` Bruno Ducrot
     [not found]     ` <20041008082923.GD6785-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2004-10-08 19:29       ` Pedro Venda
2004-10-05 21:00 Pedro Venda
     [not found] ` <41630B6D.2000107-aHmAgkVUFT6Joy8PIJZ9VA@public.gmane.org>
2004-10-05 21:54   ` Christian Axelsson
     [not found]     ` <41631809.7020204-pw/8oln/LLv0Dx+PQ6IoOQ@public.gmane.org>
2004-10-06 11:52       ` Pedro Venda
2004-10-07  9:41   ` Pavel Machek
     [not found]     ` <20041007094109.GA534-u08AdweFZfgxtPtxi4kahqVXKuFTiq87@public.gmane.org>
2004-10-07 12:33       ` Pedro Venda

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=16A54BF5D6E14E4D916CE26C9AD305754B4711@pdsmsx402.ccr.corp.intel.com \
    --to=shaohua.li-ral2jqcrhueavxtiumwx3w@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=pjlv-aHmAgkVUFT6Joy8PIJZ9VA@public.gmane.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.