[dpdk-stable] patch 'raw/ifpga/base: fix SPI transaction' has been queued to stable release 19.11.4

luca.boccassi at gmail.com luca.boccassi at gmail.com
Fri Jul 24 14:00:16 CEST 2020


Hi,

FYI, your patch has been queued to stable release 19.11.4

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 07/26/20. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Thanks.

Luca Boccassi

---
>From 6c071742a95c7ee2ca97b7ed7e6b13e8fc4efced Mon Sep 17 00:00:00 2001
From: Tianfei Zhang <tianfei.zhang at intel.com>
Date: Wed, 15 Jul 2020 05:35:08 +0800
Subject: [PATCH] raw/ifpga/base: fix SPI transaction

[ upstream commit 6f583cd8b01b5b6568668ce8efb78d3eaaa55b61 ]

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

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

Signed-off-by: Tianfei Zhang <tianfei.zhang at intel.com>
Acked-by: Rosen Xu <rosen.xu at intel.com>
---
 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);
 			break;
 		case SPI_BYTE_ESC:
-- 
2.20.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2020-07-24 12:53:55.421991594 +0100
+++ 0178-raw-ifpga-base-fix-SPI-transaction.patch	2020-07-24 12:53:48.599012273 +0100
@@ -1,14 +1,15 @@
-From 6f583cd8b01b5b6568668ce8efb78d3eaaa55b61 Mon Sep 17 00:00:00 2001
+From 6c071742a95c7ee2ca97b7ed7e6b13e8fc4efced Mon Sep 17 00:00:00 2001
 From: Tianfei Zhang <tianfei.zhang at intel.com>
 Date: Wed, 15 Jul 2020 05:35:08 +0800
 Subject: [PATCH] raw/ifpga/base: fix SPI transaction
 
+[ upstream commit 6f583cd8b01b5b6568668ce8efb78d3eaaa55b61 ]
+
 0x4a means idle status on physical layer. when encounter
 0x4a on raw data, it need insert a ESCAPE character for
 indication.
 
 Fixes: 96ebfcf8 ("raw/ifpga/base: add SPI and MAX10 device driver")
-Cc: stable at dpdk.org
 
 Signed-off-by: Tianfei Zhang <tianfei.zhang at intel.com>
 Acked-by: Rosen Xu <rosen.xu at intel.com>


More information about the stable mailing list