Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3430477yba; Tue, 23 Apr 2019 03:47:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqynnJkAMAA2+0M9gREZXkLuKplgt+OzOES6bxNzATGbPc5CtMu7W4ev4TE22nbIkvXo4NEu X-Received: by 2002:a17:902:b68e:: with SMTP id c14mr26403290pls.49.1556016460045; Tue, 23 Apr 2019 03:47:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556016460; cv=none; d=google.com; s=arc-20160816; b=kGmVnP572Yms6VIz6jzsuXCQbFXXg9tfUAyc62Zzr9/Qr6nOYrmUW2ZHboEjRilfR6 HZDAs28CizbVmXfL+r8XHY95Vs+fDFOWo1jm8Z1GwRMwLsejj7p1NLagQ7cI1s8cF8qt Ju/OUr/+gERnfNhsg5Z2W8XrgugttNDtdD6yizce3DvG95IkOCxoLtbj9R17QPloSgTv Z8V9Oi5q/hDqd128ivPvY5MAviKJoVK0aC+IPvIiAehwSCSxbP+NnvtC1NqkIAHqI+W6 bVZGCLiJAID2oavhbj4A/m3muhcCfn/L/CsoCPgTFN3bZocNaeCHgei3Q2zyx4Z0rzwu /RAA== ARC-Message-Signature: i=1; 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=SUIIGy3Kfn8LdkNcOefMbRCNB/8qw3c+dz2BKE77vk8=; b=XXTqAint67YHkf4vwKicIdTbPOgm8+EgWhaNMGyHrcpI4zeUD6lIkId/Jw36V2uY8g COypxIVhtAe9nm7AntCipVh3LR5uXS5ZeAR7oYKrrH0zVy9uE80njUIfoKKnwNUV1QwC gGtdgg2Py2nmVp4VFLGUSmJ2FaUBIM0NOjdpUm9bedLvRqk8AbY5zwUDkHL4lREvEhtW Kh2AsNEJLWqGVXzy4dAKEKY/PvrPmhbjigfJYoMuaN+3czRFht33TK3Ko+NVBXOYLzQV e4JjmOKQOcWwGRbW+5N5T9il4utRToX2X45icFCihAGLnyoCZZDxlWYIApNO7weWDcuv KcGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=aUPw9X3d; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id l191si15744286pfc.213.2019.04.23.03.47.24; Tue, 23 Apr 2019 03:47:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=aUPw9X3d; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727509AbfDWKq0 (ORCPT + 99 others); Tue, 23 Apr 2019 06:46:26 -0400 Received: from mail-eopbgr00065.outbound.protection.outlook.com ([40.107.0.65]:14144 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727461AbfDWKqY (ORCPT ); Tue, 23 Apr 2019 06:46:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SUIIGy3Kfn8LdkNcOefMbRCNB/8qw3c+dz2BKE77vk8=; b=aUPw9X3dX5JOTmHokPPHoeyxTUY0oVaowAg2e7ltMXgrsBegdsMONGjGzx4N5VoaY6Ic2STkMddypWA8dImx2x5NPwcClsFa5RyqEy3DcFEQ2Cum3F7BOzcDox8lpvT/MByi2pBRDST5zNINt8dNvMrKQjVUbaRbhGZa1l9uMI4= Received: from AM6PR04MB5016.eurprd04.prod.outlook.com (20.177.34.88) by AM6PR04MB4901.eurprd04.prod.outlook.com (20.177.33.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1813.14; Tue, 23 Apr 2019 10:46:22 +0000 Received: from AM6PR04MB5016.eurprd04.prod.outlook.com ([fe80::b953:a9de:d0bf:7159]) by AM6PR04MB5016.eurprd04.prod.outlook.com ([fe80::b953:a9de:d0bf:7159%5]) with mapi id 15.20.1813.017; Tue, 23 Apr 2019 10:46:22 +0000 From: Clark Wang To: "broonie@kernel.org" CC: "linux-spi@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: [PATCH 2/3] spi: lpspi: add multi SS support in PIO mode Thread-Topic: [PATCH 2/3] spi: lpspi: add multi SS support in PIO mode Thread-Index: AQHU+cHKq71me01A3EuIkqhmibfqDQ== Date: Tue, 23 Apr 2019 10:46:22 +0000 Message-ID: <20190423104649.24483-3-xiaoning.wang@nxp.com> References: <20190423104649.24483-1-xiaoning.wang@nxp.com> In-Reply-To: <20190423104649.24483-1-xiaoning.wang@nxp.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: KU1PR03CA0048.apcprd03.prod.outlook.com (2603:1096:802:19::36) To AM6PR04MB5016.eurprd04.prod.outlook.com (2603:10a6:20b:9::24) x-mailer: git-send-email 2.17.1 authentication-results: spf=none (sender IP is ) smtp.mailfrom=xiaoning.wang@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.71] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 39921b8b-390f-4abb-53d9-08d6c7d8ec97 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:AM6PR04MB4901; x-ms-traffictypediagnostic: AM6PR04MB4901: x-microsoft-antispam-prvs: x-forefront-prvs: 0016DEFF96 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(136003)(39860400002)(346002)(376002)(366004)(396003)(199004)(189003)(26005)(186003)(66066001)(102836004)(11346002)(6506007)(386003)(2616005)(14444005)(486006)(316002)(76176011)(476003)(52116002)(446003)(256004)(2351001)(2906002)(66946007)(73956011)(86362001)(6116002)(3846002)(99286004)(36756003)(66446008)(66556008)(66476007)(64756008)(54906003)(5660300002)(71200400001)(50226002)(478600001)(71190400001)(305945005)(8676002)(2501003)(6512007)(8936002)(6436002)(68736007)(1730700003)(81156014)(25786009)(81166006)(6916009)(4326008)(14454004)(5640700003)(1076003)(53936002)(6486002)(97736004)(7736002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM6PR04MB4901;H:AM6PR04MB5016.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: F1cywFmk6Km1w2FB/jiB4xaxu/tPeyw80Lv7nBFxguYZmNYJboQd9DmNRlzuQZTBM4bRZPW3BefZ1qQqxT69LkLMGN0GBAKsIvXLfH93qohhMjzitTaxuBgPNf1zhCW3kClevVxTpPkSvYOEP9wrz6Gl90ktUhWJFxncLxogTGdZ1miv7VZMKE38w94E0XcSbLkL2BWzoSeobxWvJyXfjcryyidVhbDHONUNAub027pSZcSP8k9jH6cez3XzkHhaSNeLxPbzSVCOyo9ZhmTpw1kkuu/Vp51bKtFMhw59nlwHD9vuDvqhx2OOwmhBpSBEjg/y5A+F/4QdgWt1v0OMchluvkFVKWjaLZAReULJzIVxueYrc8m7oClxo8fanLX0CQa3R+cT97cTCzLBZOrd9mN1bNnXUTu8sxYIa/LrKUc= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 39921b8b-390f-4abb-53d9-08d6c7d8ec97 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Apr 2019 10:46:22.2042 (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-Transport-CrossTenantHeadersStamped: AM6PR04MB4901 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org QWRkICJmc2wsc3BpLW51bS1jaGlwc2VsZWN0cyIgY2hlY2sgdG8gc3VwcG9ydCBtdWx0aSBTUyBm dW5jdGlvbiBpbiBQSU8NCm1vZGUuDQoNClNpZ25lZC1vZmYtYnk6IENsYXJrIFdhbmcgPHhpYW9u aW5nLndhbmdAbnhwLmNvbT4NCkFja2VkLWJ5OiBGdWdhbmcgRHVhbiA8ZnVnYW5nLmR1YW5Abnhw LmNvbT4NCi0tLQ0KIGRyaXZlcnMvc3BpL3NwaS1mc2wtbHBzcGkuYyB8IDEyICsrKysrKysrKysr LQ0KIDEgZmlsZSBjaGFuZ2VkLCAxMSBpbnNlcnRpb25zKCspLCAxIGRlbGV0aW9uKC0pDQoNCmRp ZmYgLS1naXQgYS9kcml2ZXJzL3NwaS9zcGktZnNsLWxwc3BpLmMgYi9kcml2ZXJzL3NwaS9zcGkt ZnNsLWxwc3BpLmMNCmluZGV4IDE5MDQwYjVlZjM0OS4uYThlODNjYjk2ZjYxIDEwMDY0NA0KLS0t IGEvZHJpdmVycy9zcGkvc3BpLWZzbC1scHNwaS5jDQorK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