Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751533AbdFFPBA (ORCPT ); Tue, 6 Jun 2017 11:01:00 -0400 Received: from mail-by2nam03on0042.outbound.protection.outlook.com ([104.47.42.42]:46368 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751510AbdFFPAy (ORCPT ); Tue, 6 Jun 2017 11:00:54 -0400 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; From: Ioana Radulescu To: CC: , , , , , , , , Subject: [PATCH 09/18] staging: fsl-dpaa2/eth: Reset dpbp Date: Tue, 6 Jun 2017 10:00:32 -0500 Message-ID: <20170606150041.10955-10-ruxandra.radulescu@nxp.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170606150041.10955-1-ruxandra.radulescu@nxp.com> References: <20170606150041.10955-1-ruxandra.radulescu@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131412348447853105;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.168.50;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(336005)(39400400002)(39410400002)(39450400003)(39380400002)(39840400002)(39860400002)(39850400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(9170700003)(36756003)(76176999)(110136004)(8656002)(50986999)(54906002)(38730400002)(53936002)(86362001)(50466002)(48376002)(33646002)(189998001)(498600001)(106466001)(6666003)(2351001)(39060400002)(305945005)(6916009)(105606002)(2950100002)(7416002)(5660300001)(2906002)(5003940100001)(1076002)(77096006)(356003)(4326008)(104016004)(50226002)(81166006)(8676002)(8936002)(85426001)(47776003);DIR:OUT;SFP:1101;SCL:1;SRVR:DM2PR0301MB0910;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;MLV:ovrnspm;A:1;MX:1;PTR:InfoDomainNonexistent;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD020;1:nUArkbwMuCte9dLcBsE537eIV21OOIERWyX16F0ryEwL4PSfQTkLs3NCPa+Tiodx5J3G1AWh9lKpIkElZeIwicPG5bjtJ9WcSvBWezJm+ACsGOAfwvuVtXFpzzcQpgbVKHbH3hb6LzFko+Am4ojqVwsodBISZka/0r+a0FyD3dhTHqKVjVCcgFf4mUdlUJ3t9w33dXEmMgy4DhvcRCRjjsfQfl+kvwTRqhdBPHkcR97RXJgIPj5do9GdDwdlf6r+RKS4I7QEEmHbPkeo+/eCmQPw1ORKBFRemBHZhlkNx3B0vKRC+UjI0DDR4UsPgN18iGDvMqK9v4Qp2xl7Plk/tfRh1riikWCO2X1dLrwzcOldO+beGqOduxIiEvqXdYRVT9fWcRsuRRj3McvrvqosS2bN1ozBvrhYHWJ2mUcIRB5Ci6zKOXwLdimtCAR+kmT/LMDa1H9SasB76VpgA6gIwKz2aEoS775Ner/qvPmjdyZJFb5WJdSTueWRnK+t7CG2wzqM7E+pjY4yqjivAiEAgTPEIvk4KYckyyNwa5Mb1QBxwBUwkXQDZLwgIzVyM83IJXkWa94hh+WpZGIWMTJpgsQRzIbyYrmVZWlGJjc2e8Up7hntyvntt7/EHqMMhR4qvQ/27ay8tsXJN4UB8xp6jD/uib1+kzzdu9zkihdlY4csajM4RNHXsqaHQhrvlMHA MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM2PR0301MB0910: X-MS-Office365-Filtering-Correlation-Id: 13db510a-0f16-445c-28da-08d4acecceca X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131430075)(201703131517081);SRVR:DM2PR0301MB0910; X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB0910;3:ylMCh/0odLkncMv5WLCO5dkhOSDoHu1EBJe++7XfvcxnXHr1MfNpwjJ7l1klDRtLIH331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FZG0TdOcf8VOngBozFnR2xYDj80R/VvWEQHbtU+G+6yNzkwonNLyz3ebN2ii0K5TsZ6BIb5FM/X5HY1V47pzzYRcSlDNJE9+tebUWceKw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(13018025)(13016025)(8121501046)(5005006)(93006095)(93001095)(3002001)(100000703101)(100105400095)(10201501046)(6055026)(6096035)(20161123565025)(20161123556025)(20161123559100)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(20161123561025)(20161123563025)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:DM2PR0301MB0910;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DM2PR0301MB0910; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM2PR0301MB0910;4:V2Urrb13NEpYstGsz0L9zJ1wv6YM1KFrNOawmq55?= =?us-ascii?Q?ykmw3IhsKp442qBXKmvr85k4Ra4gr7ibhDMedgugmwEGeOl/Lj7e0+JAse07?= =?us-ascii?Q?PjutPsHRdn/I67QswWB7VJA/D9RlZXx0sa7h44nQ8SGiyQmue0zK/FLtg2BB?= =?us-ascii?Q?e4qSyaBdcF03fr/+wIJ+m32ZeSzx2hZZKMj+FsjRjX8wtzsCEizxEw6j9FJA?= =?us-ascii?Q?HG9SIkp583aWYmWhTADIoF2CWwbmjpgAbdhNC8WWxsHALdFoGs+x40u6388I?= =?us-ascii?Q?113qJsQoh632QlWMuqGxiVyBBIYsv/Blh145EMiUIoSw00wddSirpqFUGPHY?= =?us-ascii?Q?eVAwIsCTPCS9qTuLLiFsWLz7Dd9V88/cBp69Cz4RgBmG+31a5yX2m5HPJ5ra?= =?us-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xoDs0w?= X-Forefront-PRVS: 033054F29A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM2PR0301MB0910;23:/UrD0YCooFnwO7cA+GQUw7E4VR+MF7gqLpru2FB?= =?us-ascii?Q?V5YFrgqI665c2IKwgxMS6dBjwe8TF0GIH9J/3xHwREqsYw5ebpdauljCuK1c?= =?us-ascii?Q?OjJ2wgRg/uif3KpIBsGtcjvIEtvUypjq1WsT+h15gjyOFHZsyQq+4vnjX2Go?= =?us-ascii?Q?G+b+kFccEKjeU4m9B74qOJ0E8V3kAo9jPEbw9i8LpIx7zvu++zlg5dMEmvNx?= =?us-ascii?Q?r1PqAru2jlBiMq58Pr0d1scsD9KqmxgBMhYQ7yWi0by51cKloTVHFg/lj+PE?= =?us-ascii?Q?FzsMAfQoLwnh31qa4NZJ61KWsh7VK3L0pnuGoUp+yuXHLyQTTPay7/Pzezvr?= =?us-ascii?Q?D8crgA/yIwmg0ebbLYcb3JMjeApGibTnpasycNy6PrOzOQCykfkDeQ5Be4QZ?= =?us-ascii?Q?06Rl/xHvMjXbJqUqLxNsaGz0lPpfXxMEhE0+jnJpoLOZHSh3HwDz498TM4Wf?= =?us-ascii?Q?3xZdbfvmUWWflFAhATQd4eGWvPQcY+21ffL6j6pGmRPL8T0MkZ8hEudWuTRx?= =?us-ascii?Q?sum2JUVYRPWGgg2V3yGBdAlOBu4oiUL04Sl1ozVgAw2GfDhPBwWUvREPQXug?= =?us-ascii?Q?fRoFJP0hn9sfIzgGK/QapRm1SiXogFhQQ0og0wPC6MXATIobUxkp859YggZn?= =?us-ascii?Q?/Uvahr3/PTqemdcz2Ra3ERAX6HBiCfDgEOKH9UhhcKdGBxs8swNUNcdw373S?= =?us-ascii?Q?Hv7rOcur/5OFZs7XFnwlhU5915fbOx9Hcy2cdAchojI0nrfBuXuS1zuUt8LY?= =?us-ascii?Q?lv6Q/VzyypoGFzLFeJzYF/eidicU78VUw5djp3W8HAFZ6Twv+NXpRjhN65Fm?= =?us-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E4GdulT6gGuyQmR6L0+vXENBRl4p9DC4PG0TZlrzEbYOEd3BmzD5ix2xKafJyNSci7vAwB9l4++fMMGDJzayZz9raflBV2HuruTxDpGb9n9au9+MwObNOu/ozFXvJ0qjq8Sw== X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB0910;5:Un790Qn/gqIwVUrHhLNVk4niR06Krt643inozjpRkksFc3KObin0vHRk0hEAa4So+wbOZ6CzFeBegKBZ1sGgJ3VKV2kaJoRI5EwbW7Gfvoh9Afims1GiLbFSfm+U6HIYaMLbLxxyQT90LCBwv80yeNQAO4yZR9bYPHcTncfrBCwYZfuiSML7UNDYM0ailf5/dfVVZW05qTAUdrGsBMphnBBOdB748unUmR9H+am7my+ZUC4h3kmQB71ct6BkFidSyLLbp9ZHsRAeF9C3KLOpikyifDPdewvQD6642/KzhaODTqsgeL5aVpK8/QRjwBYHUDUMUcbWChfK7meppmsoFUeYnlMDyUp1dMhvxaW0J4iVFwSKet98qhjHZ0qnJlMttKAWmc7agqPRi0a8ny3ZuzA3iZywufvJjTWqlECoSemdE0xBCmfFRlV+cI8l2PL4c5nsZc5CQGb58FY7+eQlSj5ETqrEM0dm/90qMZ/vXpvUbdEhtmVbl0lQxXAwAmzjeR9/0NliXXm76lqxP+pRig==;24:K6zIlMXzBgYHRVs0j0QawVDmrKb2SavOMMpJa622C6gu9YNxQ4D0itSOwFKBD04ZvlQijjrqKag6Us/CTZvDnTIpOhMtd334vN2VjEYW7Ng= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DM2PR0301MB0910;7:VHISsWwx5Iqeypl/vFtPpWbPxSc4LW7KDg+PcYCnmXqnUN3gows5jM5Eah/P0SMJBNrCyXT+kXrf/SNguxZHCa19Ktnm6PAL5+5kMQE7sjcA2d/k6zJ1clyBieBjJ9hz/AJVTQwhzMULgfA0WTxUkjtUnNpqtY23lDE9aX7zVWGmtePDPYSOuqLRI6bLU4i8Kw2bBNigVTaksBcSINTHE8pzhQ4tN87YXftPaV7NJznfLzxzJ7p8JCCRhHZ5cfWszmgk7tZVAv+ZTxQEchUWjjm2v6guP5YENWnFzeBsNXTWB5C3apO8SyFg/9OSKIrnny4LFO2NuT1J86aHwD7F5A== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jun 2017 15:00:44.5981 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[192.88.168.50];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0301MB0910 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1120 Lines: 35 Reset the buffer pool object before using it, like we do for the other DPAA2 objects. Signed-off-by: Ioana Radulescu --- drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c index d3ec384c7364..fd56fbd20087 100644 --- a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c +++ b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c @@ -1687,6 +1687,12 @@ static int setup_dpbp(struct dpaa2_eth_priv *priv) goto err_open; } + err = dpbp_reset(priv->mc_io, 0, dpbp_dev->mc_handle); + if (err) { + dev_err(dev, "dpbp_reset() failed\n"); + goto err_reset; + } + err = dpbp_enable(priv->mc_io, 0, dpbp_dev->mc_handle); if (err) { dev_err(dev, "dpbp_enable() failed\n"); @@ -1705,6 +1711,7 @@ static int setup_dpbp(struct dpaa2_eth_priv *priv) err_get_attr: dpbp_disable(priv->mc_io, 0, dpbp_dev->mc_handle); err_enable: +err_reset: dpbp_close(priv->mc_io, 0, dpbp_dev->mc_handle); err_open: fsl_mc_object_free(dpbp_dev); -- 2.11.0