patches for DPDK stable branches
 help / color / mirror / Atom feed
* [dpdk-stable] [PATCH v2 1/2] raw/ifpga/base: fix spi transaction issue
@ 2020-07-09 16:45 Tianfei zhang
  0 siblings, 0 replies; only message in thread
From: Tianfei zhang @ 2020-07-09 16:45 UTC (permalink / raw)
  To: dev, rosen.xu; +Cc: Tianfei Zhang, stable

From: Tianfei Zhang <>

0x4a means idle status on physical layer. when encounter
0x4a on raw data, it need insert a ESCAPE character for

Fixes: 96ebfcf8 ("raw/ifpga/base: add SPI and MAX10 device driver")

Signed-off-by: Tianfei Zhang <>
 drivers/raw/ifpga/base/opae_spi_transaction.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/raw/ifpga/base/opae_spi_transaction.c b/drivers/raw/ifpga/base/opae_spi_transaction.c
index 013efee3e..d13d2fbc8 100644
--- a/drivers/raw/ifpga/base/opae_spi_transaction.c
+++ b/drivers/raw/ifpga/base/opae_spi_transaction.c
@@ -166,7 +166,7 @@ static int byte_to_core_convert(struct spi_transaction_dev *dev,
 		current_byte = send_data[i];
 		switch (current_byte) {
 		case SPI_BYTE_IDLE:
-			*p++ = SPI_BYTE_IDLE;
+			*p++ = SPI_BYTE_ESC;
 			*p++ = xor_20(current_byte);
 		case SPI_BYTE_ESC:

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-09  8:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-09 16:45 [dpdk-stable] [PATCH v2 1/2] raw/ifpga/base: fix spi transaction issue Tianfei zhang

patches for DPDK stable branches

This inbox may be cloned and mirrored by anyone:

	git clone --mirror stable/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 stable stable/ \
	public-inbox-index stable

Example config snippet for mirrors.
Newsgroup available over NNTP:

AGPL code for this site: git clone