]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
myri10ge: replace the chipset whitelist with firmware autodetection
authorBrice Goglin <brice@myri.com>
Mon, 7 May 2007 21:52:22 +0000 (23:52 +0200)
committerJeff Garzik <jeff@garzik.org>
Tue, 8 May 2007 05:15:15 +0000 (01:15 -0400)
commit5443e9ead4f53fd7a43e6846cf10fdc0c5366a93
treef0fd7a9599aab29c5f609fd86b7ad49e2bd6b6ac
parent0d6ac257ab556838c3c5b1437a36251c2802285e
myri10ge: replace the chipset whitelist with firmware autodetection

Remove the aligned-completion whitelist, and replace it by using the 1.4.16
firmware's auto-detection features to choose which firmware to load.
The driver now loads the aligned firmware, performs a MXGEFW_CMD_UNALIGNED_TEST,
and falls back to using the unaligned firmware if:
- The firmware is too old (ie, MXGEFW_CMD_UNALIGNED_TEST is an unknown command).
- The MXGEFW_CMD_UNALIGNED_TEST returns MXGEFW_CMD_ERROR_UNALIGNED, meaning
  that it has seen an unaligned completion during the DMA test.

Signed-off-by: Brice Goglin <brice@myri.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/myri10ge/myri10ge.c