[flashrom] [PATCH] Fix parallel-style programmer access from SPI

Carl-Daniel Hailfinger c-d.hailfinger.devel.2006 at gmx.net
Thu Mar 1 01:56:00 CET 2012


Am 01.03.2012 01:51 schrieb Stefan Tauner:
> On Thu, 01 Mar 2012 01:42:27 +0100
> Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net> wrote:
>
>> RFC: Are those checks with abort a good idea or do they break stuff?
>> exit(1) is not a nice thing for libflashrom, but then again, it's
>> probably better than exploding.
> at least the spi functions are able to return an error, why exit
> instead?!

Not all the way down the calling graph. spi_read_status_register()
returns the status register itself (or garbage in case there was an error).
Regards,
Carl-Daniel

-- 
http://www.hailfinger.org/





More information about the flashrom mailing list