Fix write_page_write_jedec() in jedec.c

Added a check-reprogram loop in the same function, to come around the
high page write failure rate on some boards.

This patch includes the changes suggested by Ron to simplify the control

It also includes trivial changes by me to make flashrom build on newer
systems (libpci needs libz now). I also made a small type case compile
fix and proper return code handling in one or two places.

Corresponding to flashrom svn r78 and coreboot v2 svn r2505.

Signed-off-by: Giampiero Giancipoli <>
Signed-off-by: Ronald G Minnich <>
Signed-off-by: Stefan Reinauer <>
Acked-by: Stefan Reinauer <>
2 files changed