Message ID | 1475703538-5018-1-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 D79266075E for <patchwork-linux-spi@patchwork.kernel.org>; Thu, 6 Oct 2016 01:05:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C978F28D71 for <patchwork-linux-spi@patchwork.kernel.org>; Thu, 6 Oct 2016 01:05:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BE2D428DA8; Thu, 6 Oct 2016 01:05:32 +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 D0F8F28DA6 for <patchwork-linux-spi@patchwork.kernel.org>; Thu, 6 Oct 2016 01:05:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754078AbcJFBFb (ORCPT <rfc822;patchwork-linux-spi@patchwork.kernel.org>); Wed, 5 Oct 2016 21:05:31 -0400 Received: from mail-co1nam03on0044.outbound.protection.outlook.com ([104.47.40.44]:32448 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753227AbcJFBF3 (ORCPT <rfc822;linux-spi@vger.kernel.org>); Wed, 5 Oct 2016 21:05:29 -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=x0xQd5m7Wy+0bWzFwPBC1ZpsJDS2EEnFOPS/ftOJn3I=; b=qoqKuCm7ShQwI3AkRr0XP9v7UZl7ckf4x5vkr0kLEiYFZbnA0iYSkyfUkePpYazKnT4UqipVCo9NzvhO+G4Ebo6KdGnKoIt5/o1RJmubcxJHWbH0v3R3QDZqQhKOAAZeQTCe7J8/W79tSq0q2bynqpDoo9iOxdnSCm/uUiyiyVg= Received: from BN3PR0301CA0071.namprd03.prod.outlook.com (10.160.152.167) by BN3PR0301MB1266.namprd03.prod.outlook.com (10.161.209.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.649.16; Wed, 5 Oct 2016 21:33:13 +0000 Received: from BN1BFFO11FD007.protection.gbl (2a01:111:f400:7c10::1:180) by BN3PR0301CA0071.outlook.office365.com (2a01:111:e400:401e::39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.649.16 via Frontend Transport; Wed, 5 Oct 2016 21:33:12 +0000 Authentication-Results: spf=fail (sender IP is 66.35.236.236) smtp.mailfrom=opensource.altera.com; mseidel.net; dkim=pass (signature was verified) 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.236 as permitted sender) receiver=protection.outlook.com; client-ip=66.35.236.236; helo=sj-itexedge04.altera.priv.altera.com; Received: from sj-itexedge04.altera.priv.altera.com (66.35.236.236) by BN1BFFO11FD007.mail.protection.outlook.com (10.58.144.70) 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; Wed, 5 Oct 2016 21:33:11 +0000 Received: from NAM02-BL2-obe.outbound.protection.outlook.com (207.46.163.85) by webmail.altera.com (66.35.236.236) with Microsoft SMTP Server (TLS) id 14.3.174.1; Wed, 5 Oct 2016 14:32:23 -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=x0xQd5m7Wy+0bWzFwPBC1ZpsJDS2EEnFOPS/ftOJn3I=; b=qoqKuCm7ShQwI3AkRr0XP9v7UZl7ckf4x5vkr0kLEiYFZbnA0iYSkyfUkePpYazKnT4UqipVCo9NzvhO+G4Ebo6KdGnKoIt5/o1RJmubcxJHWbH0v3R3QDZqQhKOAAZeQTCe7J8/W79tSq0q2bynqpDoo9iOxdnSCm/uUiyiyVg= 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; Wed, 5 Oct 2016 21:33:05 +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: [PATCH] spi: dw: Enable Slave Select with GPIO Chip Select. Date: Wed, 5 Oct 2016 16:38:58 -0500 Message-ID: <1475703538-5018-1-git-send-email-tthayer@opensource.altera.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: BY2PR21CA0029.namprd21.prod.outlook.com (10.162.74.167) To CY1PR03MB1407.namprd03.prod.outlook.com (10.163.17.141) X-MS-Office365-Filtering-Correlation-Id: bef1c0fa-9a26-422e-a869-08d3ed673593 X-Microsoft-Exchange-Diagnostics-untrusted: 1; CY1PR03MB1407; 2:kZSr/f9YXWn4NmYJTToLx8x0zTo2FbeXHfqxY7fbxqJoZTAXemQ1ssKJt7mLiubDd6FyH06CJ0LOJD/PpJpQE6TInYj+2RwvOKklgreA3yL8QIMHEsRK5CJvQBKNXbJUDJ4GmFbTOkbV3/ZRVUUg4iPSwa7KcOq+D+/uxC5bGx0dpntHDX20N0SAw/dlKsKmKV5jnboU+0Xih//F1tEBlA==; 3:E0sr4Wz7uy6tK0t57OBGIf9uVFsws+x5WGuS5tPjtF5gk/TUvvQbzvmuih8g3DgoSFxM51VS5FxX/GqYTlK+ana00BTADR+XVbtj5KQO0We3JZyXgDQlMGyrVjEf1xjz5TbaQZzn2Kta/vtrDt7qfA==; 25:Qc8zaO3AcDYJZBs6N8TIumgI3yneVpbC+4ipFybrN5k0i+/tCUXBtCrZsVnCsXzJDYHwtkMy4vClG67Acb2+rftk9B45H0ZdH1XBJCohKoDQdtMKx4GKObNKWcTnu3N8NlzkCxgeDqmm4CZ4ElFTvotk94xwf3PKvMbt79ZYowahxwd5C1qhhVPUkzxqu6mgq0f57Mm9hQYYox2viGNT6uzM//zo3MjERDwI0dRXO6VleuKLrXJbMtmsZbFcKE45PSOi4mqanfonxuZXbS5NY5T+l7X90r7xEcywrN1IM5LtQrFmKNS8Bf9YSEHwZoMaP8E8wmtnMmPQ1fU0kUpfdtsFTuF0mSHxETjUMYF/1sMnHP18vPqLK05YvBQV/Kns42rtp/t/TdlImTpoovYJiSKMXHR1+vIPWjHMOidmdDo= X-Microsoft-Antispam-Untrusted: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:CY1PR03MB1407; X-Microsoft-Exchange-Diagnostics-untrusted: 1; CY1PR03MB1407; 31:TRZoRmBp2A1vSSSas0n0l1kI968wdNRbwVjHve4weZFecShh6YVoblHyRYam51bQsaa7yPD2UP82qPWzupBrEejMILcIseGAslGgeX8vcYnTGBV6PPiBlYasuLBqt0c5syxcEpWzozSgTeMpSDTAMJpii8RcUpI/nSYQMVxe7n4uiDq24xhQTkME4PjBteHbIe2QoxXmLl6cyT21Bk8gEtopsQgVyCjF9PvfMYe4pHRNW2uzCYSUD3JSmQ+qeSk3RHqp7+1moX787fUMrjcKaw==; 20:nxHO6efvRjR83g12ayVjQPSx+NeQ3R5xxsOg0QYsVCYgFJurvpibpm3Gpq7C/gbnNpbeTZIa/Z6+SMnFw/5Ok33eFnBCSVcA0+rf6bw9B4K4HFwFQwFgbz+QYV7ZAViarZA0EIYyqJ23ktjmInUrnDIgARGV6OQ3VdnIIIul+FM=; 4:xadlV/m6Nh+oS2/x6JIFRWVOla2uLs0vWZx+sT5LmLhvEKrE/X5eAZU5fqE77yeFM2kLw2e445BSgFhbKAnv0IcrQ+MKH/jBHyYccThXn2gLUrvLYs1vUVuiAvGz0+KOf7mK73pJPOA/CG4ZyuGFu8nCVoIbOcxx45BQ+aKq1prb4HvUrQF7MJHmNfjwNcWzegZI98twtVmCK2Q4co8Gt08tnk2K8r6kLRC6ui31DEw09EZKGRLKZNYwTE+0qTJrEJMTKlTjLJ9W/y7b8ErcwBFqMA5WGdDlrkiGEQMk0BOaLAxvbJ62lBIxZCm2VqjIxQFqUHCVnD+WLzVcPy+pA8B+SNXZk4kLyHuElHarUQIUDNMg3E6Qi9FXblSHi+Hikxk4yw18pCB5lUU6ZQ4/MWoTaSCYagLb/1jLPHv1YGwWkeJLa8cLC/DomnkoYkcgYUbzRNGmtpilpk00KcZh /w== X-Microsoft-Antispam-PRVS: <BN3PR0301MB12664CF8531345A961ECAE0AFAC40@BN3PR0301MB1266.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)(10201501046)(3002001)(6055026); SRVR:CY1PR03MB1407; BCL:0; PCL:0; RULEID:; SRVR:CY1PR03MB1407; BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(13017025)(13015025)(13018025)(13023025)(13024025)(5005006)(3002001)(10201501046)(6055026); SRVR:BN3PR0301MB1266; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0301MB1266; X-Forefront-PRVS: 008663486A X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6049001)(7916002)(199003)(189002)(97736004)(2351001)(105586002)(229853001)(106356001)(86362001)(5003940100001)(50986999)(7846002)(7736002)(189998001)(107886002)(77096005)(101416001)(86152002)(42186005)(50466002)(305945005)(4720700003)(586003)(48376002)(33646002)(6116002)(3846002)(68736007)(2906002)(4326007)(4001430100002)(19580405001)(5660300001)(2876002)(6666003)(92566002)(19580395003)(42882006)(47776003)(8676002)(6916009)(66066001)(50226002)(110136003)(81156014)(81166006); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR03MB1407; H:tthayer-HP-Z620-Ubuntu.137.57.187.33; FPR:; SPF:None; PTR:InfoNoRecords; A:0; MX:1; 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:ucXrICmofKaGftdeNFfgcIB7gjsFFijXd6MocRsxw?= =?us-ascii?Q?V6Hr95efO5EALZFthhamyyafW0kueJx0m+zWSbonRbZ70Kpe/npa+7HrjoKN?= =?us-ascii?Q?VLBaIf/kH/7J3quV9ZYpBju7kZ6jjYMwAJ7Mu+EDaZe71Zc6lbO5WKjo6oiQ?= =?us-ascii?Q?8d63oNG2TXGY9M/om38XTCZbm5eA5Obi+gIoRqwG+jFbWZnc61al4DUk3oD1?= =?us-ascii?Q?xbloxnRIU5rzOyYdYh4rkixk9oy54igv1W/UDCiwI3x5W0S3xiyrtPoMnJUS?= =?us-ascii?Q?u1uYOV8Xb3h9E8Yvjz9ne71JhzTJSehmH2E9Roy+FZ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s=3D?= X-Microsoft-Exchange-Diagnostics-untrusted: 1; CY1PR03MB1407; 6:F1Q9JCykRoQr+hy+VOFaBISz2FZOHrvz6HQf2vbBZAVy57cu1FpEzpiK4rfazb2JHNB3pXH9QfLWVzCSIeTEsVwoN9Sda4FLrqLf9kawpEyJ5+BxPv4MK5FFngpeN8gEB+tOPk9V1p+k1mBXdc5yV+f9Plmraq4MTAfbArXmqr3ZjppP5tWapGDC6+au/JuxdWErNixUiGcf82XcVkLiduCIEvivsfBCa7LxzQtMvnC/VH0E8CiBw8U1RAPI30xgaEkg0UAwxooq18LlxFUZQGXZjGxWMc3x5GUkrcrDGZEVqxYjMAx7kiQ5lsKnBScy1QZ1CpCancGxAYrHPra6wQ==; 5:n9Epvp2n7JgXcNX8jdaGnqhqnPykvPlQGxy8cE+YFVv1k6znLimnb32U7tSlZh0IXPUMJx0JG9JcZFbtsA4PCboPJR23CfIBUstDpitF51JzQHrR7BslRmWg7QT5XK01WierAAmvRdHtixcTlLLy94+fYD5ix55YC7GVNeamgao=; 24:XQ1alv7Dz/t2vacds2WxPwAIpD21jcmGpE8q9pNN1F9Dh0KNvP3he+J775KviNLQAO9Wb3uezoxO8GEAyfLKSErNqK4425aINE2t7C3znL4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics-untrusted: 1; CY1PR03MB1407; 7:QjsnTrLRCy3fKOMYNunDvtv55DDwuFFtwWxav+3JQn9oSjsSeaCv17Sv+N+hyFDqWf/Y0NpqetRQfcUFbSltPCmXzqueis6lRIlAoMXnBm+vCaaQ2kzXwV+f4hhL01rIcBRoB4erZZTPcUg/O+a7wAPSsNe7S0pS7LBW9yV0ukXK7HvUnAE9/dhb/xT8mafkGhjG6gRwu0GwzORgSAHC+ywFat3H52OwVaMdQEv8xajgPRZ8xiRTtgFYm26QIRTR7QshiXHUyYVqLXJEOomvdFmynMc8fWS450R6aTRwamzf/iA6RN3xcgD+ZpQEm/LNMmLtjDvi5Pil3SzKGCNd2A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB1407 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:66.35.236.236; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(92566002)(8936002)(6916009)(42882006)(6666003)(626004)(107886002)(50466002)(2351001)(48376002)(2906002)(356003)(7736002)(4001430100002)(68736007)(86362001)(86152002)(4720700003)(33646002)(586003)(6116002)(3846002)(7846002)(110136003)(50986999)(50226002)(956001)(336002)(5660300001)(305945005)(106466001)(4326007)(8676002)(87936001)(47776003)(77096005)(81156014)(5003940100001)(3720700001)(229853001)(97736004)(85426001)(105606002)(6070500001)(189998001)(2876002)(66066001)(19580405001)(19580395003)(81166006)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0301MB1266; H:sj-itexedge04.altera.priv.altera.com; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:0; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD007; 1:c+BkCNWdVlYxZLyQxMt93ezslWbFR+LGKTPAC+YHAsEllkBzYfsUNmalblNyu2RanFvq0GT0a4hauHAlfggG6os8jMOwNI9x+1D6Hp3+9YWp3siZP+UcxCYzJB1iDlDH85vFD+OP5IC8QdHatlCPwYzBHKjBnaHdB6gXe0k9RzIkNM7MOlvpUYANKVNNWTRzue0YTNJnISNssfHWTIOmZRMlzklr5enDUfV8DfJAglqR/IQldnXjwuKWPYDrTC5v0ay+F1aKYL4lXBh4y72BB8SaMAyeGwuFvL0q2W5PsX1PEkRQE2V19lNl27S1h375dXqqcEt5YHiozjTQlgjFxaK+Ii1YQmSFACw1VfspLjy9k2OkL9xeAH+GYiX7knaqNTokpNLDYH7EERi6jeBl6YIr3zpU03waxjiaGriowbFL67VG52JAhIHMX2dK8CN5ovDk6paLYZ/m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jsadhb2mT8A7hbIIgmJvdCU+NgtSEn0xmbobP1nDr79Im4wDLhZpUEA+44n9HQr4yO1rZetQJfWuJEkBuN4Hez9+RB41X2PfBklO7/ErYXWrUlg= X-DkimResult-Test: Passed X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(3001016); SRVR:BN3PR0301MB1266; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB1266; 31:Yz8gTHKjS3fKpgJlXAK3OWBAQBa0SxVqkX/ZTUj2iL+FLoKJAArkv20L+LcdsQuTpspx5Pn8geJa+uxE6XDguKByn3qb/pNL3XwR90x9rM1sTsAw68oTHhaAkCViw3jUPSlhhF7FHm4mtlGh78Pw6/X/o5ri27zK/GJ6DgdhKIu6RgcVGB6p7fBAftxkRdYWIGMNxWLO47eJhSsoUtTv4o2mBltyWn1ZNGLH9+9jasoUc/mTYmUZsotkTUKkSmgH; 20:GiXwjy4HkYSmPpV02DyE7T8riqrt8CoiTB9+4vOq9125kqMhgHpAqJqZ5Cc1ijFpn18AqiAsT2g5TWZcjRIgq2d033mc3/Upb+KKgPyvPfstGBM9HIJM1xtQi9Jt+v0RkcMxmE+f2SrdobtoFaft8/UK9eXmgXQ27gElWFCAv1E= X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB1266; 4:x1xMaxwHrRMRS0elTsrhkXFBzZd58lQ77b2OFTUOU4eBeQDun2nDMo1oOHPCs3Ej/8Q7cSrb+ZQmDRd7/BoBAJRNuiGUWcqvi7nXHDawBE/4mAtEXB11tMgN9IlLEQW0ES2dBSs9TwkeqQm38oc709hHtn/nqjRAtnul/2hpCwsWeCyGfQNX0dsCqyL6HZLY0N+gfLu9ueWnarMCvG6jnaz3lupsQT7grf2epX/na4puJqtGw9CELz+lwR1Y5viN2Noy0VwlA4tz5Vx+UWS6E/cBCKgQxZ3GUFtQAqnDRcz65/rvxS9JNKrDyTHCi7mo4W4oYIhe/YCmguvh0OLyG0hFefTloHJHljTyAfcOtFa3MHSxVHAT165KILTemuIe/D/xeCdDdLoH5LU8JpGgsDbUbsX++nFVvuCLsST/l371tiEBXNg/3nV6naoM0cfywkb3JRw0Ju6AW1rkxRulGY+7sSc1t1CoUMR5wmdaeKN6XJUHGuHuv9gPuqFAiVZWdEJyfc2WwfueBUAcCL0IqHrJ44l41auuUH5FUuj0GT3mgDKuRMaaOAWshAdVOSPx X-Forefront-PRVS: 008663486A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0301MB1266; 23:3dx0wRlfkvVuWF8PBigbZFyBXd4l99kXnDLQfQE?= =?us-ascii?Q?B0rlMRecV+1gP3BeZn3n7DhpfThJHdWQsKboW2zrCADcLEh6kqD3jNdTMJEC?= =?us-ascii?Q?rzKwZy5o1UrJq/9+kLugnjlleEKOMcxtk1Arq/rSh9hKpqA+6nePhDFAeQBK?= =?us-ascii?Q?yhsjnuVY2b9z/vHjUBgOIc3pAnRmnUKGsns2b+asR3rUi9NVyejDtBpOaBEy?= =?us-ascii?Q?OB2+Yt3RLdMplFW20uQNUnMayf5aBF6zzFw2evDdKfGZS0BCv0jG2tl77+cD?= =?us-ascii?Q?xFXZJs8A01DZ/yH+NkJZqo+JGy1G2dpUf+HDKYL5YHxBqyqAxYqYjAps+sYg?= =?us-ascii?Q?1zrRTbhfR/5biMiDaF3P0HfO/aAQvb5kRp8A/+kGNHZ11fDSPEJlGBJ18KZp?= =?us-ascii?Q?eh+pMJLLMjqUW/anWt4B7psSuJWX1G1xGEqguA6+PFoC4He6lzeiWRDoFfGr?= =?us-ascii?Q?3u4Xx8XJhgLDCDnNUBHmRB7jjm8DxKhroC1iSLEEG4q8LWYBrXS4MGIxiF1q?= =?us-ascii?Q?VCtbcPwUBq7NL7hKg0R4x6qekNUdiUJFk2NHdNE8F8zWIza4KbVGFYK07JXI?= =?us-ascii?Q?jvRO2QJZt8zNYawSTTNCoPJwOeIdirihZF9FrqA1gl4s1XbJYKZVypNt96EM?= =?us-ascii?Q?RL+4pJlY2nDif+cZDns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Z8s9sY5nC2kxxjfgfflxJm1MR4DWkIVfLmFwVS9I/d0bb4VydQaCRQyuM1ydkNCwGwnNV1vbQmigDSwJvOi1elDt9yr0Ea6bcGZAa6gvjiiHHv1RxsIffoROdUvu9xsOjhBS+eW8QyYCAb2F5d43Ml6qU5McfLUEgH8O3P8RK+8wlAgnuOxznfPZLEz4lsa6TOuVkd8Q==; 5:3HtOBA+L/abPC74CbE5DTNeu8e6gAU99b+aSTTehmyPMMgzRd9iNGTAAvsO2ZU7GDeELgH/8ZKHLHT+bmGAJjc6oHBTyaDn8KAh9h4DaIwJx4emE7hh5q9GVyb6zd1jD1tf7rZgkMu+meVzaucBwZ5QcUjHOPOEtE5Xnvi9D0Ag=; 24:xKtTra/EJIxodu3jJ33jTLIbOADzUCwB2QjpUzeheWY3e89sPb/6Qx8maROLFKuwO3aAKTgXsPcsheFAVvgOWM0yi9AJPyTc8MvKxdHtXYw=; 7:yWBYtQgTwhMpn+sewX6IdyBywzfDK3+QApvL+NOa86Q/RvGtVxRL0PlBTl0QHkOJH64SxaKDTCDjF3qoKR0Z2VOfcsXxjxRqzNRu6/+LFuJAem6RYoZ0F84BoPphung7BEUKP50BYZmJXCBjySXPEtSzhSzWZTxiPuZ/R338h7HjwNlTf8zeAXAwu48boby/r+fOAxrK9iiejai7QlaU2Kk0CIPQddoSP2512yu9ZUnm/juQ8i80LYW8oMIpVzw0hk8bszNHem2WxGfnszmOBqZ/y7U0jn6U/UuujeUNBDg= X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Oct 2016 21:33:11.9259 (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.236]; Helo=[sj-itexedge04.altera.priv.altera.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0301MB1266 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 |
On Wed, Oct 05, 2016 at 04:38:58PM -0500, tthayer@opensource.altera.com wrote: > This patch adds the Slave Select locally so that the transfer will > start and complete. The GPIO CS is taken care of earlier in the SPI > framework (spi_set_cs). This seems like something that other devices might need - it's not the first time I heard of a device with the data transfer start and chip select being tied together. Why not make this a generic feature that the core implements and drivers can enable?
On 10/06/2016 04:37 AM, Mark Brown wrote: > On Wed, Oct 05, 2016 at 04:38:58PM -0500, tthayer@opensource.altera.com wrote: > >> This patch adds the Slave Select locally so that the transfer will >> start and complete. The GPIO CS is taken care of earlier in the SPI >> framework (spi_set_cs). > > This seems like something that other devices might need - it's not the > first time I heard of a device with the data transfer start and chip > select being tied together. Why not make this a generic feature that > the core implements and drivers can enable? > OK. Thanks for the suggestion and review. I'll add a new boolean and device tree binding to the SPI core. Thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/spi/spi-dw.c b/drivers/spi/spi-dw.c index 27960e4..86e321d 100644 --- a/drivers/spi/spi-dw.c +++ b/drivers/spi/spi-dw.c @@ -296,6 +296,10 @@ static int dw_spi_transfer_one(struct spi_master *master, spi_enable_chip(dws, 0); + /* Slave select required before transfer can begin. Force in gpio CS */ + if (gpio_is_valid(spi->cs_gpio)) + dw_spi_set_cs(spi, 0); + /* Handle per transfer options for bpw and speed */ if (transfer->speed_hz != dws->current_freq) { if (transfer->speed_hz != chip->speed_hz) { @@ -390,6 +394,10 @@ static void dw_spi_handle_err(struct spi_master *master, if (dws->dma_mapped) dws->dma_ops->dma_stop(dws); + /* Cleanup Slave Select in gpio CS case */ + if (gpio_is_valid(msg->spi->cs_gpio)) + dw_spi_set_cs(msg->spi, 1); + spi_reset_chip(dws); } @@ -440,6 +448,10 @@ static void dw_spi_cleanup(struct spi_device *spi) { struct chip_data *chip = spi_get_ctldata(spi); + /* Cleanup Slave Select in gpio CS case */ + if (gpio_is_valid(spi->cs_gpio)) + dw_spi_set_cs(spi, 1); + kfree(chip); spi_set_ctldata(spi, NULL); }