From patchwork Mon Oct 10 14:25:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tthayer@opensource.altera.com X-Patchwork-Id: 9369673 Return-Path: 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 5ED3C6048F for ; Mon, 10 Oct 2016 15:55:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4ECAD2932E for ; Mon, 10 Oct 2016 15:55:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 423862935A; Mon, 10 Oct 2016 15:55:06 +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 0C5812932E for ; Mon, 10 Oct 2016 15:55:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752553AbcJJPzE (ORCPT ); Mon, 10 Oct 2016 11:55:04 -0400 Received: from mail-cys01nam02on0052.outbound.protection.outlook.com ([104.47.37.52]:37750 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752415AbcJJPzD (ORCPT ); Mon, 10 Oct 2016 11:55:03 -0400 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=6iBbQ2ppzLgwMqoOWme6LEAZ0tg3+Ic8sVKpqH4naho=; b=rlR/PHPYU85cMq/oHF+8tvuoNtL2DhjbY0BuO4iBJSj6vUoVP5gFwrCIIazdUEjvfTTc0NtkFmGjaf/X5xtle4Pb09CedauhQiskqtd3Z3KftS9xiRRwi0VKp9cJpJsdbdGuHjgrTiYrRl6/NRYMbaY+MpCGqmkFggkRCrSXQwQ= Received: from BN6PR03CA0071.namprd03.prod.outlook.com (10.173.137.33) by CH1PR03MB1914.namprd03.prod.outlook.com (10.164.115.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.5; Mon, 10 Oct 2016 14:19:34 +0000 Received: from BL2FFO11FD006.protection.gbl (2a01:111:f400:7c09::166) by BN6PR03CA0071.outlook.office365.com (2603:10b6:404:4c::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.639.5 via Frontend Transport; Mon, 10 Oct 2016 14:19:34 +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 BL2FFO11FD006.mail.protection.outlook.com (10.173.161.2) 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; Mon, 10 Oct 2016 14:19:33 +0000 Received: from NAM01-BY2-obe.outbound.protection.outlook.com (216.32.181.176) by webmail.altera.com (66.35.236.227) with Microsoft SMTP Server (TLS) id 14.3.174.1; Mon, 10 Oct 2016 07:18:57 -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=6iBbQ2ppzLgwMqoOWme6LEAZ0tg3+Ic8sVKpqH4naho=; b=Kbz3mNitQAIMXDpApt3DKNzXcaNhRyMs/U75xO9UKSigWciJTSk1nx/iReD2M3R1iB8J/KFiz0T46ed65W/HklxaNv+jUBzOSGpqQf1UaxZOuyMyfG56tSQjaxwJWWntPttGj8JWdd5xLbXLtVOizcaxpe4+WmcM72/x4eqZadU= 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 BN3PR03MB1400.namprd03.prod.outlook.com (10.163.34.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.659.11; Mon, 10 Oct 2016 14:19:25 +0000 From: To: CC: , , , , , , , Subject: [PATCHv3 2/2] spi: dw: Set GPIO_SS flag to toggle Slave Select on GPIO CS Date: Mon, 10 Oct 2016 09:25:25 -0500 Message-ID: <1476109525-21213-2-git-send-email-tthayer@opensource.altera.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1476109525-21213-1-git-send-email-tthayer@opensource.altera.com> References: <1476109525-21213-1-git-send-email-tthayer@opensource.altera.com> MIME-Version: 1.0 X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: CY1PR14CA0038.namprd14.prod.outlook.com (10.163.13.176) To BN3PR03MB1400.namprd03.prod.outlook.com (10.163.34.19) X-MS-Office365-Filtering-Correlation-Id: 17d9f2ad-0374-4fb0-3537-08d3f1187564 X-Microsoft-Exchange-Diagnostics-untrusted: 1; BN3PR03MB1400; 2:Xn4ASeyYrDJtySL69UVGSUK5FWP1yxOa71mrL9LlS9HpNMtPvNhRd0/uxaGEg2rTtwlt9ckYI8cO4vmEOYN6nfll2A4iE4o4sm0ocIFvFYtXvU7hUxxM5pN5+KgM9koXj4DeZgLDnGaJU3nr8VVIFHSv8HTe6tAIqH6I4u7B1ONGGxVZA5SzDlhvzsp9xj4HaoVIk2A102fCPTYlI0RXlQ==; 3:pDWZ9cqPGFifKirWgcaQITbJq1m8k64zV7BflrI/bt0kQgy679jMQHyr1m5UFpacq6zyi/VsnwMvmVaENk4vp10PjSAcZDfRXq6nLSDA+7ACTHIvUYRiZsz/a+vdom+QGQl4foZ3TAK5JkzBwiMhig==; 25:Sr29c3rt5j16XXv1EuPP5SWg5ZN3wb2ZI6gKC28TgPG0G/wd8GOdpCquo5XVxypqFewee6h+vVdw8S5PzKttlCqIcmF/5G+b3Xh2DAZ8uXAZblunIOKYE2J3SU7EMN8Ay1DlhAbAEd5ax9arQqW2WxqSreZ9Xedv3wN6zA97rZn5xDeNk9XGEIldflcKvVqLGoBKozvgrr5BUGPa4cuGum0CNGr9q76WGiZOMnrF8BsERvqFhCGdceRDfULyGB8vNQE+2LLx+flusg4bfpFP3yFum3Oalg8GtCGtBPltcvSnp7s/iTtFXsqw7qn3iyOoz8Dk178092C/sEA4prpm0UVnMVWqJqDpbharYips1ZGTGBJUTv5NqO8mc83AAagEpG2clbUP0k/e++IbglvgVwbvzrLBEC9/oiw2pp9ldTzGVhQ9L2Dzk5JtVXoa5ScQ X-Microsoft-Antispam-Untrusted: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:BN3PR03MB1400; X-Microsoft-Exchange-Diagnostics-untrusted: 1; BN3PR03MB1400; 31:DvZofTusQNi6Qjrm4Ggr0z7zt9HCgqsqn3sj2MR9nFzTUqupZuNwYsOyuj1YJFgX3STIhmHrL/9MyPjdmoQMOnSzjytiFYmDtolh5v6Cbh2NHvqV1rqp88uWTjtv7/EFPtn0cl4Sx/X+4O+AZCSbglV967eGTekq63295Gzzpb5BknhLM59/5ENyNEPRmlCs6rZlkKsCoIWd344t0XfIPsZGYEs9An/CMaVvC7AQ+NhoNWAfxZPlbNES+9lmfvHMsddkEeG/QGTakRj7kqr8vA==; 20:1J3X6MWM0kIC1paDW9V6jjlsrdifhCaFbeDR09M44afB+Wh9xIm19GwExRR/oKh7f0Ss49LxAXK3XWxRrkAhNlqatAQtH6/prsVuh1ITnFGcT6M8FoXfQ4MFLSsxCa6UOTUFSUYJdJulxVFljHHhSMOxQrrI3ByPstiZPP+c9os=; 4:KuuYw6CCY9kCHOG3tclFg2UfBoQd4fbfhTHkg4+IDgzXSCaF8MkIvyPBVRWg1FflFIBRFd0H3WGRTkNUw3U4R53gdZJPAy8Dv6PO5Ps7KzeV0hK+yKJQTfANKCcIDgLLNCOnDrQDYA3diFEJEITUQZ4tsSjKYi6JqMugNOYsO9QF0UuLnYv1z/5X/nIorglX6FnTXwtPzd629c6tU7WiMB6U+a/fAZT5MqtCFxOeu//70vDDRirJiSStRZyaOfZ9kStjq+t+7Pv2pXhOnZjfRrOzUAuaV9ZmresUOTZ4DacGq9/i1cmEtZYEl7wfpbqvEudRGJH+6QHe/KxMnjQXuzGk7JBjwDxghF5IwONYcb7SZu2Qpf6oICcJCdT25Rz7yTp1ssjgruf8Z6feXhyXi5J0KvfEx4INjH5XJnDQw36d8JLYbBfXnqvhRRfsK7quCjXeF/l0uryaF8y1qQ0J pA== X-Microsoft-Antispam-PRVS: 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:BN3PR03MB1400; BCL:0; PCL:0; RULEID:; SRVR:BN3PR03MB1400; BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(13018025)(13015025)(13017025)(13024025)(13023025)(5005006)(10201501046)(3002001)(6055026); SRVR:CH1PR03MB1914; BCL:0; PCL:0; RULEID:; SRVR:CH1PR03MB1914; X-Forefront-PRVS: 0091C8F1EB X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4630300001)(6049001)(6009001)(7916002)(189002)(199003)(97736004)(105586002)(8676002)(19580395003)(33646002)(81166006)(2351001)(229853001)(106356001)(81156014)(2361001)(85782001)(92566002)(5003940100001)(107886002)(3846002)(42186005)(6116002)(2906002)(19580405001)(47776003)(189998001)(101416001)(5660300001)(110136003)(68736007)(86362001)(76176999)(50466002)(2950100002)(6916009)(50986999)(305945005)(66066001)(7846002)(48376002)(586003)(4001430100002)(42882006)(7736002)(4720700003)(50226002)(77096005)(85772001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR03MB1400; 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; BN3PR03MB1400; 23:iCxEsf5v2Of3xscAggx9nslYy17hgs0Ibo7JEiveX?= =?us-ascii?Q?Dd0sc56w7aG47Lq3AaQ7Go7dfG++bjxyhCbju5kDFRzw1rqDsPJ9UuALFFwH?= =?us-ascii?Q?zXRt9la+ZtZ9UjqbZQuRJ6LKl7lx9UcPhxBYdFr7Wic0hzGHP5wqM7BuQjQC?= =?us-ascii?Q?OqZO4cC3MPy4lKgenq5WktiZP8Gh7yNlB8q9CL+H+1v8AXNw6CTQ2IlsUMvk?= =?us-ascii?Q?fpGsEduhon/lBZ9k9uQir/qZHxQolVtqJbZ5tPgPPk+sXgAY6oxeyxImsyPo?= =?us-ascii?Q?AEaB83msTTLn4bSM9Nr6A427ii9T1P6IXVwNNe8eMtYPJtms3qdNPi4Dxh+p?= =?us-ascii?Q?rPuRa60cnfcxDXviLG4UoVlGHKBdLCdeC/gFrOgUelazhC1xgvCO+boIzH9q?= =?us-ascii?Q?b4iT4enabBQgtf+lUMymZZUmlq1eJmc3abd3WfFe8oKEVbeUx6iCZ0uU3ZOe?= =?us-ascii?Q?1yOz6Nf7y7Kqht19o3Fv2v3aJcwQkzMxbboDoe1ZepzYSQQdzd8sEYw/oTRL?= =?us-ascii?Q?zGKUTQyAtPKjNCKt3zk/x72MoGXb8VIi8HExhI6y2V2DpwnSJFkRo150hJ1T?= =?us-ascii?Q?odE6z/lGdmTbc4CrXInm/fyM0QGItVoA6l045lnyIOP6IIp39Ux7jc4kio64?= =?us-ascii?Q?vHhDZl0PuRS9hcxLDcIltyt7rEJ1IljWyBJvIeqeZi3pdo4waoZTjbIvLaX8?= =?us-ascii?Q?S/yEnX91syBtac/9z7sEwZG/Y4D2mqOfSa9+dnO5rrP9t1vo+DQt/oNbbixK?= =?us-ascii?Q?IxEnZxwfN1Z+cdzpaXU2yR7H3ySiwhgkpIVvhKLawylOineVVQf723y8Bowk?= =?us-ascii?Q?2g4O6Xc7Hghp+5rpSucQuNQwPBGwDvdPJQQ3eSObI7/1zqMhpHRKGuENz0j+?= =?us-ascii?Q?AqCJPHSSHCYxm9MleOQwrmAady2lBsRdSnCJvD9QPy+RjWpyVqdaK/jBagTf?= =?us-ascii?Q?2NfME5gf9qpDQLvnh5yz8Ir7xkRLQmISOG+y1uWzhCt3GipVqTGU5Za2g4Pv?= =?us-ascii?Q?yQ54WdVvHgqP7MF3NTA829/Fvz79dniMGlzO41uz/Y++VwKC2E2gRnd4TcdS?= =?us-ascii?Q?QeMKQAP4m2T85JOmICGlzefHY+YrWS+8laxkDT3zp09LJX+HzUaTAhri31Z7?= =?us-ascii?Q?FghnVpsEvuC27TeL+S/sHo0FHqj6HMIOISL9CxGJ6P6O+3GKqPZgJC+r2OOD?= =?us-ascii?Q?QIxnie2Pdq3DozavkYNbZJkw0YLcL/Ou1EOmcZpPDFoHvm3MezdgbV0Hw=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Exchange-Diagnostics-untrusted: 1; BN3PR03MB1400; 6:O2D3fkAKtfa/SdkRyZk6TOPO4aziQs0xmjZdkKkKUnMomYVWvlgPHsc1+VbH84YY2vSHeEB8TURKCtq0fn5Dg145S8AD0GNWta6Tbfm2+Zh3jauiGzz6zCL7NlyEIaaEbP5j5CCIorZgWKu/T6FBI3tRDqB89guNFguVtQAW05UNDx2p1K5d37zHhRMglLs8vLCaLTmjCEMyXoy9VJwa7bALEmXwrwNG6FPIYixm4s66XkYDB1q2V/LeY3aPE2zEPUtIv2BSxvy7oFYBz5HTmchzlft4JJeLqSPMX8kD1N+YlxvLNtR6HimQryU+9Wh4ja8GVYEfwb04y056SF63MhY9pKjNjGJdkVlQQHM80E0=; 5:Gpm5ZoYPR1wA7Eoe9FFbuBxbKwCJiBgOJX8enQsubP9IJoUotFl0785uSKD2ndIwm9jLZasRy3KMp/vy2iH5fKsYrliA4ux8gykbwGkdTcDyrUaOJbtmEf8uy15ENJQx0Xy3TCNi423B8XlW+GXCYQ==; 24:yt1z+1i25oOfG7IT/Pw+rLr73Y6S9aLkkA6RBZEEYfI0wDUsfRHkwgRmBo8HfHgaFJ7sllW7GA82ITSaiacAgcA2CI9AMQv2xfzYi6PJqJg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics-untrusted: 1; BN3PR03MB1400; 7:xO0nzyi7FLqI6cSCbHYaj/CSui49jRlOxEol3jCokRfWrgp+ffKZhJJyCDcwHro0ILCmk5N7IenAjQydxXSh0MwszURNwuMeDu8KRurH3Z/RaLBmHO9QvAiEzPpyL0Hgz0+O6Ar9YpYJNFeGomfhmYSh76+9ibKk/XHzzkJDHV59xJxQDWsCxNMFpck8cDKRpYlJdeegUJY0BsD5gTxAYQyYtuSL5lhYBFXeLh6cUIYIcO/uugpunSHqb6M7t3uqPnzFsT8+JkZnh6BH/ZD2ScnqvihP4e/xfH7NXNUtknqnRc8efwVpQJgw2G91L98CVlFOoab0h/x1SmFy0dtXc96u6EMQcUyU09EhYfEkDHQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR03MB1400 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)(105606002)(97736004)(6070500001)(19580395003)(33646002)(47776003)(81166006)(2351001)(229853001)(81156014)(85426001)(87936001)(356003)(2906002)(19580405001)(92566002)(6116002)(5003940100001)(3846002)(107886002)(189998001)(8676002)(106466001)(5660300001)(626004)(336002)(110136003)(68736007)(2876002)(4720700003)(76176999)(956001)(305945005)(50466002)(2950100002)(6916009)(48376002)(11100500001)(8936002)(66066001)(586003)(7846002)(4326007)(4001430100002)(50986999)(7736002)(86152002)(42882006)(50226002)(3720700001)(77096005)(86362001)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:CH1PR03MB1914; H:sj-itexedge03.altera.priv.altera.com; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:0; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD006; 1:i5dUHiCBDMrRCqkKvSXtHNlMJHLia4ufWoAo8GU+VAb4PdBtqq+eZNArnEkjZITShax6MAVhSpLPHyJkkAsgD2sWL3twxhwhn75sfwmlyOZ5VwEGVMidUGrrxmQYwHYx2rqUY+0oGM/MvAM4D9K83mu2cDa1mkBd0E9kF+9k0PRAvh7SO8o7i7BwrmCLAC4pZBoms4L1/+0B03WotPvD2ANMBC0VZTcKHfHqDjzWLQ4SOkWMsA4a0HszAhEyzijzyGWesNeQG3yYRxeSdFepON9OFkHkJ+F0F+XVZnRUw+nC/5KDtuuqGtx03DfmVeW7P/2u8/Gz2xaDDnfhqdaOPrNqQxpXALq+u/VNRo7d7KHOA3yoj6SspWc6ix3GicR8Ls8gyZqfkV8LBtlKELh00Yqm2a/YgJfyrw583elmD/hTaEeVSEHE15pr1yWTvN/9nL1Zx65cQn2fH/g0G4zKBkAVFFJ/iXH8Sc4s1+Zauot1bH1sVLIxA1JHU5LCKf5zA5DzmtGTVL9UOFvdSr7ATwzBpL1QMJIEs2gSHwZsAiXza9kMwikOvzM91ZyKeIxSox66/8rYgJbvOfDkauZBaZhK89a7FqPBagclGOvgg9k= X-MS-Exchange-Transport-CrossTenantHeadersStripped: BL2FFO11FD006.protection.gbl X-Microsoft-Exchange-Diagnostics: 1; CH1PR03MB1914; 2:UOjdWGtmAUOj1KSJUaTwZwF8htI3asL/UTpv/CISONZishcVeVxf8jnmH1i41Nu620ohcD3B7qwAWLG/QRpkn326LdjkZWUY+J8ZMcbIpNDapgCKb+sClmGpOqd3uASIpBcNDOGVGOBOR0cOkLFyaviNJrV/t6+qA9KAVPeGpeOCV1LSWXRZ0GjyAe0nXOeaZAD58/b03jEiLvD9sjaQoA==; 3:LfhoZHBMbNPNESe1reu2NSGV7pzBrIrJYAPwq1v/2fVGwSBkXPxSDGnHRELJBrU2s5vEQG6BH3l1s+VYj2BeWWtULJKSdtxZXbAqkhM+X1FkZLBL9z1tJRShizutFhicD2qrvrahWCT49PLQMgoOi1IA50+y/Em1IH1W9SXKrqOP2FyfHPX7LXBBUAbzvHfLy3851GGugY/axmq9p+FJS9evGYt1fwpLjBJOnyon5M7Rt6JkNXw7Tj+vVOpGv4ypoUQkDez2fK+DnqvTum5/5w== X-DkimResult-Test: Failed X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(3002016); SRVR:CH1PR03MB1914; X-Microsoft-Exchange-Diagnostics: 1; CH1PR03MB1914; 25:vV+WOVUw/zPnJs7m1QgveGVyljKvSYwAVhdRRHKhJOgErTHL5sCmN5/8pt4qE1U18pqwesLdSqwge/S+edHxYJPdn1FQMm63xPfO16ntK+gsQ3i/sKvWG7DgIdl1iAkOUk1xkeTFuH9uWzZ3J/YDpcPTPwSg6z1GC2wmZ+7QDUw4EsP7ylEvGJ3Dx/IiiU2IqnczkphcrOYYfVX0cyMSzUk0FzKioHxknvnXtnyGcnznP62MPlEQiK8UmGrpfl8ef6/4svuWUw2UqwmApYKuAlttENyezWjvmp7oilD0yirk1aHsA6gYamG4d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bms9ViEEP6McmJqO?= =?us-ascii?Q?HBumMs1FLqCCSYz3dIHEi/8EpX3jWPtA4lDSjNNx7CBnb9H+7KVpjmtAJMQm?= =?us-ascii?Q?89byXnImeL3SkADAhPNonCxos5NmN7k3CHHpaC+WkiLVkM05oIoED/ZvAQTe?= =?us-ascii?Q?a2g2eC0XpYndUuhlRlVy/Fd6UWXOUE=3D?= X-Microsoft-Exchange-Diagnostics: 1; CH1PR03MB1914; 6:DNEYCYM4lvLF1xBwXJwhUkqPoR/FVDMhh2zF4shBWcExP8BG7tuBZ3z0+hvkemEO+moT9AJ908drMOM57y4vOoRSMu2p9F7gGSO8ykY7smxqZ4jckNM1GgCvktrVrQogqhkpyJWZ3DLW8pqalfN4EOS6F2ak6clMUdNfcL93BvQEu0CSVF116dT2UCudM3XsOt53PvcrRImTFqnA6MySBoy5yF8Try2BlWelAuiVem+MUOWU/cgGvK7WyQcRbTsB8ufmQQKIhQfgRK3MdkVYUVdpuAEax+belkp/ItKAdP0p9fjbUUQfSPcMlvMuvxOybzP3c2qhj/ZP4WFCNS7bLKyyIqnpa/BD8bHL5Pt7UWo=; 5:Po302MZjpUiEnMlburd0sSKJbSy37Cp0WCXcupZ+JPlw6mWL8u1vGY7z/z8TSC34fOc11Q+PSCEpCuB9TvsTgLRcBpvofN0+jyRvnM7r5jt6G8kPknCkvwZWjvdt+IpaZvvziOh9RNZKchpgqeVvwA==; 24:UweoUTtYdA7q/4uhMKKhYCQgrvBb4fKCZWBeMICy7r4nDioq6JZSLOuAjAK732BiJ75ILAZN0Cio8GpJXfwGGf+2xHo91G5AUwmstkhnh7U= X-Microsoft-Exchange-Diagnostics: 1; CH1PR03MB1914; 7:lQBK2aa/fUhXLOo0cL763Z6oHGlBeb5A4qHox4i+KT8lkcJmITT/SOArLY8pv9wJTFWIz+Nx5x+KkwHL5eiKzgQTMGW6yJvtqt4nnSuglVmvTU7yljcDt9wQDmN1tyf4kuw0B0xlHdhki31O6ns7f2BWj3iGxJYPmtd01er5D9diAhb81gHYiWfDrvX+XofdWNwVspycEjMafP0WjV+WWj7x+Js9HuHnXUjuuPkiyQRGfaudU0QxXuFZWKO2D2FV2gXq9xa6DmS7cHG4206COI8EiMRCNmJ6vwIZsYl/r2HwhVizX/2fhxfx5lZUNMV5XtgQ7EZK0wre8CgDeaQaAw== X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Oct 2016 14:19:33.3674 (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: CH1PR03MB1914 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Thor Thayer The Designware SPI master requires slave selection before the transfer can begin [1]. This patch uses the new master flag to indicate both the GPIO CS and the internal chip select should be used. Tested On: Altera CycloneV development kit Compile tested for build errors on x86_64 (allyesconfigs) [1] DesignWare dw_apb_ssi Databook, Version 3.20a (page 39) Signed-off-by: Thor Thayer --- v3 Use SPI_MASTER_GPIO_SS --- drivers/spi/spi-dw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spi-dw.c b/drivers/spi/spi-dw.c index 27960e4..b715a26 100644 --- a/drivers/spi/spi-dw.c +++ b/drivers/spi/spi-dw.c @@ -502,6 +502,7 @@ int dw_spi_add_host(struct device *dev, struct dw_spi *dws) master->handle_err = dw_spi_handle_err; master->max_speed_hz = dws->max_freq; master->dev.of_node = dev->of_node; + master->flags = SPI_MASTER_GPIO_SS; /* Basic HW init */ spi_hw_init(dev, dws);