From patchwork Mon Oct 17 16:09:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Tull X-Patchwork-Id: 9379817 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 09B196086B for ; Mon, 17 Oct 2016 16:13:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EE6AA28CE2 for ; Mon, 17 Oct 2016 16:12:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E23F528D53; Mon, 17 Oct 2016 16:12: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=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3401C28CE2 for ; Mon, 17 Oct 2016 16:12:59 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bwAVa-0002rt-A0; Mon, 17 Oct 2016 16:11:26 +0000 Received: from mail-bl2nam02on0076.outbound.protection.outlook.com ([104.47.38.76] helo=NAM02-BL2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bwAUc-0001Lu-OD for linux-arm-kernel@lists.infradead.org; Mon, 17 Oct 2016 16:10:33 +0000 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=rTx8irfHBszGq62Ubx6qem/kZ4EyfyZBV5yTr2oZuAA=; b=Ko/S8LbCyas69lvshfnXQ0PjejUbpflHX/Ixwdj9xRPeM+njPqf+YJVMVgwvARRLOME8xRrilUUKvWHOxS4QAP3x2JRHuJO0Lfig0wS6QpSJcVR5ge+l22mxR2sypa6CdOUXN71ck4YNyeUUBypyuHrRJb6Z+7JMSP3ysZBu4/Y= Received: from BN3PR0301CA0019.namprd03.prod.outlook.com (10.160.180.157) by BN3PR03MB1365.namprd03.prod.outlook.com (10.163.34.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.16; Mon, 17 Oct 2016 16:10:04 +0000 Received: from BN1AFFO11FD027.protection.gbl (2a01:111:f400:7c10::110) by BN3PR0301CA0019.outlook.office365.com (2a01:111:e400:4000::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.12 via Frontend Transport; Mon, 17 Oct 2016 16:10:04 +0000 Authentication-Results: spf=fail (sender IP is 66.35.236.236) smtp.mailfrom=opensource.altera.com; vger.kernel.org; dkim=pass (signature was verified) header.d=altera.onmicrosoft.com; vger.kernel.org; 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 BN1AFFO11FD027.mail.protection.outlook.com (10.58.52.87) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.669.7 via Frontend Transport; Mon, 17 Oct 2016 16:10:03 +0000 Received: from NAM03-BY2-obe.outbound.protection.outlook.com (216.32.180.54) by webmail.altera.com (66.35.236.236) with Microsoft SMTP Server (TLS) id 14.3.174.1; Mon, 17 Oct 2016 09:09:47 -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=rTx8irfHBszGq62Ubx6qem/kZ4EyfyZBV5yTr2oZuAA=; b=Ko/S8LbCyas69lvshfnXQ0PjejUbpflHX/Ixwdj9xRPeM+njPqf+YJVMVgwvARRLOME8xRrilUUKvWHOxS4QAP3x2JRHuJO0Lfig0wS6QpSJcVR5ge+l22mxR2sypa6CdOUXN71ck4YNyeUUBypyuHrRJb6Z+7JMSP3ysZBu4/Y= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=atull@opensource.altera.com; Received: from linuxheads99.altera.com (64.129.157.38) by BN3PR03MB1512.namprd03.prod.outlook.com (10.163.35.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.16; Mon, 17 Oct 2016 16:09:43 +0000 From: Alan Tull To: Rob Herring Subject: [PATCH v20 05/10] fpga-mgr: add fpga image information struct Date: Mon, 17 Oct 2016 11:09:36 -0500 Message-ID: <20161017160941.4205-6-atull@opensource.altera.com> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20161017160941.4205-1-atull@opensource.altera.com> References: <20161017160941.4205-1-atull@opensource.altera.com> MIME-Version: 1.0 X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: BLUPR16CA0005.namprd16.prod.outlook.com (10.164.14.15) To BN3PR03MB1512.namprd03.prod.outlook.com (10.163.35.150) X-MS-Office365-Filtering-Correlation-Id: 6b3d863f-3f8d-4e71-7bab-08d3f6a80e3d X-Microsoft-Exchange-Diagnostics-untrusted: 1; BN3PR03MB1512; 2:H4I390BhmFQL5whDqYFwOdRc61T2IbWen1P02ci0HWk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pM1Y7iKqL1EpqZzTpvYFsNZiFoncO3sb0CSSnTL7LBDTtsa6YMTMckwBN8Vp5zYlKFkawr91BxthNXCSx/gVWNAEid7UWjmc/cfOvhxfxVvaAjMazyOX6rNA9N75oWSYypdHqP6pro3LWarfY64qt0EfLbZ6SXTRJ; 20:d2sKf6dSaohXXiITFLK/tLy0vcQc//z1rGxuZhyziXtCJMQo0F3cC1VQU4CleuujIcOBUPjjny9Fu4VFP/qqI2GUsl3G+6xOzG6fnFFK0OG1PUdg8gxE0leoJI7ljrl5F+HVMZt1NnTrvYZ1sDx5ZCKUXSGH3jkUflVhl3iO24s=; 4:7aFAbhFnC5tEu7nn0Qf6ALfX53G89WClNt88r74plXdJu1s3Pz/DZB86qlNI+J8fBnXx+QMQ554p7i4mpw58KD+No421gy5GAV3c9bVg1hBLiVVfFeq/LJNUN1iOoolroaBlLot71mqoUX/G9RPuHFOblHG1OeIrpyjOi9f9iuCLgmLdip9ohrZvlwXrpqEzTjHUUAwZeCz06O6SPtylRwfOszCC7CLAkg90Uqjvv5YE69iIPwT+bfPJ8Pd5kfZd/YSbyksjs+lNcNidgq2EZv7kuoye4v/uy+PzsBkBkJZqFGiJjxtErLa4mjSiuITMF9B6Higa5URx4/fkx5yOsUk/IdUvG/HuwoG5OY/SbXiQPYUpx+nFqatbwsNPR612aL6D4qCEcB81n9NyEKfDAP9Rtlc/9DYb1Z4SgqIMvHzLlhYzj/tdI+uynHRg8NZw/r6+QDvNlpWBOc3xvMYrHQ== 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)(5005006)(8121501046)(3002001)(10201501046)(6055026); SRVR:BN3PR03MB1512; BCL:0; PCL:0; RULEID:; SRVR:BN3PR03MB1512; BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(13023025)(5005006)(8121501046)(13017025)(13015025)(13024025)(13018025)(10201501046)(3002001)(6055026); SRVR:BN3PR03MB1365; BCL:0; PCL:0; RULEID:; SRVR:BN3PR03MB1365; X-Forefront-PRVS: 0098BA6C6C X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(7916002)(199003)(189002)(4326007)(8666005)(5660300001)(53416004)(8676002)(48376002)(50466002)(86362001)(110136003)(42186005)(50226002)(50986999)(76176999)(4001430100002)(101416001)(33646002)(6666003)(2950100002)(42882006)(5003940100001)(229853001)(106356001)(77096005)(68736007)(66066001)(97736004)(7846002)(107886002)(7416002)(189998001)(7736002)(47776003)(92566002)(105586002)(586003)(6116002)(19580405001)(19580395003)(2906002)(81166006)(305945005)(1076002)(69596002)(3846002)(81156014)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR03MB1512; H:linuxheads99.altera.com; 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; BN3PR03MB1512; 23:GozHuMdGXA3/e2tcHyWvVwrP4z54M7+D4jPx0iX0/?= =?us-ascii?Q?yM3KDGmMnKXToXRs6UpvZNfkc6TPO6TVG5RYg6xTyx8JPdtzfIpWINLoQdvQ?= =?us-ascii?Q?CTAMVd8FlbUSa9Rfr9JHlkRlJuFQDHkZXe17ggYiTOu1ygcRQyMg+hlUc+14?= =?us-ascii?Q?E0KViWVI/3uYgZ93YR4vSwq7PIuwe7CmJCYzd4hnx8Lx/7hEmXasFmikxx2H?= =?us-ascii?Q?XydlPVnmYMh4Lj4PxUbda8rRX+S7u0/9qfHHwY1a0kY9fy2MK+d3Q9zAmzqE?= =?us-ascii?Q?B7/AfZ+3URywJEx+NoeU/qPrM5sLpD/nv7auzX6vlumEtI51dRz0H8tHhvRZ?= =?us-ascii?Q?+i+R3j4Mbe3syAJ+M+QzViH05PuZsoB7PKngrwS3iGdhT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microsoft-Exchange-Diagnostics-untrusted: 1; BN3PR03MB1512; 6:FO8ut4ip+6Zsh81PQQmxSGhTFKf2Il4xTdKbREDNkeO0zvZQ0lOZjwTLVzBb0JA/6nqtcgeciXyyLzPTKtV4X09d9nANHJ13X7mIJ/2NHP1azbxwpe3danDwEx27h0wAqIUZmclJvcmanmf0TFBnaW2Cr4/gSyzA63K45ekofTRGq58caHq+5vc2DV9Kuccz+wZMn/pZmdoH5aNFW+EyIIhBtJ+DdqinbWD5zLQS4uGXNDdZZCtsqf03mhPnCFUl+VUYUtdoKX2CdyUTgLHl54g8KXXiCHlO0ZZmXQSRnfaN+trTLhoxyP0lG5QinGxv0+Dirnv+ETmwABLDgE+snw==; 5:cE+ybg6US7LJY5WE6Yg47YINQfviPzgzKT2uMsZXrdeZNs4g1xWWtXEiNIQgzo0NB96HNEPCWXt82DWGT3ahQuShVCj5/w4wr6+vI9YhGvjnNxGpPxTBq8KLSAi95h4lWIJTY1ujBxEX7dMOTNHklQ==; 24:cC7wgu/eZrIMJh+iHd0KyRUpztJzZ0/LTc5tEzy5ZxsONtEjXtIzFuTaGPdIWptFSUpeOc7jBVySp5fpGrAK94zrMRJ1W5TeQRR0eabZwOg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics-untrusted: 1; BN3PR03MB1512; 7:dNtk5SwOYlAqMyYKOZIxW5bvFSXQDp1ikXi46WIfzxXWUTAqPv55aC9Ik66evaDpla7ZpbtoMj1bToYNFazvKrHSg8g1N6vSh+jeBQlxc8RyNuX5JxVcG6HD/OG52M0vAZTaWOI4dnrUuiA70nsZwGVQgLhwThikKT/nZR3l5LrFvxlSZQymiqrr+Yklk1+qDciQwjpBvHfA03rQRts5iUQ5+r4fBe+Aa7zSkBLP0xx6xpe3DbNJ6NlSvlAUqwAEAXXP6drOPJ1o7Y1msDcUHedWmMsZ1az1JfhDRJSjIPp1l8nxbCZK5OhXQlvshKwfpJ14yc5R/OA7/R6D9WDQK3pQaIHDBKoVtr0smUWm8PI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR03MB1512 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)(1110001)(1109001)(339900001)(199003)(189002)(77096005)(7416002)(85426001)(105606002)(6070500001)(11100500001)(33646002)(53416004)(92566002)(97736004)(107886002)(189998001)(19580405001)(4326007)(19580395003)(1076002)(4001430100002)(3846002)(586003)(2906002)(8666005)(356003)(956001)(50466002)(48376002)(305945005)(7846002)(2950100002)(8936002)(6666003)(66066001)(42882006)(6116002)(87936001)(3720700001)(47776003)(7736002)(86362001)(81156014)(50986999)(76176999)(626004)(229853001)(81166006)(106466001)(5660300001)(50226002)(110136003)(336002)(8676002)(68736007)(5003940100001)(7099028)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR03MB1365; H:sj-itexedge04.altera.priv.altera.com; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:0; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD027; 1:8n/mfrIgguaTIc8hjvRkIbLuHmdoBZY77kJvEij9QuqvTOmbNHqv5cEHXopY2En3Cw3DvSsnoRkh01dPxDLNWIYOUdriKXpeZ297go9wxq5EN8CY4mJiM9mVOwohbO9Gfw/cMIyJFldazioNSR5p3NlXo59NAzoqaGiqQLmh1OXRntYbfz5vTHwGYnUXkp+vicCNS8/bLyAWEmsfu41flaO7dlBCmEXsraM+wM48cqDrSt+46VsT4ncnl3ipz8ZAE/FQmooGBqoElVipfTpWTzVnMRq3QSuw6NZav1gvN+sdEHHF87/h/gmRa31N4+e4+Ctgugxl6urbA2jUtKyOG5fRxLCZwWkM32whVBbCQulTl4vz+Qk4wqNKTeUCurCOSBUT5Qfu477DW3CO+oGp0RciXKlIJ5vVudP0GuZvSn93hKsZ+zJ1riZF+nEF9tsA8hQCcINgskcApv2cnl2eV7a9kjR/rrLzpzgiVSO0GLbJHdIis1FKmR3H8NwsN2Sg13j2fFk7vUy1aNwW26XqLAL0QmdkPq9ul2of8ILqBrxFtZ5hI9S0wAjCpL/CxM5bhV9ReaZTsfxgkXybkcO6t3ctlr++5LwsXpn8sOqxB0MPjhliR+GtSV676P5RBguz X-MS-Exchange-Transport-CrossTenantHeadersStripped: BN1AFFO11FD027.protection.gbl X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB1365; 2:EpsVGGB9MXMQ4RMuRY8UXW+7J58fo6AFYV8VWfwrjx4M5f4Uoce3OIodoASApD+B7Maz+UErGB9CmokCtfFuZ8qeohI1YXmnvSPIct9BQKef/FH/mEDL0fhJMLRnx2mpna0xewInXxhbKzewNU3Whx9h6dm5Qd0+6yz5zgUj6dl9dxhX4IJmbpnZd4Y2Rp65kXd5CCDF2XB1DLy1LkPfiQ==; 3:k9xUTQV5aF7KH/leoih37Ekp1+zaNp8IORcwrNofDJ8vBcCQdOOy/GAjTPW5qR4jOGYYr94iLBjTWRRckbFD29A5mTX/V2mhisQRNxn4vwXcsKyFda+L1tGfk54tUogLlZte6irP6nEXvcVonwVxl69BMkdAdn8Uk6ursDMk7697ERf5k3J0HfBCaMYuiTjQ4S1AKEmN1dkoDfZauCVnXClMnWXZrlJdZ/nNK2Q38OqOT93dyRGOvvXWiJ2nYJruEoYFYTOQ4pcMpxfcr0R2sw== X-DkimResult-Test: Passed X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(3001016); SRVR:BN3PR03MB1365; X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB1365; 25:AJGPbX9n+3QEgyobxyNo2I6GJ9NDuQj+4dxcrvHhCmBQrWShkXs+fcdcpCDCPkCEiRxeuSqyYMlSkwSYofE3Tgzd6daIuvRy8qg4Pu7ckLoXWy1ytwnHDaZDXRxjiCIN56ewATcu+foavcL63SSpV+qSnZ+9ISfQpD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A61ogz3Qf0CoOYp0LCe9F8M6bdzHPnCtY+eTlTW+cbLqtC46tZzHDWx1wlQNtmqikEJbB3VcJ38lXSCbm3TkRlDGX++YicekVTaURzh2bf6KzDnLkVImavvbCokSDsCuC1A4JO17ZjY5HzKs69kXe7WVvI/9joyywBaUDSDwA36m2Rae2+AWU8Owr95vNNFKA98EYRjoyy1FEGWW1MQnZYLi94H8XiGvPcULUjNseAm0an4Twm3Jje/NeSCPS0GqfBa/s+rXsX46LpE+lLtxfMBNj0Yj56YJuQtdtFhcjPhaYX7K4Tjd+066D/77RegQxQ== X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2016 16:10:03.8540 (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: BN3PR03MB1365 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161017_091027_238406_0ADFF2B2 X-CRM114-Status: UNSURE ( 5.40 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Moritz Fischer , delicious.quinoa@gmail.com, Ian Campbell , Alan Tull , Greg Kroah-Hartman , Jonathan Corbet , linux-doc@vger.kernel.org, Michal Simek , linux-kernel@vger.kernel.org, Cyril Chemparathy , devicetree@vger.kernel.org, Jon Masters , Matthew Gerlach , Frank Rowand , Dinh Nguyen , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds a minor change in the FPGA Mangager API to hold information that is specific to an FPGA image file. This change is expected to bring little, if any, pain. The socfpga and zynq drivers are fixed up in this patch. An FPGA image file will have particulars that affect how the image is programmed to the FPGA. One example is that current 'flags' currently has one bit which shows whether the FPGA image was built for full reconfiguration or partial reconfiguration. Another example is timeout values for enabling or disabling the bridges in the FPGA. As the complexity of the FPGA design increases, the bridges in the FPGA may take longer times to enable or disable. This patch adds a new 'struct fpga_image_info', moves the current 'u32 flags' to it. Two other image-specific u32's are added for the bridge enable/disable timeouts. The FPGA Manager API functions are changed, replacing the 'u32 flag' parameter with a pointer to struct fpga_image_info. Subsequent patches fix the existing low level FPGA manager drivers. Signed-off-by: Alan Tull --- v19: Added in v19 of this patchset v20: Squashed patches that change API for socfpga and zynq --- drivers/fpga/fpga-mgr.c | 17 +++++++++-------- drivers/fpga/socfpga.c | 7 ++++--- drivers/fpga/zynq-fpga.c | 10 ++++++---- include/linux/fpga/fpga-mgr.h | 23 +++++++++++++++++++---- 4 files changed, 38 insertions(+), 19 deletions(-) diff --git a/drivers/fpga/fpga-mgr.c b/drivers/fpga/fpga-mgr.c index 953dc91..c58b4c4 100644 --- a/drivers/fpga/fpga-mgr.c +++ b/drivers/fpga/fpga-mgr.c @@ -32,7 +32,7 @@ static struct class *fpga_mgr_class; /** * fpga_mgr_buf_load - load fpga from image in buffer * @mgr: fpga manager - * @flags: flags setting fpga confuration modes + * @info: fpga image specific information * @buf: buffer contain fpga image * @count: byte count of buf * @@ -43,8 +43,8 @@ static struct class *fpga_mgr_class; * * Return: 0 on success, negative error code otherwise. */ -int fpga_mgr_buf_load(struct fpga_manager *mgr, u32 flags, const char *buf, - size_t count) +int fpga_mgr_buf_load(struct fpga_manager *mgr, struct fpga_image_info *info, + const char *buf, size_t count) { struct device *dev = &mgr->dev; int ret; @@ -55,7 +55,7 @@ int fpga_mgr_buf_load(struct fpga_manager *mgr, u32 flags, const char *buf, * ready to receive an FPGA image. */ mgr->state = FPGA_MGR_STATE_WRITE_INIT; - ret = mgr->mops->write_init(mgr, flags, buf, count); + ret = mgr->mops->write_init(mgr, info, buf, count); if (ret) { dev_err(dev, "Error preparing FPGA for writing\n"); mgr->state = FPGA_MGR_STATE_WRITE_INIT_ERR; @@ -78,7 +78,7 @@ int fpga_mgr_buf_load(struct fpga_manager *mgr, u32 flags, const char *buf, * steps to finish and set the FPGA into operating mode. */ mgr->state = FPGA_MGR_STATE_WRITE_COMPLETE; - ret = mgr->mops->write_complete(mgr, flags); + ret = mgr->mops->write_complete(mgr, info); if (ret) { dev_err(dev, "Error after writing image data to FPGA\n"); mgr->state = FPGA_MGR_STATE_WRITE_COMPLETE_ERR; @@ -93,7 +93,7 @@ EXPORT_SYMBOL_GPL(fpga_mgr_buf_load); /** * fpga_mgr_firmware_load - request firmware and load to fpga * @mgr: fpga manager - * @flags: flags setting fpga confuration modes + * @info: fpga image specific information * @image_name: name of image file on the firmware search path * * Request an FPGA image using the firmware class, then write out to the FPGA. @@ -103,7 +103,8 @@ EXPORT_SYMBOL_GPL(fpga_mgr_buf_load); * * Return: 0 on success, negative error code otherwise. */ -int fpga_mgr_firmware_load(struct fpga_manager *mgr, u32 flags, +int fpga_mgr_firmware_load(struct fpga_manager *mgr, + struct fpga_image_info *info, const char *image_name) { struct device *dev = &mgr->dev; @@ -121,7 +122,7 @@ int fpga_mgr_firmware_load(struct fpga_manager *mgr, u32 flags, return ret; } - ret = fpga_mgr_buf_load(mgr, flags, fw->data, fw->size); + ret = fpga_mgr_buf_load(mgr, info, fw->data, fw->size); release_firmware(fw); diff --git a/drivers/fpga/socfpga.c b/drivers/fpga/socfpga.c index 27d2ff2..b6672e6 100644 --- a/drivers/fpga/socfpga.c +++ b/drivers/fpga/socfpga.c @@ -407,13 +407,14 @@ static int socfpga_fpga_reset(struct fpga_manager *mgr) /* * Prepare the FPGA to receive the configuration data. */ -static int socfpga_fpga_ops_configure_init(struct fpga_manager *mgr, u32 flags, +static int socfpga_fpga_ops_configure_init(struct fpga_manager *mgr, + struct fpga_image_info *info, const char *buf, size_t count) { struct socfpga_fpga_priv *priv = mgr->priv; int ret; - if (flags & FPGA_MGR_PARTIAL_RECONFIG) { + if (info->flags & FPGA_MGR_PARTIAL_RECONFIG) { dev_err(&mgr->dev, "Partial reconfiguration not supported.\n"); return -EINVAL; } @@ -478,7 +479,7 @@ static int socfpga_fpga_ops_configure_write(struct fpga_manager *mgr, } static int socfpga_fpga_ops_configure_complete(struct fpga_manager *mgr, - u32 flags) + struct fpga_image_info *info) { struct socfpga_fpga_priv *priv = mgr->priv; u32 status; diff --git a/drivers/fpga/zynq-fpga.c b/drivers/fpga/zynq-fpga.c index c2fb412..249682e 100644 --- a/drivers/fpga/zynq-fpga.c +++ b/drivers/fpga/zynq-fpga.c @@ -175,7 +175,8 @@ static irqreturn_t zynq_fpga_isr(int irq, void *data) return IRQ_HANDLED; } -static int zynq_fpga_ops_write_init(struct fpga_manager *mgr, u32 flags, +static int zynq_fpga_ops_write_init(struct fpga_manager *mgr, + struct fpga_image_info *info, const char *buf, size_t count) { struct zynq_fpga_priv *priv; @@ -189,7 +190,7 @@ static int zynq_fpga_ops_write_init(struct fpga_manager *mgr, u32 flags, return err; /* don't globally reset PL if we're doing partial reconfig */ - if (!(flags & FPGA_MGR_PARTIAL_RECONFIG)) { + if (!(info->flags & FPGA_MGR_PARTIAL_RECONFIG)) { /* assert AXI interface resets */ regmap_write(priv->slcr, SLCR_FPGA_RST_CTRL_OFFSET, FPGA_RST_ALL_MASK); @@ -343,7 +344,8 @@ static int zynq_fpga_ops_write(struct fpga_manager *mgr, return err; } -static int zynq_fpga_ops_write_complete(struct fpga_manager *mgr, u32 flags) +static int zynq_fpga_ops_write_complete(struct fpga_manager *mgr, + struct fpga_image_info *info) { struct zynq_fpga_priv *priv = mgr->priv; int err; @@ -364,7 +366,7 @@ static int zynq_fpga_ops_write_complete(struct fpga_manager *mgr, u32 flags) return err; /* for the partial reconfig case we didn't touch the level shifters */ - if (!(flags & FPGA_MGR_PARTIAL_RECONFIG)) { + if (!(info->flags & FPGA_MGR_PARTIAL_RECONFIG)) { /* enable level shifters from PL to PS */ regmap_write(priv->slcr, SLCR_LVL_SHFTR_EN_OFFSET, LVL_SHFTR_ENABLE_PL_TO_PS); diff --git a/include/linux/fpga/fpga-mgr.h b/include/linux/fpga/fpga-mgr.h index 0940bf4..040b86d 100644 --- a/include/linux/fpga/fpga-mgr.h +++ b/include/linux/fpga/fpga-mgr.h @@ -69,6 +69,18 @@ enum fpga_mgr_states { #define FPGA_MGR_PARTIAL_RECONFIG BIT(0) /** + * struct fpga_image_info - information specific to a FPGA image + * @flags: boolean flags as defined above + * @enable_timeout_us: maximum time to enable traffic through bridge (uSec) + * @disable_timeout_us: maximum time to disable traffic through bridge (uSec) + */ +struct fpga_image_info { + u32 flags; + u32 enable_timeout_us; + u32 disable_timeout_us; +}; + +/** * struct fpga_manager_ops - ops for low level fpga manager drivers * @state: returns an enum value of the FPGA's state * @write_init: prepare the FPGA to receive confuration data @@ -82,10 +94,12 @@ enum fpga_mgr_states { */ struct fpga_manager_ops { enum fpga_mgr_states (*state)(struct fpga_manager *mgr); - int (*write_init)(struct fpga_manager *mgr, u32 flags, + int (*write_init)(struct fpga_manager *mgr, + struct fpga_image_info *info, const char *buf, size_t count); int (*write)(struct fpga_manager *mgr, const char *buf, size_t count); - int (*write_complete)(struct fpga_manager *mgr, u32 flags); + int (*write_complete)(struct fpga_manager *mgr, + struct fpga_image_info *info); void (*fpga_remove)(struct fpga_manager *mgr); }; @@ -109,10 +123,11 @@ struct fpga_manager { #define to_fpga_manager(d) container_of(d, struct fpga_manager, dev) -int fpga_mgr_buf_load(struct fpga_manager *mgr, u32 flags, +int fpga_mgr_buf_load(struct fpga_manager *mgr, struct fpga_image_info *info, const char *buf, size_t count); -int fpga_mgr_firmware_load(struct fpga_manager *mgr, u32 flags, +int fpga_mgr_firmware_load(struct fpga_manager *mgr, + struct fpga_image_info *info, const char *image_name); struct fpga_manager *of_fpga_mgr_get(struct device_node *node);