Author: stefanct Date: Thu May 26 15:30:51 2011 New Revision: 1319 URL: http://flashrom.org/trac/flashrom/changeset/1319
Log: ichspi: fix detection of unused regions Signed-off-by: Joshua Roys <[email protected]> Acked-by: Stefan Tauner <[email protected]> Modified: trunk/ichspi.c Modified: trunk/ichspi.c ============================================================================== --- trunk/ichspi.c Thu May 26 03:35:19 2011 (r1318) +++ trunk/ichspi.c Thu May 26 15:30:51 2011 (r1319) @@ -1045,7 +1045,7 @@ base = ICH_FREG_BASE(freg); limit = ICH_FREG_LIMIT(freg); - if (base == 0x1fff && limit == 0) { + if (base > limit) { /* this FREG is disabled */ msg_pdbg("%s region is unused.\n", region_names[i]); return; _______________________________________________ flashrom mailing list [email protected] http://www.flashrom.org/mailman/listinfo/flashrom
