All of lore.kernel.org
 help / color / mirror / Atom feed
From: Frank Seidel <fseidel@suse.de>
To: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: trenn@suse.de, linux-acpi@vger.kernel.org,
	Len Brown <len.brown@intel.com>, Andrew Morton <akpm@osdl.org>
Subject: Re: [patch] ACPI: asus_acpi: return -ENODEV when no device found
Date: Thu, 26 Oct 2006 11:22:41 +0200	[thread overview]
Message-ID: <200610261122.46254.fseidel@suse.de> (raw)
In-Reply-To: <200610251358.25379.bjorn.helgaas@hp.com>

[-- Attachment #1: Type: text/plain, Size: 822 bytes --]

On Wednesday 25 October 2006 21:58, Bjorn Helgaas wrote:
> This driver is for non-hot-pluggable hardware.  Therefore, if the
> hardware isn't present, we want to return -ENODEV so a module load
> will fail.
>
> We previously returned "result" from the acpi_bus_register_driver()
> call. Registering the driver usually succeeds even if no devices are
> present, because the ACPI core allows you to load a driver before a
> device is hot-added.
>
> Someday the kernel will expose enough information so user-space can
> tell what ACPI drivers should be loaded.  But the kernel doesn't do
> that yet, so distros have to load this driver always and rely on the
> -ENODEV causing the load to fail if the hardware isn't found.
>
> Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Frank Seidel <fseidel@suse.de>

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2006-10-26  9:22 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-20  9:25 [patch 0/2] acpi: driverregistration again can report ENODEV fseidel
2006-10-20  9:25 ` [patch 1/2] " fseidel
2006-10-20  9:25 ` [patch 2/2] " fseidel
2006-10-20  9:59 ` [patch 0/2] " Thomas Renninger
2006-10-20 16:55   ` Bjorn Helgaas
2006-10-22 15:09     ` Thomas Renninger
2006-10-23 15:34       ` Bjorn Helgaas
2006-10-23 16:33         ` Frank Seidel
2006-10-24  9:05         ` Frank Seidel
2006-10-25 19:58           ` [patch] ACPI: asus_acpi: return -ENODEV when no device found Bjorn Helgaas
2006-10-26  9:22             ` Frank Seidel [this message]
2006-10-25 10:40     ` [patch 0/2] acpi: driverregistration again can report ENODEV Zhang Rui
2006-10-25 11:31       ` Thomas Renninger

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=200610261122.46254.fseidel@suse.de \
    --to=fseidel@suse.de \
    --cc=akpm@osdl.org \
    --cc=bjorn.helgaas@hp.com \
    --cc=len.brown@intel.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=trenn@suse.de \
    /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.