* [U-Boot-Users] [PATCH] fix for "fpga load" on spartan3 in slave parallel mode
@ 2007-06-30 13:01 Bruce Adler
2007-07-01 13:02 ` Grant Likely
0 siblings, 1 reply; 2+ messages in thread
From: Bruce Adler @ 2007-06-30 13:01 UTC (permalink / raw)
To: u-boot
The while loop exits too soon if the "busy" function is a dummy function
which always returns false.
diff -pur a/common/spartan3.c b/common/spartan3.c
--- a/common/spartan3.c 2007-06-30 05:15:22.000000000 -0700
+++ b/common/spartan3.c 2007-06-30 05:17:30.000000000 -0700
@@ -176,7 +176,7 @@ static int Spartan3_sp_load (Xilinx_desc
"read data:\t0x%p\n"
"write data:\t0x%p\n"
"busy:\t0x%p\n"
- "abort:\t0x%p\n",
+ "abort:\t0x%p\n"
"post:\t0x%p\n\n",
__FUNCTION__, &fn, fn, fn->pre, fn->pgm, fn->init, fn->err,
fn->clk, fn->cs, fn->wr, fn->rdata, fn->wdata, fn->busy,
@@ -213,7 +213,7 @@ static int Spartan3_sp_load (Xilinx_desc
(*fn->abort) (cookie); /* abort the burn */
return FPGA_FAIL;
}
- } while ((*fn->init) (cookie) && (*fn->busy) (cookie));
+ } while ((*fn->init) (cookie) || (*fn->busy) (cookie));
(*fn->wr) (TRUE, TRUE, cookie); /* Assert write, commit */
(*fn->cs) (TRUE, TRUE, cookie); /* Assert chip select, commit */
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot-Users] [PATCH] fix for "fpga load" on spartan3 in slave parallel mode
2007-06-30 13:01 [U-Boot-Users] [PATCH] fix for "fpga load" on spartan3 in slave parallel mode Bruce Adler
@ 2007-07-01 13:02 ` Grant Likely
0 siblings, 0 replies; 2+ messages in thread
From: Grant Likely @ 2007-07-01 13:02 UTC (permalink / raw)
To: u-boot
On 6/30/07, Bruce Adler <bruce.adler@ccpu.com> wrote:
>
> The while loop exits too soon if the "busy" function is a dummy function
> which always returns false.
But what if it isn't? Shouldn't the old behaviour be preserved, or is
this another bug?
Should the dummy function always return true instead?
g.
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely at secretlab.ca
(403) 399-0195
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-01 13:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-30 13:01 [U-Boot-Users] [PATCH] fix for "fpga load" on spartan3 in slave parallel mode Bruce Adler
2007-07-01 13:02 ` Grant Likely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox