From patchwork Tue Jul 14 21:35:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhang, Tianfei" X-Patchwork-Id: 74002 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 62C22A0540; 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 0B9FC1D418; Tue, 14 Jul 2020 15:46:26 +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-dev] [PATCH v3 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 Signed-off-by: Tianfei Zhang Acked-by: Rosen Xu --- 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: