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

Michael Karcher flashrom at mkarcher.dialup.fu-berlin.de
Fri Jan 29 01:40:57 CET 2010


Hello Zach,
please apply this patch additionally to the earlier patch I sent you.
The board should get recognized then (You will see a line "Disabling
write protection for Intel SE440BX-2" in the flashrom -V log), and
please send again a flashrom -V output, so I can see whether identifying
the chip is now possible.

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

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))
 			continue;
 
 		if (!pci_card_find(board->first_vendor, board->first_device,
-- 
1.6.5





More information about the flashrom mailing list