[flashrom] [PATCH] (fixed) Allow DMI supported board enables with subsystem ID zero.

Michael Karcher flashrom at mkarcher.dialup.fu-berlin.de
Thu Feb 4 10:59:44 CET 2010

This is needed for the Intel SE440BX-2 as well as the Asus P5A.

Thanks to Carl-Daniel Hailfinger for pointing out wrong logic in
the patch.

Zach: please retry with this one instead of the previous version of
this patch. You can unpatch the previous version by
patch -R < oldpatch.diff

Signed-off-by: Michael Karcher <flashrom at mkarcher.dialup.fu-berlin.de>
 board_enable.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/board_enable.c b/board_enable.c
index 40db653..66afab4 100644
--- a/board_enable.c
+++ b/board_enable.c
@@ -1312,7 +1312,8 @@ static struct board_pciid_enable *board_match_pci_card_ids(void)
 	struct board_pciid_enable *board = board_pciid_enables;
 	for (; board->vendor_name; board++) {
-		if (!board->first_card_vendor || !board->first_card_device)
+		if (!board->first_card_vendor || 
+		    (!board->first_card_device && !board->dmi_pattern))
 		if (!pci_card_find(board->first_vendor, board->first_device,

More information about the flashrom mailing list