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 roysjosh@gmail.com Acked-by: Stefan Tauner stefan.tauner@student.tuwien.ac.at
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;