Fix SPI multicommand endless loop in default_spi_send_multicommand.
Signed-off-by: Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net
Index: flashrom-spi_multicommand_loopfix/spi.c =================================================================== --- flashrom-spi_multicommand_loopfix/spi.c (Revision 669) +++ flashrom-spi_multicommand_loopfix/spi.c (Arbeitskopie) @@ -147,6 +147,7 @@ while ((spicommands->writecnt || spicommands->readcnt) && !result) { result = spi_send_command(spicommands->writecnt, spicommands->readcnt, spicommands->writearr, spicommands->readarr); + spicommands++; } return result; }
Carl-Daniel Hailfinger wrote:
Fix SPI multicommand endless loop in default_spi_send_multicommand.
Signed-off-by: Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net
untested, but looks like it makes sense...
Acked-by: Stefan Reinauer stepan@coresystems.de
Index: flashrom-spi_multicommand_loopfix/spi.c
--- flashrom-spi_multicommand_loopfix/spi.c (Revision 669) +++ flashrom-spi_multicommand_loopfix/spi.c (Arbeitskopie) @@ -147,6 +147,7 @@ while ((spicommands->writecnt || spicommands->readcnt) && !result) { result = spi_send_command(spicommands->writecnt, spicommands->readcnt, spicommands->writearr, spicommands->readarr);
} return result;spicommands++;
}
On 03.08.2009 02:08, Stefan Reinauer wrote:
Carl-Daniel Hailfinger wrote:
Fix SPI multicommand endless loop in default_spi_send_multicommand.
Signed-off-by: Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net
untested, but looks like it makes sense...
Acked-by: Stefan Reinauer stepan@coresystems.de
Thanks, r670.
Regards, Carl-Daniel