Skip to contentSkip to conversation

Fix MSB check in Xilinx Spartan slave serial mode

PATCH RESEND New Matthias Fuchs 2 participants 2 messages Dec 27, 2007 – Jan 9, 2008

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 4/5 Fix MSB check in Xilinx Spartan slave serial mode

---
 common/spartan2.c |    2 +-
 common/spartan3.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
common/spartan2.c +1 -1
index ef107bc..2f1ea2c 100644
@@ -441,7 +441,7 @@ static int Spartan2_ss_load (Xilinx_desc * desc, void *buf, size_t bsize)
 	int ret_val = FPGA_FAIL;	/* assume the worst */
 	Xilinx_Spartan2_Slave_Serial_fns *fn = desc->iface_fns;
 	int i;
-	char  val;
+	unsigned char val;
 
 	PRINTF ("%s: start with interface functions @ 0x%p\n",
 			__FUNCTION__, fn);
common/spartan3.c +1 -1
index 56a172e..d329e70 100644
@@ -446,7 +446,7 @@ static int Spartan3_ss_load (Xilinx_desc * desc, void *buf, size_t bsize)
 	int ret_val = FPGA_FAIL;	/* assume the worst */
 	Xilinx_Spartan3_Slave_Serial_fns *fn = desc->iface_fns;
 	int i;
-	char  val;
+	unsigned char val;
 
 	PRINTF ("%s: start with interface functions @ 0x%p\n",
 			__FUNCTION__, fn);
Signature · 1 line
1.5.3
#1 lore raw

PATCH RESEND 4/5 Fix MSB check in Xilinx Spartan slave serial mode

Quoted 5 lines · In message <[email protected]> you wrote:
---
 common/spartan2.c |    2 +-
 common/spartan3.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Life would be so much easier if we could  just  look  at  the  source
code.                                                   -- Dave Olson