From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B2250A0542 for ; Tue, 14 Jul 2020 15:46:27 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 882261D519; Tue, 14 Jul 2020 15:46:27 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id D9DA21D412; Tue, 14 Jul 2020 15:46:23 +0200 (CEST) IronPort-SDR: KGwnWVf3P1U02gvu97bp20+F1lRozOnW3eryKNoLquFQK7WQ1yddWhb4lxAwNArioKx8sBr/PA +A3PkgnCW6yQ== X-IronPort-AV: E=McAfee;i="6000,8403,9681"; a="146905615" X-IronPort-AV: E=Sophos;i="5.75,350,1589266800"; d="scan'208";a="146905615" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jul 2020 06:46:21 -0700 IronPort-SDR: cimCXOkCYOt1ILUAZBftFUybhppCMzsZLkgsAtZBIvJnNmXe6xTP3bMWwqVHFaZ9uOxAOn6vP6 dwvAHwQn9EQA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,350,1589266800"; d="scan'208";a="268658768" Received: from figo-optiplex-9020.sh.intel.com ([10.238.169.50]) by fmsmga007.fm.intel.com with ESMTP; 14 Jul 2020 06:46:21 -0700 From: Tianfei zhang To: dev@dpdk.org, rosen.xu@intel.com Cc: Tianfei Zhang , stable@dpdk.org Date: Wed, 15 Jul 2020 05:35:08 +0800 Message-Id: <20200714213509.13650-1-tianfei.zhang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200709163553.8677-1-tianfei.zhang@intel.com> References: <20200709163553.8677-1-tianfei.zhang@intel.com> Subject: [dpdk-stable] [PATCH v3 1/2] raw/ifpga/base: fix spi transaction issue X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" From: Tianfei Zhang 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@dpdk.org Signed-off-by: Tianfei Zhang --- v3: resend with threaded option for git send-email --- 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.17.1