From: Bjorn Helgaas <bjorn.helgaas@hp.com>
To: Arjan van de Ven <arjan@infradead.org>
Cc: linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org
Subject: Re: [patch 2/2] fastboot: use a DMI match table to set defaults for port-disable
Date: Wed, 20 Aug 2008 16:46:06 -0600 [thread overview]
Message-ID: <200808201646.07159.bjorn.helgaas@hp.com> (raw)
In-Reply-To: <20080811153730.74599410@infradead.org>
On Monday 11 August 2008 04:37:30 pm Arjan van de Ven wrote:
>
> From: Arjan van de Ven <arjan@linux.intel.com>
> Subject: [PATCH] libata: use a DMI match table to set defaults for port-disable
>
> As suggested by Jeff:
> This patch adds a DMI table that is used for setting defaults for
> the new dont-probe-port parameter boot time optimization feature.
Isn't this the sort of thing we theoretically could learn from ACPI?
I know we haven't really taken advantage of what ACPI tells us about
the presence of legacy devices like COM ports and IDE ports, but
maybe we should.
> +static int __init dmi_disable_ports(const struct dmi_system_id *d)
> +{
> + int value = (unsigned long)d->driver_data;
> +
> + printk(KERN_INFO "libata: DMI match used to disable probing\n");
> + libata_disable_ports |= value;
> + return 0;
> +}
> +
> +#define DMI_PORT_ATA1 (void *)0x1
> +#define DMI_PORT_ATA2 (void *)0x2
> +#define DMI_PORT_ATA3 (void *)0x4
> +#define DMI_PORT_ATA4 (void *)0x8
> +
> +static struct dmi_system_id libata_dmi_table[] __initdata = {
> + /*
> + * The Asus EeePC901 has its devices attached to ATA2 only
> + */
> + {
> + .callback = dmi_disable_ports,
> + .driver_data = DMI_PORT_ATA1,
> + .ident = "Asus EeePC 901",
> + .matches = {
> + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK Computer INC."),
> + DMI_MATCH(DMI_PRODUCT_NAME, "901"),
> + },
> + },
> + {}
> +};
> +
> +
> /**
> * ata_force_cbl - force cable type according to libata.force
> * @ap: ATA port of interest
> @@ -6126,6 +6158,7 @@ static void __init ata_parse_force_param(void)
> static int __init ata_init(void)
> {
> ata_parse_force_param();
> + dmi_check_system(libata_dmi_table);
>
> ata_wq = create_workqueue("ata");
> if (!ata_wq)
prev parent reply other threads:[~2008-08-20 22:46 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-11 22:35 [patch 0/2] fastboot: allow skipping probing of known-unused ports in libata Arjan van de Ven
2008-08-11 22:36 ` [patch 1/2] fastboot: Add a module parameter to skip probing of specific ports Arjan van de Ven
2008-08-12 7:39 ` Alan Cox
2008-08-12 11:36 ` Arjan van de Ven
2008-08-12 12:00 ` Alan Cox
2008-08-12 14:02 ` Arjan van de Ven
2008-08-12 14:21 ` Alan Cox
2008-08-11 22:37 ` [patch 2/2] fastboot: use a DMI match table to set defaults for port-disable Arjan van de Ven
2008-08-12 1:09 ` Marcel Holtmann
2008-08-12 5:04 ` Arjan van de Ven
2008-08-12 8:10 ` Alan Cox
2008-08-12 11:37 ` Arjan van de Ven
2008-08-12 11:58 ` Alan Cox
2008-08-20 22:46 ` Bjorn Helgaas [this message]
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=200808201646.07159.bjorn.helgaas@hp.com \
--to=bjorn.helgaas@hp.com \
--cc=arjan@infradead.org \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®