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 9D789A0545; Wed, 15 Jul 2020 13:21:20 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5222A2C30; Wed, 15 Jul 2020 13:21:19 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id E27113B5; Wed, 15 Jul 2020 13:21:16 +0200 (CEST) IronPort-SDR: sXHQti2KVxQIso1T8UDU+JTswTUfwjCeqdfNWCCX3pZB0eqLE5s6CaN7ydrQW0sTkKkuc5TS6b siMRe5btV79g== X-IronPort-AV: E=McAfee;i="6000,8403,9682"; a="150535721" X-IronPort-AV: E=Sophos;i="5.75,355,1589266800"; d="scan'208";a="150535721" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jul 2020 04:21:15 -0700 IronPort-SDR: a1j7e0Vrc07VrsT9wQdUjDZxk01TTbAEbnf6dyIcwjoqDVf/9lLcMoleTV7jk0cWsL6zCdGpGP JlOx5/ozwTUA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,355,1589266800"; d="scan'208";a="326142131" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga007.jf.intel.com with ESMTP; 15 Jul 2020 04:21:15 -0700 Received: from fmsmsx154.amr.corp.intel.com (10.18.116.70) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 15 Jul 2020 04:21:15 -0700 Received: from FMSEDG001.ED.cps.intel.com (10.1.192.133) by FMSMSX154.amr.corp.intel.com (10.18.116.70) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 15 Jul 2020 04:21:15 -0700 Received: from NAM02-BL2-obe.outbound.protection.outlook.com (104.47.38.55) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 15 Jul 2020 04:21:14 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IzwNvXie9klcfHzlGzTzdX+nivqUM5dWCc/v/qpQ/jZ6waASjBL4kpSCSnyY76qgh2apgpy9vTxAPqzWB23/F2r5RAKpeGbgiqQHlpC3SiQueaKrfIgTNlBFkJG+rjOetOt72MUsFCbpi8UAyHax7JunVT0TvZ5PlczX5c2929w7vbA8+e7AcRS3DURZDLMSOfV6hO99Y4IhEWTsmBlyjlttBtYrcs7bF3YavSCfndsj0Kz4YFyc7rsz6789tcAortQNKjP0jugmBQxqWn5VkASCGindTgYY0rnwD27+qoOUwuomKnoKsF4/g1gGM/F/oinAY/afuN81DE15HB5tzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6jC1yFuZln91+ATtxeELGzxFZVaaIiTb8mSfLjZzYjI=; b=PErNTESrXxy2BmK6OPjISbvTH0N5y7vew/vBeap986z3rCl66tsiAN+Idm7bvPhfBEbN3EgH9tYnDRHZRkqLvxc0+drgbbluJn/rFZwlHZguJRKogG++4ct2ambaAQbobrzAvxMx0orNMw5shfmTWvbeIMcnM2JKEWG2JKCb8ooRkrqXwlejhsN2Pt0xeJbr89d39Z9sNdkFLldPgoEC0jnYCjjl8QCA0AmZC5QLwjtUfROubA5u0ndApp6hIVzSF1IwWjWBp7pm8OipNQOE271/2gSI4gRd76bXwcg2k2eGRS/bN+8buGiSA/KahYRYO7xg93s0a/n4u2upefyuyg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6jC1yFuZln91+ATtxeELGzxFZVaaIiTb8mSfLjZzYjI=; b=KH0txUonmueDbrY+3V1IRTCIIkTDfqcxPn/LXcDdDBfSmH84NQpAFABcES9f4z4Ty/6Gzarh5JebIG3lOmaRUi7gmDczKh3DNFVdOkVUvZnTClPkK5GL9oXiQAdVoSXFagPjsDcSat6q8kGCZddYpjXyYhSkzRdt42Cf6zGk7uM= Received: from BYAPR11MB2901.namprd11.prod.outlook.com (2603:10b6:a03:91::23) by BYAPR11MB2808.namprd11.prod.outlook.com (2603:10b6:a02:c8::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.23; Wed, 15 Jul 2020 11:21:11 +0000 Received: from BYAPR11MB2901.namprd11.prod.outlook.com ([fe80::6552:92f9:74a5:412]) by BYAPR11MB2901.namprd11.prod.outlook.com ([fe80::6552:92f9:74a5:412%4]) with mapi id 15.20.3174.026; Wed, 15 Jul 2020 11:21:11 +0000 From: "Xu, Rosen" To: "Zhang, Tianfei" , "dev@dpdk.org" CC: "stable@dpdk.org" Thread-Topic: [PATCH v3 1/2] raw/ifpga/base: fix spi transaction issue Thread-Index: AQHWWeU3KABkPVf52E+XktR7TMwz96kIgDPg Date: Wed, 15 Jul 2020 11:21:11 +0000 Message-ID: References: <20200709163553.8677-1-tianfei.zhang@intel.com> <20200714213509.13650-1-tianfei.zhang@intel.com> In-Reply-To: <20200714213509.13650-1-tianfei.zhang@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.102.204.45] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6e3326e3-9bc7-4dde-1624-08d828b12e00 x-ms-traffictypediagnostic: BYAPR11MB2808: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:576; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: PD0tppyichggBSCAGR42vftZqoNnVLdouW+aj92knooYq9VzILLxaPu1wGv2WifPUjjz/5LcbObt7gAOSxz6RpYaTd1cs1moWQTRxETmGeH7gxM1OmjRxg2jOLHTzlG1VjOHCJtGJxcEVCqSV1DETAgbIxIclgJQ0GdqpLzDO8Q6OYl7wn1jWYgKA0h10HBl4DqKIbX8TIEvsNM7WPOLfejAIVr8sj5OJaPePdsRsoP2kzoL46LRV3eYXiZF+aF0JzqKhU5S2Yh1ekhOmLB+loKryZLjj9xS5VohwaumQ5mM+FT+faHczVKc+b8GDOvA x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR11MB2901.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(396003)(366004)(39860400002)(376002)(346002)(136003)(316002)(8676002)(110136005)(186003)(9686003)(55016002)(71200400001)(2906002)(33656002)(478600001)(86362001)(450100002)(4326008)(7696005)(83380400001)(26005)(6506007)(53546011)(64756008)(76116006)(66556008)(66946007)(52536014)(5660300002)(66476007)(8936002)(66446008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: 5tgtu0TY+kqxez/iO/v85J3EZty63yWlMpBC8bogyf5A0PoZiulX0fRfO4rAoY+qRGndBQx8DcZLkrYv2dD9ZSnH0tJFBJlQOPqFD7CE9V2A1knHCEcsNj+0EQit2D+w/xkDOr55ansXOm1qNfvy8TbRlvYD3tGeqJTDkxa3RarH6zalghgYVu+NE9KAKV+L/AUhzTq45bOkJPrzMykv8NUWf8UXCY0B4VpG8vLLWHmAZEJM8ykje1083KMFGFMEjhHfaqbLCra8nY2p1Ze1VTPiKbN7hHruxEM/zIjZWzD5wRxD5YOYPuDj3rLWVNMZhqlwGhTZlYpgeCtZ+F8RIQsI9xiMyE5UW0X0qVvE2vY1UtC2wkRJjkWBrE5ivLMgWnMH5vU8hvMGCHCMwGusQCvQqGA6C7hyZBu/Kvp/hAcXEJKGatcsKi24oJxxLKZd6XjQEHWBk9qAobV78ym+umA80uPvFvsYlhN1LydUcZCPfBfAitBv4UdNloP7uMVN Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR11MB2901.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6e3326e3-9bc7-4dde-1624-08d828b12e00 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jul 2020 11:21:11.7076 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Q+RQKWpmOpC9eX8SoBBiYU9SF2dBHYCk1b6Onpmgrs7CsDQbq1r1i4UI4Ri/VfIq8uGyj9Hz2/QGCKQTs7ExuQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB2808 X-OriginatorOrg: intel.com Subject: Re: [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" -----Original Message----- From: Zhang, Tianfei =20 Sent: Wednesday, July 15, 2020 5:35 AM To: dev@dpdk.org; Xu, Rosen Cc: Zhang, Tianfei ; stable@dpdk.org Subject: [PATCH v3 1/2] raw/ifpga/base: fix spi transaction issue 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/if= pga/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 =3D send_data[i]; switch (current_byte) { case SPI_BYTE_IDLE: - *p++ =3D SPI_BYTE_IDLE; + *p++ =3D SPI_BYTE_ESC; *p++ =3D xor_20(current_byte); break; case SPI_BYTE_ESC: -- 2.17.1 Acked-by: Rosen Xu