From: Kristen Accardi <kristen.c.accardi@intel.com>
To: MUNEDA Takahiro <muneda.takahiro@jp.fujitsu.com>
Cc: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org,
pcihpd-discuss@lists.sourceforge.net, greg@kroah.com,
len.brown@intel.com, pavel@ucw.cz
Subject: Re: [Pcihpd-discuss] Re: [patch 2/3] acpiphp: add dock event handling
Date: Fri, 24 Feb 2006 09:29:37 -0800 [thread overview]
Message-ID: <1140802177.2085.4.camel@whizzy> (raw)
In-Reply-To: <87acchz3n6.wl%muneda.takahiro@jp.fujitsu.com>
On Fri, 2006-02-24 at 15:12 +0900, MUNEDA Takahiro wrote:
> At Thu, 23 Feb 2006 11:56:17 -0800,
> Kristen Accardi <kristen.c.accardi@intel.com> wrote:
> >
> > @@ -828,11 +862,21 @@ static int acpiphp_bus_add(struct acpiph
> > dbg("no parent device, assuming NULL\n");
> > pdevice = NULL;
> > }
> > + if (!acpi_bus_get_device(func->handle, &device)) {
> > + dbg("bus exists... trim\n");
> > + /* this shouldn't be in here, so remove
> > + * the bus then re-add it...
> > + */
> > + ret_val = acpi_bus_trim(device, 1);
> > + dbg("acpi_bus_trim return %x\n", ret_val);
> > + }
> > ret_val = acpi_bus_add(&device, pdevice, func->handle,
> > - ACPI_BUS_TYPE_DEVICE);
> > - if (ret_val)
> > - dbg("cannot add bridge to acpi list\n");
> > -
> > + ACPI_BUS_TYPE_DEVICE);
> > + if (ret_val) {
> > + dbg("error adding bus, %x\n",
> > + -ret_val);
> > + goto acpiphp_bus_add_out;
> > + }
> > /*
> > * try to start anyway. We could have failed to add
> > * simply because this bus had previously been added
>
> Hi Kristen,
>
> Why don't you call acpi_bus_trim() when the device is
> removed. This time, eject_dock() or disable_device()?
> So you don't need to call acpi_bus_trim() as error case.
>
> Thanks,
> MUNE
>
MUNE,
I added this because I found that in some laptops the dsdt reported a
bus present that wasn't actually, so the bus would be added at boot
time, but the PRT not read if the laptop was booted undocked. Initially
I tried to get a handle to the existing bus, and then if the bus already
was added, just call acpi_bus_start() - but this did not cause the PRT
to be read in this case - the only thing that worked for me was to
remove the bus and readd it. If there's a better way to handle this,
I'd appreciate the suggestion.
Kristen
next prev parent reply other threads:[~2006-02-24 17:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20060223195022.747891000@intel.com>
2006-02-23 19:56 ` [patch 1/3] acpi: export acpi_bus_trim Kristen Accardi
2006-02-23 19:56 ` [patch 2/3] acpiphp: add dock event handling Kristen Accardi
2006-02-24 6:12 ` MUNEDA Takahiro
2006-02-24 17:29 ` Kristen Accardi [this message]
2006-03-02 11:50 ` [Pcihpd-discuss] " MUNEDA Takahiro
2006-02-23 19:56 ` [patch 3/3] acpi: remove dock event handling from ibm_acpi Kristen Accardi
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=1140802177.2085.4.camel@whizzy \
--to=kristen.c.accardi@intel.com \
--cc=greg@kroah.com \
--cc=len.brown@intel.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=muneda.takahiro@jp.fujitsu.com \
--cc=pavel@ucw.cz \
--cc=pcihpd-discuss@lists.sourceforge.net \
/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