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 0413BA0526; Thu, 9 Jul 2020 10:47:00 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5E64F1DE6D; Thu, 9 Jul 2020 10:47:00 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 3D3961DE62; Thu, 9 Jul 2020 10:46:58 +0200 (CEST) IronPort-SDR: jGVumT4IPtRV3zhkRvR2EN6PDUuY99QtkIuG/tPw4OHf5DqYT1N6bKHWbEZ62sZh5Zqq3fnc3U /khuqGZKEf1Q== X-IronPort-AV: E=McAfee;i="6000,8403,9676"; a="147953835" X-IronPort-AV: E=Sophos;i="5.75,331,1589266800"; d="scan'208";a="147953835" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jul 2020 01:46:57 -0700 IronPort-SDR: Z/cAcYU729sqAns/PrGiykXg8Sw/1eKN+RhmTRfxHz65Q6vReKYXR58Q3LdEcVpY+WtXxlJxL5 PRoed48Q3gAQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,331,1589266800"; d="scan'208";a="389077653" Received: from figo-optiplex-9020.sh.intel.com ([10.238.169.50]) by fmsmga001.fm.intel.com with ESMTP; 09 Jul 2020 01:46:55 -0700 From: Tianfei zhang To: dev@dpdk.org, rosen.xu@intel.com Cc: Tianfei Zhang , stable@dpdk.org Date: Fri, 10 Jul 2020 00:35:53 +0800 Message-Id: <20200709163553.8677-1-tianfei.zhang@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH v1 1/2] raw/ifpga/base: fix spi transaction issue X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 --- 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