From: MUNEDA Takahiro <muneda.takahiro@jp.fujitsu.com>
To: Kristen Accardi <kristen.c.accardi@intel.com>
Cc: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org,
pcihpd-discuss@lists.sourceforge.net, greg@kroah.com,
len.brown@intel.com, muneda.takahiro@jp.fujitsu.com,
pavel@ucw.cz
Subject: Re: [patch 2/3] acpiphp: add dock event handling
Date: Fri, 24 Feb 2006 15:12:29 +0900 [thread overview]
Message-ID: <87acchz3n6.wl%muneda.takahiro@jp.fujitsu.com> (raw)
In-Reply-To: <1140724577.11750.17.camel@whizzy>
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
next prev parent reply other threads:[~2006-02-24 6:13 UTC|newest]
Thread overview: 7+ 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 [this message]
2006-02-24 17:29 ` [Pcihpd-discuss] " Kristen Accardi
2006-03-02 11:50 ` MUNEDA Takahiro
2006-02-23 19:56 ` [patch 3/3] acpi: remove dock event handling from ibm_acpi Kristen Accardi
[not found] <20060222190839.268403000@intel.com>
2006-02-22 19:21 ` [patch 2/3] acpiphp: add dock event handling 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=87acchz3n6.wl%muneda.takahiro@jp.fujitsu.com \
--to=muneda.takahiro@jp.fujitsu.com \
--cc=greg@kroah.com \
--cc=kristen.c.accardi@intel.com \
--cc=len.brown@intel.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--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
all inboxes | Powered by JetHome®