Message ID | 1475852194-27690-2-git-send-email-tthayer@opensource.altera.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-spi-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 264B960487 for <patchwork-linux-spi@patchwork.kernel.org>; Fri, 7 Oct 2016 14:50:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1497D29663 for <patchwork-linux-spi@patchwork.kernel.org>; Fri, 7 Oct 2016 14:50:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 08BD829665; Fri, 7 Oct 2016 14:50:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C97F42965E for <patchwork-linux-spi@patchwork.kernel.org>; Fri, 7 Oct 2016 14:50:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756692AbcJGOu5 (ORCPT <rfc822;patchwork-linux-spi@patchwork.kernel.org>); Fri, 7 Oct 2016 10:50:57 -0400 Received: from mail-co1nam03on0056.outbound.protection.outlook.com ([104.47.40.56]:55323 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753368AbcJGOuy (ORCPT <rfc822;linux-spi@vger.kernel.org>); Fri, 7 Oct 2016 10:50:54 -0400 X-Greylist: delayed 139588 seconds by postgrey-1.27 at vger.kernel.org; Fri, 07 Oct 2016 10:50:54 EDT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=altera.onmicrosoft.com; s=selector1-opensource-altera-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=iKtKnowi2nzuujlo1DtSIfartCTznEsTKiWIUX8EPA0=; b=H95XIFSsWY584TWWErzto+vqtLf/rJ201ZLLVan0uuqL+yfJtneHCS0jq+ZfBqHRqudbcFqr21co7j+AuLe04a3i1HjtfCkVVmluuxZgLYxailwcAllIqDZ1gKKZCsbNZZY56ipn6MJyiU7mBRctQoJe55U8kZjxDueK5QRM2FQ= Received: from BN6PR03CA0001.namprd03.prod.outlook.com (10.168.230.139) by BL2PR03MB484.namprd03.prod.outlook.com (10.141.92.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.649.16; Fri, 7 Oct 2016 14:50:52 +0000 Received: from BN1AFFO11FD020.protection.gbl (2a01:111:f400:7c10::100) by BN6PR03CA0001.outlook.office365.com (2603:10b6:404:23::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.659.11 via Frontend Transport; Fri, 7 Oct 2016 14:50:52 +0000 Authentication-Results: spf=fail (sender IP is 66.35.236.227) smtp.mailfrom=opensource.altera.com; mseidel.net; dkim=fail (signature did not verify) header.d=altera.onmicrosoft.com;mseidel.net; dmarc=none action=none header.from=opensource.altera.com; Received-SPF: Fail (protection.outlook.com: domain of opensource.altera.com does not designate 66.35.236.227 as permitted sender) receiver=protection.outlook.com; client-ip=66.35.236.227; helo=sj-itexedge03.altera.priv.altera.com; Received: from sj-itexedge03.altera.priv.altera.com (66.35.236.227) by BN1AFFO11FD020.mail.protection.outlook.com (10.58.52.80) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.629.5 via Frontend Transport; Fri, 7 Oct 2016 14:50:51 +0000 Received: from NAM03-DM3-obe.outbound.protection.outlook.com (207.46.163.19) by webmail.altera.com (66.35.236.227) with Microsoft SMTP Server (TLS) id 14.3.174.1; Fri, 7 Oct 2016 07:50:16 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=altera.onmicrosoft.com; s=selector1-opensource-altera-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=iKtKnowi2nzuujlo1DtSIfartCTznEsTKiWIUX8EPA0=; b=oHX4+TzaVB5/NbGWucfLTmsSTTpSMKA3sY0XKU2ld5hW2gU2cfHPWH9UVnS1MnPzD0BiLDuKBpekyYHCJCQ6UJEk5ZisuT76oNavSOQgyC/G6pQ3qomOxeawDtA9p0GDaGQ/OzXi1F9w01C/BVmEfkf60jAfIL2xo56XLfcBPH8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=tthayer@opensource.altera.com; Received: from tthayer-HP-Z620-Ubuntu.137.57.187.33 (64.129.157.38) by CY1PR03MB1407.namprd03.prod.outlook.com (10.163.17.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.649.16; Fri, 7 Oct 2016 14:50:42 +0000 From: <tthayer@opensource.altera.com> To: <broonie@kernel.org> CC: <andriy.shevchenko@linux.intel.com>, <jarkko.nikula@linux.intel.com>, <jszhang@marvell.com>, <michael@smart-africa.com>, <kernel@mseidel.net>, <linux-spi@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <tthayer@opensource.altera.com> Subject: [PATCHv2 2/2] spi: Add Flag to Enable Slave Select with GPIO Chip Select. Date: Fri, 7 Oct 2016 09:56:34 -0500 Message-ID: <1475852194-27690-2-git-send-email-tthayer@opensource.altera.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1475852194-27690-1-git-send-email-tthayer@opensource.altera.com> References: <1475852194-27690-1-git-send-email-tthayer@opensource.altera.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: BY2PR05CA036.namprd05.prod.outlook.com (10.141.250.26) To CY1PR03MB1407.namprd03.prod.outlook.com (10.163.17.141) X-MS-Office365-Filtering-Correlation-Id: ca1c60ed-bae9-4dd3-97e3-08d3eec1559b X-Microsoft-Exchange-Diagnostics-untrusted: 1; CY1PR03MB1407; 2:QI7U0T7jpmtsgoJ4S5p5WvgSYEjT8j54hb77D7HP2fGt0oiyy9QZOn9kLj/TmD/HI8k9vD+eYaMBRhPVYZuZg4cYnyo95wjYYwnd5tN7am7GiFLAyUpuTTI5vCrLEZ9oqv1uLlW+0GQ6llCbawuHI8F9x+6BmvtXA7XrWcpdOoM7BNZqzqeJUrqZXZRbCbub3g1mYczbXS/R3B2Icni0Ew==; 3:BMi8TRha7mELbgD3E9AAfffe4+e+gIvk5t0QwuJjQJ+B/gZSzokJlHWeNV11OlBJ9v54JxuhHoZlyWqT8WOJUhD/WRYml10xAjxZCU2WOC7OO+n0YVmcDm8AjixawRHkXiOTo3678oinURZre3Py4g== X-Microsoft-Antispam-Untrusted: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:CY1PR03MB1407; X-Microsoft-Exchange-Diagnostics-untrusted: 1; CY1PR03MB1407; 25:OLuJ88VezC71F7DVlh1cRILOf/CEnSjEFUZ3bMtfIYcx2CbtyZ4ydtER2zAlBrukl3CpTVl4+1DyfIDcvWP3Khiiga0RLzGWGjKCCKDsjSJeO9KsS+4jwTv13TVuXXS8HOhd3H2f2relNjkFuhzstiTsBJUEEk5l5EcicB+yQXTXnKblVLD9JNqH07n2MNHfd3iBKk9F8m92G85mRoaRdBF24a5LKuvs5H41OKdyZz9o8uVyrE3NK8CuAbTcKT9+YkoF9i+O+SQz3hjGnqKAs7uKNPqXQJckZf4QEQ0/GSwYDo6FJ85CPDAl9Fxsf0ZcOLfN5Ib8s8uNFlGxnyb+bP3z/zX0ejybI5249mbR44BoZlp2oZk2HzkKK0fGDbkezvJ3+Op3IGEJ6ZCL/OWB4YaUA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Vq7mdLqHLnODPe/sRXKfmACfeyToVxAh/Na8Tawii7PDZh0dxDvKOAqbrnJMyML1M9weoys8Qd2+xMnOOXYoGU9rv3yz+nE61ANBc7y9Gsaeq88ia7n/70wyAUtv9MwfYCra24eHrwOIZG9dbqAwPVZua4r0DKIW7AaZyaDq5KapmJ9u1350Kxv258rCccnXUYEui3PUgv/z0HvAxjsEre/rSTORgYLT+ jtv7irbYtTOGn9OePVFNixZ+Yzmbu6KNFbq0suWrEic= X-Microsoft-Antispam-PRVS: <BL2PR03MB4841AA694F605BC8F72F5A9FAC60@BL2PR03MB484.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(80048183373757); UriScan:(80048183373757); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026); SRVR:CY1PR03MB1407; BCL:0; PCL:0; RULEID:; SRVR:CY1PR03MB1407; BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(13015025)(13023025)(13018025)(13017025)(13024025)(8121501046)(5005006)(3002001)(10201501046)(6055026); SRVR:BL2PR03MB484; BCL:0; PCL:0; RULEID:; SRVR:BL2PR03MB484; X-Forefront-PRVS: 0088C92887 X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4630300001)(6049001)(6009001)(7916002)(189002)(199003)(81156014)(81166006)(47776003)(106356001)(8676002)(42882006)(66066001)(48376002)(6916009)(2950100002)(19580395003)(5660300001)(33646002)(50466002)(5003940100001)(586003)(77096005)(7736002)(6666003)(7846002)(4720700003)(229853001)(97736004)(2361001)(2351001)(6116002)(305945005)(105586002)(3846002)(92566002)(42186005)(68736007)(4001430100002)(85782001)(189998001)(76176999)(50986999)(107886002)(86362001)(19580405001)(110136003)(2906002)(50226002)(101416001)(85772001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR03MB1407; H:tthayer-HP-Z620-Ubuntu.137.57.187.33; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:0; LANG:en; Received-SPF: None (protection.outlook.com: opensource.altera.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics-untrusted: =?us-ascii?Q?1; CY1PR03MB1407; 23:bM9nU8ZcuqoVXqNsQ/yDkut0wQFB4VaLRVdNHQhSp?= =?us-ascii?Q?RD0kaoFigcF1kWSheOkZI8bUFB01VDZBPlqrZJmZ5i/i0z5OAjSMD0HIRdOV?= =?us-ascii?Q?oZieV7ES2f0iLkixEc6GR27+MMMYrQBArCPfB72thNuZb69Pw/OGBYzb2O36?= =?us-ascii?Q?4IQgVKlebSWDWDGzXulIWCFIquTYw1UueQQpW3b+i6rcUyz1hXnG2wlJzs+u?= =?us-ascii?Q?BXwfZ2KVTJcuc+CTKUKdLzVOV0NsbJV+OumhCRDiV8TmkSTOtJjsd1eeRKZF?= =?us-ascii?Q?p1nwqnYBmd0k8j3djK1xgyzhTZsh3wTM6hy59l8MAJ5iI8eYEY9c09mnp0ru?= =?us-ascii?Q?wmYh8sNQdxDhBvMl5eVyBWDgj9hBE+bDx4iZL6Nyfsw8He7VmyncCtcRjC5p?= =?us-ascii?Q?AXuQyLJhuT9/mpymkTrEhX+GwFr5Ha3EqkNzsqXxGFfXBjXm5D6Oxim5UBHw?= =?us-ascii?Q?IHnWypG9jhQ+32ODk+cFXbVb36RK3U+TJIXSkosymhM/cRKQ7F6kS4KAZ42V?= =?us-ascii?Q?xGWgXuH+Hcy9eHNsYPA/Cy/xcoCU7RenJ1TCimueA5493kkRNOveDopB+EQc?= =?us-ascii?Q?QKkpf62n1fqKgjmb3zA3od7QLQxT/YOkVpHUNr6YnZfYcZgdLxXX061ImkQW?= =?us-ascii?Q?cCHJdRUlqxXtIe4+jlwJZLYZPltxCws9BGGJQhM7P1MUWV0dt91QF6GbSbMT?= =?us-ascii?Q?UbLrf0BZ19Piv4WNO5X9sV4H9PfzT3srHo4zF/K3VXLoMEBLI9wLDlrzTA8W?= =?us-ascii?Q?5uWvIQe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1LTHw4xCjMzljggzZRbRObpsDrNbjpNJbSEAiSuY/RvBmS3xQOpg74XAHDHCR7NCwmb7p2kS5RpwERVdCccy3kuLWVsRr+dGYQFk=; 24:wU4YHdV1o24hLM39GcKei49ndUfCzAEkrwGoHXaBK2SsytFEkR+KPjleOeuBHGmAzJJIEq/Y1DJgFFgU3MpfRc5ss9efVeAYXyzhs6b/s/A= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics-untrusted: 1; CY1PR03MB1407; 7:tv/LyO2ac1UFC6NS6JQPeuMtiAFzQOLVrF9zyyocBkLaYyLu2s3ngVLvSXuN+KzE7fYpnItwNnOZhWKQiW9BnBluaGdSxO5Unu3zstb+hHz7YGmalwDfLQcro2+16RTwChacb8I70Ym9jNEBKnQs9WdNScQcZI5TAm/z50FYgaDenCewQeuy23OkQa//PFSOWfSNfFJW3UB/iQtocJr2RcGnfkfp30dNiKXgRNaoxKHo+iOl5/W5dvU3XV/IfrFS8YPtXfE2cooKgnVcI59jhXy/Tv4WcubaA+WRp3ra0KZkQA3QxIzy3A5kg4q2FB6L/VhrbXoXVLjvergia9uwoA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB1407 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:66.35.236.227; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(229853001)(956001)(47776003)(2950100002)(33646002)(42882006)(6916009)(8936002)(6666003)(5003940100001)(2351001)(19580405001)(19580395003)(66066001)(626004)(8676002)(86152002)(7736002)(81166006)(81156014)(7846002)(305945005)(50226002)(189998001)(68736007)(356003)(87936001)(11100500001)(4720700003)(86362001)(85426001)(110136003)(76176999)(50986999)(4326007)(4001430100002)(48376002)(2906002)(107886002)(336002)(97736004)(6070500001)(5660300001)(50466002)(3846002)(586003)(6116002)(106466001)(2876002)(92566002)(105606002)(77096005)(3720700001)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2PR03MB484; H:sj-itexedge03.altera.priv.altera.com; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:0; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD020; 1:z6ZC0cvGN/Ljw7lpBxViDbdfDb9osdZwv0yI2+wsOob0mUXV906e64CV2ZI00Dtt+wlVDbxsRTn3jDCJ5UKYLOzh30i+2BMM9ktmSS//p6yBxmCKb9+chFqoN0bH5Flu7vetibxmnx0C7PdK9i4+sriF2LxbU1wKyy4tzFAa4I805WqbR1bpCvPeOMyNRCCBHejF+7We84xyHuVxtD0x9t57BeEbGWzsJxcE/aQmPuv0QhS6nWQo+HY1xOwer/CLKM/H/N9P6qSSuvaP41hc40WxWIxPpDEO4eFencUsLiBAG8B8soRw2LRZ8JzbGYkfnmLVxbz9oLlq0C47ShkdIXuyRkne8t/mWlOt4mL3OLwi/Oi6f+5U0iP9KQ1dNSdvsQJ9O14j+0utGdSdQ91sqOBv2XPiXkxHyU3RzEwOVgmXMVwEGZf+Se9sdS+lk1xo/8e8bXp6jy0vI0y4hpqvv7vNTLJd7xDfbhrUYtaY2lXlBE6mHAVE0j9DCN2nMVJHeFmSYUnDdMwHv0mHjpu5S6x9npfNsXDl0hMG4tBOtqYrN+i9ROMo3oc8Ob3asTFhn1J4AYnNK54iCViJFtd+XEbdpJwXo8ssDR2Y+ul15EM= X-MS-Exchange-Transport-CrossTenantHeadersStripped: BN1AFFO11FD020.protection.gbl X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB484; 2:Vsfd6JI0o/cVQcVbJaed1XzOjPLH54KPhDOvKEvtJdCnh0kN6RZZqaKxxvjtYKnrQg8MmkhiW7NvQxN53CKTVYomL9YVIsrZlg7JGHL/Q4OhYLM4DAQbYPquTLa6hA/U32JRK5MoIyFJ7H1NmJFJV0wCTd6NweCexBkQ7/S26f4v8tbvub3Udxa/bBiCIyGTGWYw8l3g/FCPQIBAqvyL3A==; 3:ppdqTpzofzZsepgyPK12GXHz6MloBt1z0B2uTe+pm15hF2euzQJvRSHRcZ3wUee9q06GmmrWMszHOoVKrwgz16n6TvRoLASUYO020TstuQcuJvkIrOcT671ASLIe7CL1crpJ7pEOZim2pxRW6M/PCMG5DqB6TKif+R3sYCjA9YkodpL5YYFxXCKKPcShiuutdvo2sZE+3DENIZWE5mtn605ZIWpXb+fGrp09EzGYViY1yyJGefflaKzCDL9DhsnKWhg8s1YAPgIqAbMa/UKfDQ==; 25:Ov3nU2r49Evr1mu98sTfXGMrlsg13TPCgKeEL4U6n2+arWXAsQN13pwgHJPn6gkTAnZWmOZMPzpfRYuvQB0YW5W3WlrY8OmYtp+PJcmk0Jj/Y8D2xnNeEkHSy1v/rMH1uWWVcm0WB1pMsXmzrXrSBfRem3RbsUEdZpRKWHYLMQx7wL/RqAChyB2jQGkMFsCRwWQur66A55JTGZy0q4LYXsTAiDi1tPFZZkg7Z9n1Jy30jE9DwgL/K+K+myhOyq+wpCdCKZvVUv5VAL3d4Qp3M+U48SlKbi9suEsNhbDp6FYeOHmxRP4/t3Qc7P+CboSqVcCWmBkadbIYKRsAuR32/f3jSqgHWGLeWCHmrQyg6RaxzjxaFHdXCh0ycbBSVW4SSrhJv+WsRSsmb7aeM1StTPXT6B7G2UNopvtOi+wgOO60uf3m/Ai0 5BjopbJ/eFTa X-DkimResult-Test: Failed X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(3002016); SRVR:BL2PR03MB484; X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB484; 31:IHsIEfwWjW3sDmwOmaHH5aiLBy59xeFpcHuEQ5qPDOxVFTH0jqqVxkCLT2uKz+bKaqs33cWaXTITHa96mkToBxBunlYiFe8YZ/OGtBgmU1aV6iTFJVoWNkPl6kDkMyv7j9g3StfpRkZncruX3IEvFoEMegD6JNDZ4QchgJvtIhKRC5+ueyVlGAvx4AdHRpZ5dm8xyyedh8ieqldkgTe9iE6Pqzjw9hcT9u/IBeIy7YdGguUyNV8E5pL7uG2PqYBGu9tqvUp96Y3cq0RvRBl/Tw==; 20:PIxFnQ9xuijIfogeNZzcENyjG1tgIKISzoYlErBfdeP+Yn4Y38j/OR9+aPZRGOoZcjMENbeHXSF21J9NG8VbtXCRzFHEriMHB2zLoMzwqVl85wU2BVnptXtTVHUsai64nlqkRoiNKbDTpiEdp0qzk0CZ8RLutcwUmujQIVstVv8= X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB484; 4:EsJRcGRSj5DyvyJDwI56J/PAjvnyUWgFCvHR9mJXLHpdROYwG01dRk5J9bdAHx3EBtRDvLvfceKJX/r4cUaw50OqTrQWaUaKVviCVJ19SmW07DydIPj4RJC22zfDeV4DEXhqJwhHIAqlvGSPJqI7zPriwDrFxC5lF5a47gA1kN+Z3zABuEcc6J8YatAs3llVepnRpV2Ou/UxmaGS5HjzDtlggaWM0WIvyMFG3zFmyQ0upIy5IFcepGBQ0fOxisKnVxRM0lCXMhq+9LmP6w1FIqQRxCe8sbqnWFODR8srDUtkXglH6y7iIZYp7dJtPvFoJK7h4ODNqqTNikk/n6pRtZNLyOBCImckaLPpTXK6TQolhl8x+IiNxNr8Y8a38hW5rccHiCx6ZPVsLnqJSdu1HcMvGDFOmsSpDnRxrG0AAycDLrFrDWl4Somk8pXrOc3ucLoYR3nc079QwBunSJYuwTbiit4n4QkzUOe8mVcEuOfju1ruglaKq1dokIHmvK24WoH0NTEYIyyo715nWQeLCrOx80vj6ME4k9YNDnDgUiQHmCv0fHuovE9kLu2lOjCv X-Forefront-PRVS: 0088C92887 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BL2PR03MB484; 23:wHLzCm/zwsm5mOK0toqITMFS8Q5D+L9bTY6z5JUCt/?= =?us-ascii?Q?6LPHIWGyA1B5+TNM7REonqHz3ISsjJ90ShkKyT9oZgjoht58pGG4LJOadXd9?= =?us-ascii?Q?OJ1e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gNNpQxxCxVa7R9436fBQPhVM/aRnLikeL38h0rkqbgMaFOxkA9l/p4FRoGOv+UZi/zK2O6wN4dzQKAKFYSfwf+gR592DSWaRZiWB82eI=; 24:39wXtDko/odTGcEqtOQFOJJ8NO5gg5j/GQ+kcKEslspfQREQrjwTHvaGgNhUf9l7PuyV0rqT5xSPJrkUxiZyGdak/GDlnaf8pZkXAODwfxA=; 7:XIU9Xis1RlzQ6c3iuMfnj8fG7FH7jCS166c/bkDIIWFFlY6WY6Xfq1Rm0oAaiPQOmhLdnh4iOJ0bhUVy2Y0YMcx/eLt91o3kp7a998VB/5FMcdJAHRkIuCTVrroz5yHTzzc1NTCFvrTSZJM1ClJJwMGJF+ua/FWRP8HdjldKbJ+ZrWsV6r+KSSdkLfc4NaAEEkIzmeQhZ+OIJS1ZTRrOLCvWCZae6x9BkAaHOi5sAErbAPLjEG1Q/YPImmowLJsA91m7J26niewhe626GSLN/Y4vWyAFl II2ZqI5i76HQTI= X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Oct 2016 14:50:51.5649 (UTC) X-MS-Exchange-CrossTenant-Id: fbd72e03-d4a5-4110-adce-614d51f2077a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fbd72e03-d4a5-4110-adce-614d51f2077a; Ip=[66.35.236.227]; Helo=[sj-itexedge03.altera.priv.altera.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR03MB484 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: <linux-spi.vger.kernel.org> X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 5787b72..c042a8c 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -697,10 +697,14 @@ static void spi_set_cs(struct spi_device *spi, bool enable) if (spi->mode & SPI_CS_HIGH) enable = !enable; - if (gpio_is_valid(spi->cs_gpio)) + if (gpio_is_valid(spi->cs_gpio)) { gpio_set_value(spi->cs_gpio, !enable); - else if (spi->master->set_cs) + /* Some SPI masters need both GPIO CS & slave_select */ + if (spi->master->set_cs && spi->master->gpio_ss) + spi->master->set_cs(spi, !enable); + } else if (spi->master->set_cs) { spi->master->set_cs(spi, !enable); + } } #ifdef CONFIG_HAS_DMA @@ -1845,6 +1849,8 @@ static int of_spi_register_master(struct spi_master *master) for (i = 0; i < nb; i++) cs[i] = of_get_named_gpio(np, "cs-gpios", i); + master->gpio_ss = of_property_read_bool(np, "gpio-ss"); + return 0; } #else diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index 4b743ac..0437995 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h @@ -551,6 +551,7 @@ struct spi_master { /* gpio chip select */ int *cs_gpios; + bool gpio_ss; /* statistics */ struct spi_statistics statistics;