Fix chip size limiting in atapromise
The current code is checking model_id to remember if a chip has already
been limited, but if flashchips.c contains two subsequent chips with
different vendor_id but identical model_id the adjustment will not be
done. Switch to checking the chip size instead.
If a chip has multiple whole-chip erase functions, only one will be
modified. Fix that.
Corresponding to flashrom svn r1930.
Signed-off-by: Carl-Daniel Hailfinger <email@example.com>
Tested-by: Joseph C. Lehner <firstname.lastname@example.org>
Acked-by: Urja Rannikko <email@example.com>
1 file changed