Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2331023ybt; Tue, 16 Jun 2020 03:17:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrtQsw+vfOLIu5d63D21+uwIRtmLCYGsvzINAm5DJZpf1hFIhKpubIgbwPGV9XwCN4gqt6 X-Received: by 2002:a17:906:fc1a:: with SMTP id ov26mr1995035ejb.226.1592302667815; Tue, 16 Jun 2020 03:17:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1592302667; cv=pass; d=google.com; s=arc-20160816; b=aYUHw8vmO/VK5sf7IbrY23PH/bVxxLzc897Gyg1ee6rUHsjXl24ANEZGFh4Dk2Zi+y tL7mm1AbjUYVj6QIR/AxlkH0qNmYw5IuPXwOH8352KUh8Eg05rhtp3UPGFY47ku1bpNI VJ8lFEhEpQeo73g0CcxTGbX+tlSKUaqiXPCKV/H31UZOSNbIbUo1NsI//UiL2BkDSM8U LmONoKR1T1M3iKKeKaBYAEKV63PiumF+/K7yWYSJlpPbKxZ+p7gxVLR4WBkJB2sh8VEA Ay6CDRuhTDt8+4kK74fwuE45gImP1+4HSkIX+PdXtJVYGTwwp2mFBoind42Mcc1XnQIq cMSg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=IRQxwrJ4d2Xeoc+kWjDw0NMUYOmeZ8dH5t7kKKEJGI8=; b=deCR0x+dLJOvfOCcfmvQvKldaH2Irq8JRiHfY/5uOdHT770bTz/HG6MNt7ySYSwxbJ JsZqb9uxNfPTzI3DvgcSvPu/ZW3UwxunIpV4uBDuZ65yp3REn+Pk2oxH5KeHh56m/9+W bac2AVlvlhwf67XBANYW95Y0tjhB3KYD1mWxRLeQ5GX1+/vhyvxtZ/HRSOzzg/ysAqg8 aT3Q61XVXcFj2nm1pSQ7yvlrxCKGE8D0tnb4KAVSyQIqj6oy/j8fLcF3tsPCejhb6+EI PH9aZDfmYp908Q4INJ63R19jopjCcV+pN9ulF1S797J4NxvT0TAv4xgBS/nb91VdyfXs 585A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Y2F5r84b; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h3si13762640ejo.141.2020.06.16.03.17.25; Tue, 16 Jun 2020 03:17:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Y2F5r84b; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728187AbgFPKNO (ORCPT + 99 others); Tue, 16 Jun 2020 06:13:14 -0400 Received: from mail-eopbgr30049.outbound.protection.outlook.com ([40.107.3.49]:32826 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726052AbgFPKNN (ORCPT ); Tue, 16 Jun 2020 06:13:13 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WnHolN2f7I3174Vpj6g9s7Sd18yUUjYY1LZ4PKGKCvAdLRUhPvt2XHW4WX2/Y7YVeYV79i5SWRhWcNyU4VzIWmM6n/9BdtHV2qC8cn5+vnftebKxeEQ7QYl8ELrNxmjP78VZceAMKltvoXABl+9iLrQm7tg0cDNkbrtRzCDoXb8Bo/1gFn67A+TTIx6+IxHekn53k3gtwSpGdZjIUaJQoo5ETWl2cLaLH3fqRjIaiUheFbb1wuehRQb+OVqHicyXK0Iz8YK0ycUk9KkpxuNzQOrZnyhnS1Q7y78D5oAbCCHcNmJPUsbq5HcBAXtFQkONJ8iPYS12dP9P9u5zB2rWFg== 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=IRQxwrJ4d2Xeoc+kWjDw0NMUYOmeZ8dH5t7kKKEJGI8=; b=NLIbkmrvT8+JLvonGgTr9NuZqRoBXL1Uhl403M5CJbBu8vouRBRLUMWeNM9LZcbqt7M9/PgeFiOVTbCcaxFo05sdbSU2rXZzknXX58SLMVNh2Q+x0kc3UvlWFp0NJrVGWEnGeVxRoS7as38ZHxu0oqAA5tmurQyFpOA863yzzqH8Mv9n+9wVBYXg7XTXRSECh4WnVOVieeTqhochipKqeGWnRhhvC5w8NE3iKF44w/sVgigzUMCunYZGiGPuWq7+wawrb3uYlc1LPXizKMus4sCJhWiOyUSg3X1iHFZPKJfwoT4CTBUriMJXumYn05+zZnC3q4Qk6IlFyct5X39SrQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IRQxwrJ4d2Xeoc+kWjDw0NMUYOmeZ8dH5t7kKKEJGI8=; b=Y2F5r84bbbQfvmI77YitgT+paODnPiW7pE4b8S4ukZaSjhffYs6HUW2Lajxs/i2odVIqCVo263U8Hyi7KocAEq6Ydqru8hq1D4LyFiQSeoLmRN6f+IN+39XZVeVdzTFr54sWz02rriFmeV7O8VF6lVXAj1mD2GLKfjTbXSmGFE4= Received: from VE1PR04MB6638.eurprd04.prod.outlook.com (2603:10a6:803:119::15) by VE1PR04MB6621.eurprd04.prod.outlook.com (2603:10a6:803:124::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3088.24; Tue, 16 Jun 2020 10:13:08 +0000 Received: from VE1PR04MB6638.eurprd04.prod.outlook.com ([fe80::5cc4:23a5:ca17:da7d]) by VE1PR04MB6638.eurprd04.prod.outlook.com ([fe80::5cc4:23a5:ca17:da7d%6]) with mapi id 15.20.3088.028; Tue, 16 Jun 2020 10:13:08 +0000 From: Robin Gong To: Mark Brown CC: Vinod Koul , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "festevam@gmail.com" , "robin.murphy@arm.com" , "matthias.schiffer@ew.tq-group.com" , "kernel@pengutronix.de" , dl-linux-imx , "linux-spi@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v1 RFC 1/2] spi: introduce fallback to pio Thread-Topic: [PATCH v1 RFC 1/2] spi: introduce fallback to pio Thread-Index: AQHWP6z7CX2etPvPnk+oddH8JEW5FKjTbHIAgADDYUCAAJUwgIAACjoQgAA5dICAAOmA8IADsXmAgAANH1CAAASJgIAACZlAgAAGaACAAAKk4IAAAtQAgAC2bzCAAIkpAIAAAgdA Date: Tue, 16 Jun 2020 10:13:08 +0000 Message-ID: References: <20200612141611.GI5396@sirena.org.uk> <20200615123553.GP4447@sirena.org.uk> <20200615133905.GV4447@sirena.org.uk> <20200615143622.GX4447@sirena.org.uk> <20200615145556.GY4447@sirena.org.uk> <20200616095948.GJ4447@sirena.org.uk> In-Reply-To: <20200616095948.GJ4447@sirena.org.uk> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=nxp.com; x-originating-ip: [92.121.68.129] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: b7b04487-0512-4823-195f-08d811ddde44 x-ms-traffictypediagnostic: VE1PR04MB6621: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1923; x-forefront-prvs: 04362AC73B x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: R/dddy13f88GzBBMdf4vNNcCwh7CN53XC83DC7fcJjyiBtTxe+MXkQStFESrq7PBoGmkdZweOd6H7K5HadSvxFb+trnzIy2npe7QNYA2BZCCl30/IW+RewP52N1yJxoJNVbSfZqBjqmXu7mfT6vPX3BbwxrR5v+4xBlxuAjNF+xJFBuUuUb2z5Yiqy4n7KUFzdakX4yqEpDAqbK77Z6XT+7vYlX5hnd+CgtVKzsvqUt3gPCfBqo6CMcCx7A2CFigo0BYs+qVV8pEdDFY2HgY7t2k5oEYhVdz1O/5SGfdgjFJ4NHkpkjhN661EElvyoJt x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR04MB6638.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(39860400002)(346002)(376002)(366004)(396003)(136003)(33656002)(9686003)(478600001)(71200400001)(316002)(6916009)(8676002)(8936002)(83380400001)(7416002)(4326008)(86362001)(76116006)(66446008)(66556008)(66476007)(66946007)(64756008)(5660300002)(26005)(55016002)(186003)(6506007)(7696005)(4744005)(2906002)(54906003)(52536014);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: 3KSkwKbxS+0mrv1jPmr0ENSgnExyBzlvuL557Ckk0YZBFwrBbitUIy+MTxq9w1bwoGb1KO9ehd/ZjRNKhhexhN5xQYYgv6MwFrMVsWa4dZMZGEJKKGv2O5yCV1yoyZqP6IDzHuC9pqQlxUh8X0io0FiqXMJaezB41LZVwa2EKXHzumFxqqdzadv1/km8wRtuoL9HTX0aaX4OqvpJDqoP8HXRQMhlT63NsgEFvnN5MwG5d+pkzJ2VQQnR7zKPWOtip5y3MOgZFBgWrn0l/VP28p8o6mAKGtsLqnd/UU147dc0cnjv3BVqC26jDHrWQ4rMYRne5pdO5iB6wGEg1NRnTPbc7rlROAphNqCVqfaFJDUcNdTrhmHJhy1LEZ5zUHczouVZxA9QBrfwqxnKo0neGJnko5wYH0UIKvjs9liE+s9ojq/CMq9uXVaTxNJ9NhsHv3QeBo9kiKCCaIh9czb9oOWNXw5JSVs0ux7ze0oMt2E= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b7b04487-0512-4823-195f-08d811ddde44 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jun 2020 10:13:08.5205 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 5iIUT+Ne90l1zU+Tv5WaOAVK+te5caP2ljV0UvtbMuXbj0W8/8zc25BsYygLUNTYcWPVXK66rbiq2VKJcPgweQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6621 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/06/16 Mark Brown wrote: > On Tue, Jun 16, 2020 at 02:03:40AM +0000, Robin Gong wrote: > > struct list_head transfer_list; > > + > > +#define SPI_TRANS_DMA_PREP_FAIL BIT(3) /* prepare dma > failed */ > > + u16 flags; >=20 > I'd just make this a generic flag for failures before we start interactin= g with the > hardware rather than specifically this one error case. Otherwise this lo= oks > fine. So rename to SPI_TRANS_DMA_FAIL? I think at least DMA is MUST for fallback case...