From: Jesse Barnes <jbarnes@virtuousgeek.org>
To: Jean Delvare <khali@linux-fr.org>
Cc: LKML <linux-kernel@vger.kernel.org>,
Andi Kleen <andi@firstfloor.org>,
Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH 1/2] PCI: Don't use dmi_name_in_vendors in quirk
Date: Sat, 21 May 2011 09:47:39 -0700 [thread overview]
Message-ID: <20110521094739.0770bbc9@jbarnes-e6510> (raw)
In-Reply-To: <20110515181346.23a9273c@endymion.delvare>
On Sun, 15 May 2011 18:13:46 +0200
Jean Delvare <khali@linux-fr.org> wrote:
> Don't use the costly dmi_name_in_vendors() when we know the string we
> are looking for can only be in the DMI board name field. This is more
> robust and, more importantly, much faster.
>
> Signed-off-by: Jean Delvare <khali@linux-fr.org>
> Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
> ---
> drivers/pci/quirks.c | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> --- linux-2.6.39-rc7.orig/drivers/pci/quirks.c 2011-05-14
> 13:07:14.000000000 +0200 +++
> linux-2.6.39-rc7/drivers/pci/quirks.c 2011-05-15
> 14:42:02.000000000 +0200 @@ -2349,8 +2349,11 @@
> DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_A */ static void __devinit
> nvenet_msi_disable(struct pci_dev *dev) {
> - if (dmi_name_in_vendors("P5N32-SLI PREMIUM") ||
> - dmi_name_in_vendors("P5N32-E SLI")) {
> + const char *board_name = dmi_get_system_info(DMI_BOARD_NAME);
> +
> + if (board_name &&
> + (strstr(board_name, "P5N32-SLI PREMIUM") ||
> + strstr(board_name, "P5N32-E SLI"))) {
> dev_info(&dev->dev,
> "Disabling msi for MCP55 NIC on
> P5N32-SLI\n"); dev->no_msi = 1;
>
>
Applied, thanks.
prev parent reply other threads:[~2011-05-21 16:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-15 16:13 [PATCH 1/2] PCI: Don't use dmi_name_in_vendors in quirk Jean Delvare
2011-05-21 16:47 ` Jesse Barnes [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=20110521094739.0770bbc9@jbarnes-e6510 \
--to=jbarnes@virtuousgeek.org \
--cc=akpm@linux-foundation.org \
--cc=andi@firstfloor.org \
--cc=khali@linux-fr.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