From patchwork Tue Oct 25 14:55:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Tull X-Patchwork-Id: 9394661 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 8D4CD6077F for ; Tue, 25 Oct 2016 14:58:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 76932293F8 for ; Tue, 25 Oct 2016 14:58:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6A3D92940E; Tue, 25 Oct 2016 14:58:56 +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=unavailable 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 53002293F8 for ; Tue, 25 Oct 2016 14:58:55 +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 1bz3AC-0000zM-Pz; Tue, 25 Oct 2016 14:57:16 +0000 Received: from mail-by2nam01on0067.outbound.protection.outlook.com ([104.47.34.67] helo=NAM01-BY2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bz39S-0000mm-Sx for linux-arm-kernel@lists.infradead.org; Tue, 25 Oct 2016 14:56:34 +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=yeJRGhlT0H+syFU8hpNwHLCkoPDqHUKiQsIVjoa4Utw=; b=aPNaEmLBUXoZWNM0SI1WESX7oYZDZdzn2xI9nMMGWPvK2gFYhElPjFYYfQdbVAbmSLLiVAPXN345odmAWy5vguTQV35ULxCSjCzQNbrdWXjDI5lWfkoHbqebzERdSpF7XmTm+pWZ0lZ/s2/O7Yeo2Q1Bm85aHWCwTzpXUvyG90s= Received: from BY2PR03CA065.namprd03.prod.outlook.com (10.141.249.38) by SN2PR03MB2304.namprd03.prod.outlook.com (10.166.210.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.679.12; Tue, 25 Oct 2016 14:56:08 +0000 Received: from BL2FFO11OLC007.protection.gbl (2a01:111:f400:7c09::138) by BY2PR03CA065.outlook.office365.com (2a01:111:e400:2c5d::38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.679.12 via Frontend Transport; Tue, 25 Oct 2016 14:56:07 +0000 Authentication-Results: spf=fail (sender IP is 66.35.236.227) smtp.mailfrom=opensource.altera.com; ettus.com; dkim=pass (signature was verified) header.d=altera.onmicrosoft.com; ettus.com; 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 BL2FFO11OLC007.mail.protection.outlook.com (10.173.160.142) 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; Tue, 25 Oct 2016 14:56:07 +0000 Received: from NAM02-BL2-obe.outbound.protection.outlook.com (207.46.163.83) by webmail.altera.com (66.35.236.227) with Microsoft SMTP Server (TLS) id 14.3.174.1; Tue, 25 Oct 2016 07:55:04 -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=yeJRGhlT0H+syFU8hpNwHLCkoPDqHUKiQsIVjoa4Utw=; b=aPNaEmLBUXoZWNM0SI1WESX7oYZDZdzn2xI9nMMGWPvK2gFYhElPjFYYfQdbVAbmSLLiVAPXN345odmAWy5vguTQV35ULxCSjCzQNbrdWXjDI5lWfkoHbqebzERdSpF7XmTm+pWZ0lZ/s2/O7Yeo2Q1Bm85aHWCwTzpXUvyG90s= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=atull@opensource.altera.com; Received: from linuxheads99.altera.com (64.129.157.38) by CY1PR03MB1518.namprd03.prod.outlook.com (10.163.17.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.16; Tue, 25 Oct 2016 14:55:59 +0000 From: Alan Tull To: Rob Herring Subject: [PATCH v21 4/9] fpga-mgr: add fpga image information struct Date: Tue, 25 Oct 2016 09:55:35 -0500 Message-ID: <20161025145540.3722-5-atull@opensource.altera.com> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20161025145540.3722-1-atull@opensource.altera.com> References: <20161025145540.3722-1-atull@opensource.altera.com> MIME-Version: 1.0 X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: BY2PR11CA0017.namprd11.prod.outlook.com (10.163.150.27) To CY1PR03MB1518.namprd03.prod.outlook.com (10.163.17.24) X-MS-Office365-Filtering-Correlation-Id: 929a02b8-7a3a-48f2-cc42-08d3fce70d36 X-Microsoft-Exchange-Diagnostics-untrusted: 1; CY1PR03MB1518; 2:u17jMh2jCrr+pu4u7rOEABDXUSqj9lHIHRo2cqMBwYWT4/rV35YEO7Nlhz8hosof4loO+T4I/x3LzYIbKw+nm3dOWbxqL0HTxbDKb57cdTrqw+3oeu8ICkeu2NTtlDs0XMI1/qJXI8uOF1+pXyUZ+L66n+0z3iPpf064L6kp+6v9Z+d7LM5LENsBlK35oYYMjs16Zi+XZP7zKp3ME09s7A==; 3:85f6qqH28T+cHbQAjCaU58fjjczjsWB48sKObBJfjuAjsq4i/t6+LIO2KIrCXkuAZLrHav9cgwejfbHYIIHxeybjIjIw98J7tdc5zPqKOhAni+tYXaOfa7FDtKt3jqwKJIQ9aD66e5Tfz48hjbN0GQ== X-Microsoft-Antispam-Untrusted: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:CY1PR03MB1518; X-Microsoft-Exchange-Diagnostics-untrusted: 1; CY1PR03MB1518; 25:YLsAvuSHSk4/OJgeerHhVOqSgkyLTobWA9TL4jklC+FZOjrB7q+QXWp21/RuMyCO1a/XAvIqJwRLuoT93nm2OaGphvaVDH9ja6FKssscW8aA9rmHhGlBm4SHpQ1iF9GJmc5gvMvbu4y797/FU9m2/rkQjoQgMpqkt5t6mAg0CHtpt8t0zvjVubrxBiV2OvuBUOr3yAv676O5H8ckCWqZVaFrNjT87uygaFHeGIqszexe+fAUZzDp/cyd6AM8tvWbNP6TtZXxufM/HsA4yj+oT5BPLLiDHOltEvqh6583sG5aP2187uYl6gT6RUtmE6QvC9OXaxOaZZKtGGCHFYZalgbu+KuNLXflEHr7EISP5Qy4ng/rTNqXm/rZuSacbeJsDcH205n1NR2+sRG67c/1UGURsEZhH7cLfQOM2+RWgJGNmYdkb2V9Ao0JuDlf28BGLhb4kll/zBxp0cvnlDao2GfPazGzDZZNEpTYwO6u7rJYvfyKUhP/7BnCYz2K487tVlFvjdLoz+UV6+eF9W5xiAsKn8vfnoNOBLdfUC+JlGzcK74fSNaX++6Bkr/mGCayiIJ+FVjz6ofGDf1yWun7Yidh5yVjkxkBswM5WAzGDjEn6qIEDSH+MO+R/J3tdJfqp3DFEHxsW4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OJ5/yV3NF/mAnMOdN83jcUsdw== 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:CY1PR03MB1518; BCL:0; PCL:0; RULEID:; SRVR:CY1PR03MB1518; BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(13024025)(13023025)(5005006)(13018025)(8121501046)(13017025)(13015025)(3002001)(10201501046)(6055026)(6072056); SRVR:SN2PR03MB2304; BCL:0; PCL:0; RULEID:; SRVR:SN2PR03MB2304; X-Forefront-PRVS: 01068D0A20 X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(7916002)(189002)(199003)(189998001)(4001430100002)(42186005)(7846002)(81166006)(8676002)(229853001)(106356001)(50226002)(69596002)(5660300001)(2950100002)(7416002)(1076002)(586003)(6666003)(107886002)(7736002)(68736007)(97736004)(42882006)(3846002)(81156014)(6116002)(305945005)(53416004)(2906002)(86362001)(77096005)(66066001)(33646002)(19580395003)(19580405001)(50466002)(76176999)(110136003)(47776003)(5003940100001)(48376002)(50986999)(92566002)(4326007)(105586002)(101416001)(8666005)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR03MB1518; H:linuxheads99.altera.com; 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; CY1PR03MB1518; 23:krLUafIydOG5YsxUT3qk9z+jbvogwVstJ4rlXPaVi?= =?us-ascii?Q?rL5d/6ycD/L3eyz9AHFpKfSLvLMq7E5tdL2uMoTu49Cohcaqrus7tjELkQjG?= =?us-ascii?Q?YR/3W0ERCld+XcBCCOzhILsFnwJd7thyoc4HvlEGTCjSJFnaXZKH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SjAmeN+1pekUfSrgfFUflE3R20x2CP1adZ7DGP51o76qzn?= =?us-ascii?Q?4h2xH/szt9q31OxOXc9/nzcfoVIr/+IpDlkgCVGAF5IEWTCxegt/Xs7PHWmy?= =?us-ascii?Q?pV1gx4T6jqkhJWnm0EykFfMxgOUrcRvnZiUhc62belEESWrzh4hZ0IQmdHuE?= =?us-ascii?Q?rS48d1xnUTUDEp2SIiEKB36Q5vz2FZTv3p6HQuL8Bk6g7RR/uH51DzvZQ=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Exchange-Diagnostics-untrusted: 1; CY1PR03MB1518; 6:5zZuM+lVDQrIWqHIh3C472BjBGY6OmoldL1BJIWZXOvYBFk6dnXtzzCDqkJ6XmwlA2c94IKtBFIDTk/texQ7GnAzZduxcGMDtb14tpSdAgbiOLXXT0XotzdH7y0r8gmTLnuxJOWICWKTtJv0Hwz+gHgLIwu/HDxUXQ6cHLWlakX7SPKOxm+VcF25nEaVASxtBAHOS01ucudsb8ODzb2/O3YR5Xgu/rDRXSuMWbcixqv+zVtEqWB1KeBMi4qy/fybG8u538ZLanjQiZd6D2V8LJycaAASLqiwhR0u+ukjgRQ9J+n9wbKTw6cDy3XRlXD/IBjjAVakAhrjgi0pw1U95IN0ZX61v/4tI3vRYbs9TRA=; 5:Wy6i98CXjReSGb+ywsJ6iLfSLu/NcMK/QKRaQzlj6AEQMZ+1/tWkmDhdMPrHkosC9LmrAKzuV78axmUmc7KyqNObXAV0orO95nSRRGVhSTAkI7eUzKUYo2U8Eqosi0W9hHKh6/YtQjHHmVkO91BJYgM1sKE0tXLOQ8gL1MRsA24=; 24:l9moTvGYgwTu+NWKqbOF29w1Y4OOEawIfO+hr6Vxj2dEazLeCvpnyHm8QL9kZyWaUTIIZi5RiI9MQ/Nqjy5wwGs+qb6HzEhVwI0t/Y1FjR0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics-untrusted: 1; CY1PR03MB1518; 7:fPlOt3zxXQrpd52rcjQXRSKHO36KFjwGo7ZPB8iCA5rWpGSfMqD3JmUGvtAf31jvpKlXlirRIMoUGODcQhDF2UAQjrvcyfvI8E3Ar8fCicAKSIGcsGpykIR4HGz96mqYq+RnEBZXaszkqIPepzyyWssMIOK1rbPo+wmgNqvLI8Wz28r9qDtiVfvEKlhiXLoY3es005jKDWtkkqGvSED5ggj/meODGRJDAehDw7EjaBTIF284Pd96PksTT+RAl04qDie/eui8ACkawIkzYrdS9FnR0fjHCGZOZ5p9CgsqbB4asigLL45+zA7xoG/hXoPBq1skbB0ZbfPsLjHLbLF7kDHK1z/nZf7CHXIlPLjU5QQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB1518 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)(1109001)(1110001)(339900001)(199003)(189002)(77096005)(336002)(85426001)(76176999)(87936001)(47776003)(50986999)(626004)(110136003)(66066001)(305945005)(105606002)(7736002)(53416004)(2950100002)(42882006)(5660300001)(7846002)(86362001)(4001430100002)(8676002)(1076002)(106466001)(33646002)(4326007)(3720700001)(956001)(2906002)(356003)(11100500001)(229853001)(8666005)(107886002)(6070500001)(48376002)(97736004)(8936002)(189998001)(50226002)(50466002)(5003940100001)(3846002)(586003)(68736007)(6116002)(81156014)(19580395003)(19580405001)(81166006)(7416002)(6666003)(92566002)(7099028)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR03MB2304; H:sj-itexedge03.altera.priv.altera.com; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:0; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11OLC007; 1:G2u77I3j0j0XA7Wt7oUqS8A4PH1LVauHydQV6hHYarFhzngQrztfJuDuLKXK9wHhBPSKmSz2r+mOFEGn8rqGfQT74NoX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EalrlglQREBGcxAMMfXiAUzWFHrZzWnJvstWZCyEloGl6bbzTcW4reG2oA2w==; 25:FgN0hgOmmPmpwm77NuC4dHQdwuk29SiBUeNK1ZLp+qnAStQDdEGu2pjH+S9sYm3kjl2RHD4p/ci/6fhpYXhnUwnqDD0Av/F79RDIsqQvYe6VihHvE3qQtE5ht4Hxhp4s08q+kx0c77O+maYquhrm04lQpuzMMaJOxenxFfSpUS3dxbo7OuZzL0gtII1LswAuvbYeNtZV/bQSgTCqzVD8qI30mLQFUwQxxUCa9fu1RnO0k5fI+/kaNWtuMLhP+QH0ep8ZFWUzFWtCcm/iOPllQU5d8qRD5TpIatWMUQVwaYMtONAdU7BU+XpligAh8NTBHyuSyiE97aIdVgeBgGyXnxOnDo6xv+wShpEy9oTwBrixZ/wFQiANx9L9CzsazXyXk+Fl0HRDJG1BHyELdwiUybgkVvS473xNUlweUKGuZPtH8ScaGhr9aXtEFb3QDEXR0LkXktiTxVjWxpxRRXWKMw== X-DkimResult-Test: Passed X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(3001016); SRVR:SN2PR03MB2304; X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB2304; 31:sJnmjVcNfMamTpp+RmW+fjNCnh3VJEu6oHKVoFIF3bs5D8A9/643LZZETlCey4HbG8QqLITb7tDd31yeIF8KZrWgPTJy4Oj/oXj2oWnP7Xg3zaEUFpcIZFqcRgPrftihBPZr9+l/GQkOcRZnx1scli0mYGuglReSxNThlyJv+xiNVMzoUN8h5H+xZ95lhd4XkgtivpFV8HUHKNnBgzIjFVR/AvgJJNf+ChP/BiAM5PoySSV17+uwTCiGxV2G9ghdfYn6QRjp7QagOiidNbZjJfPy77t3gupTjmzZ0wewGPE=; 20:+t2VeafSQtX1Ij1OyXfFEXxlyXRpLvEjblXhFo1dj0Nl8QkVRyIEdYXu3b7GkB440A1I25tRZcAmmC6J6Yx2yyJPssXZjVk1OuRBlrTYBbmMrf8TGHVvc49ZjXF6PH75Kj+L2dbRIf2bM9M3DrGmNyu/6uGVij3AYAQNxaFN4SA= X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB2304; 4:4InKN0AxspOoVPKLGQf4AxeF8FtwSjJrIOyg9H6AwyOAQrN362YTOaDdDlAkn2NmY2r/HN/gnwCbyyo0+BRvF6b6QiXa28dq5eI844y+RzpjkJcUgrdRvie2sxGo2595/HpNdy4TRl0Rmx1CBp972EiLGdYqe/ayc8/BUlAWAqPNwMUZ5HDE3A/6Axh5eUgyykeORRdt2/VwBDCGAkcxuUOeemqkhYIkQmzvZ3lMgjNxhy/WBLfTxiB17Vqb66sL6QGnFEV/pDkG/4BnQuXmWUFqu4L/dJSTHveHPz0mKT7ZcOl54AOeieSlGWBTJMaPmDvAaR64r9CmsGHr8aiXW7hL5ahNSu9FltUaQIhiVm+mVx6aFS5UWdBi6y6mNpMImmZ+iFgLVUMy8b7uRZMpSixL7l00KkOXzwF+bd8cE9BUUqgAB2wO9y8bxpENm3oNrCYGOL3PLgQlijz5ULISELN5qqIWKAEMlVR7qLukPkY6VnDwYbnmazJV0+3UszX+uzNmyXdJuLB4cYvPkwlNy2mzG4cbMJTwQOFpEg1fMEKsgEYpzHaM3srYS5F2FB2H X-Forefront-PRVS: 01068D0A20 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR03MB2304; 23:WS0vhmX7qji8ZD7LE0mkmUrUD6O21semJX6XZoyer?= =?us-ascii?Q?L+EhSST+62F8EiTMj+fdVFLsv4UiTJ1VeB+R6sbJd7ryPsbBHrD2YQdmNoMT?= =?us-ascii?Q?4A5HcomWPmXW37V+h8mJkaieqQj0tyPU2M2w8RC/n5Qplofq8o8rK1PVT7h4?= =?us-ascii?Q?5pcAHubq+1JYfRrym4XZTWR6m6ROnvmUmk64Nb607qdtqD2C3lt1wJvILGQC?= =?us-ascii?Q?Abx+C/Sc3y5K3IW7kdbJ7U/hA7XXTzpYpN+a9jIRprV2aWbAlYZWqvWpTIhw?= =?us-ascii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0BgbXMdk//S0B2y?= =?us-ascii?Q?aAd2mIL33RBf5V4ih0QawHL+wXeMLRuIlyrdwiDhj3bUgocW5B885yRjHtlf?= =?us-ascii?Q?nPoY+djL6AEve9ceBoR3BE8uvfxU5fNbWXJ93Op0cDJXAYkEGD9jFadgKUnj?= =?us-ascii?Q?4EIoMowW3N+sv6BkhjFzc5T0OitpqwiIx0+SKxrODW1ep0dq6qhBUBvidGgc?= =?us-ascii?Q?ndyc6idsmQFERm+jh++jCZICukCdXuU8ptMQ9tmYxurY17utHZSV8m2u1VP5?= =?us-ascii?Q?K3sHTkARRJfzTA99FVj7IU24RuqHtE=3D?= X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB2304; 6:sSJxCXs2Q8zeUSaSghncUAbvt92+S4sDCrXRQEsA3t1VGrYGctTKJarCSJ3yq7FagZfljGKt+7Pob11O1U7QiyTG0vY38LSbZm2IWiI9hOZn1F7onDxN/Ndfpc54ncTlj0cBQYA9/UegQu5NxiTiCSuEFcBGeOsLCFQo8swwFxwXshTaSH0GOszXoZL8grHpWhRF9MUfeh4uHkD4Vr9LOGotREuV9cdRtt97XlkhdoKwiEn1bg0AcrBKXqT0crCqwC5YfC0t0COZp7BV0Wsxln7Yhm57rWgHlqga64cY+Ll+4B8FLdRefDksIfzPVPxXu9lWLro2XQXZKncOzd7vGGWian1h8SaMTtFkalt83IE=; 5:bm3IMgkJP1ZEYW/8FnElV99Ax1JBnWQHt+MmszOHNrgxA2cTQq2oWaEQlgYWD/+NWPGfzKmh1wsD4zUFotTIwNB6ojUefzopZHVnGfyoVOm689mqDI8V+aeRrnMbW+qcuBmRqW2Y/Z8YVYiZNsxK4FghIffM39nPqdsHeTFpLs0=; 24:Vu1BkIrlcCpPAltiFuZbBULFXXsDA+TWmYnd5xeHalFXlK28diTAjaHpZKf1g5OoNKvs+Uv918LWUGyUJiAhvpJWmrRgi/SgnWmPqTTLicA= X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB2304; 7:4bTMeWBXHROkjqDsERkFlN4huwI7RAUh6z5yHqHx6/K7qz1nxKy/qmWXq3Inm0UDdA2+BYoBpsdeYFD+wGpiMRlayWZzwaZuOEaScoKt9kinSPYGHgU51obHdt2niZUi9F1vLOierwBrMwNQyLsdtZT0dd5Mv/XPmci14aQAQJseudil0XqJkW/1AysOeU954WESfAdS5fhEsYB8vpWSCkuo+hDkta/NFzzRPvs51jsIAdulrMYlA9mhiv6cX6QvFhrwkEN5kjf/7uEsJzLovwLcB48Uf6m8+P2K1xXABa/9CJbvumhfGxJFMXwobbqD+agN3P0Swxq7fUibaF00rg== X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Oct 2016 14:56:07.1535 (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: SN2PR03MB2304 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161025_075631_088008_9346A558 X-CRM114-Status: UNSURE ( 5.41 ) 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 , Julia Cartwright , linux-doc@vger.kernel.org, Michal Simek , linux-kernel@vger.kernel.org, Cyril Chemparathy , devicetree@vger.kernel.org, Jon Masters , Joel Holdsworth , Jonathan Corbet , 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 Manager 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 Acked-by: Moritz Fischer --- v19: Added in v19 of this patchset v20: Squashed patches that change API for socfpga and zynq v21: Add Moritz' ack s/Mangager/Manager/ --- 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);