Skip to contentSkip to conversation

video, formike: change tag/val write

PATCH New Heiko Schocher 2 participants 2 messages Oct 22, 2013 – Oct 30, 2013 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 video, formike: change tag/val write

write first the "tag" 8 bit value and then the "val" 8-bit to the display.

Tested on the rut board.

Cc Anatolij Gustschin <[email protected]>
---
 drivers/video/formike.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/video/formike.c +4 -3
index b9b6822..1383158 100644
@@ -27,10 +27,11 @@ static int spi_write_tag_val(struct spi_slave *spi, unsigned char tag,
 	int ret;
 
 	buf[0] = tag;
-	buf[1] = val;
-	flags |= SPI_XFER_END;
+	ret = spi_xfer(spi, 8, buf, NULL, flags);
+	buf[0] = val;
+	flags = SPI_XFER_END;
+	ret = spi_xfer(spi, 8, buf, NULL, flags);
 
-	ret = spi_xfer(spi, 16, buf, NULL, flags);
 #ifdef KWH043ST20_F01_SPI_DEBUG
 	printf("spi_write_tag_val: tag=%02X, val=%02X ret: %d\n",
 	       tag, val, ret);
Signature · 1 line
1.8.3.1
#1 lore raw

PATCH 1/1 video, formike: change tag/val write

Quoted 10 lines · On Tue, 22 Oct 2013 11:06:24 +0200 Heiko Schocher <[email protected]> wrote:

write first the "tag" 8 bit value and then the "val" 8-bit to the display.

Tested on the rut board.

Cc Anatolij Gustschin <[email protected]>
---
 drivers/video/formike.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

applied to u-boot-video/master, thanks!

Anatolij