Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751677AbdFFPD2 (ORCPT ); Tue, 6 Jun 2017 11:03:28 -0400 Received: from mail-co1nam03on0084.outbound.protection.outlook.com ([104.47.40.84]:28189 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751440AbdFFPAr (ORCPT ); Tue, 6 Jun 2017 11:00:47 -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 13/18] staging: fsl-dpaa2/eth: Remove unused fields from priv struct Date: Tue, 6 Jun 2017 10:00:36 -0500 Message-ID: <20170606150041.10955-14-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: 131412348450664553;(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)(39410400002)(39400400002)(39850400002)(39380400002)(39860400002)(39840400002)(39450400003)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(9170700003)(6916009)(85426001)(305945005)(2351001)(106466001)(5660300001)(189998001)(105606002)(76176999)(47776003)(36756003)(48376002)(50466002)(33646002)(81166006)(8936002)(50226002)(39060400002)(8656002)(38730400002)(86362001)(7416002)(4326008)(8676002)(50986999)(110136004)(575784001)(5003940100001)(53936002)(356003)(1076002)(77096006)(104016004)(6666003)(2950100002)(2906002)(498600001)(54906002);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR0301MB0906;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;MLV:ovrnspm;MX:1;A:1;PTR:InfoDomainNonexistent;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD024;1:uVhw/oPmeDYlJZMRNIOD2Fhtn7CXICRvCvvEK7kwrze8BTZckeI4AS3cq0703uEo4ZKvg3mNN6qJxw1O2DezuDSJmVs3NjRSJxvH5uuPR4mulAu4FYglNdQOnF87qUwfnv1tt1cSsdwvxlqAtd4nW2gL8gtY+jMt4+ceGM+B15/X414BKpuMOdWUYFnJuGk7L7pinJiiebGxrqHI7PlNXO8w1VLhrfs7M3Znsxa870J3EzPszi/BvZID1+FQ8uZnJWi2rSpIZZMN+A7k5pZnbCO7ecPO2UKxL7hZqCTrHxI7n9HTfnhulO3Z/1cBJSt+y3zppI2SDQeB/NVsBreevjOp4L6nPzhTw5UVmmfgtgsy5Gwyjg0YwMGEIC63yaUzrtnHi7Zodd0th+vCnercWXQ+0LIKxuiUlcRoLOGhzLTjcmjxEIstaQayXLn5H0uFdCurjvQRRieVEAYmHk+oCM+PxG6isjAhG8zBBrS0o769wnBJSAES/vz8mTxyveYK+RQ8cI44noP/s2S9jMOqhDQ1zYzEn7Mo1J43xOfXbBdZgHYRkGCXSlNau6BEFOKPB3pDxRPsUXkKaS5KPH+lkoQYWEMV48rMtHs8yPXXk4he6GPeHr9e0CVph0A8F1kfz0cEv9cA4CGyNy6MQAyh+W2JJ6vH0e5ti4cS8iigAYnYMkrVRs6OdVqDCrJrqHKH MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY1PR0301MB0906: X-MS-Office365-Filtering-Correlation-Id: b53c11cc-e05e-4d6c-7069-08d4aceccef7 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131430075)(201703131517081);SRVR:CY1PR0301MB0906; X-Microsoft-Exchange-Diagnostics: 1;CY1PR0301MB0906;3:uh0S4UQr1l3lfAJFpX2ymQfKs/+YatrInbteUpUS5g4AUENcJ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sE8Ct0uo8ItipnGXEmu8GZxhSE/n9ySP8t0pxAax96PA8d5ac4SErLLCGHZiZvTECJQrYe0MfiyhfP9a01lFtQe+4A7iPP1AAObdlMTfYvK//GW2zDOq4t 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)(8121501046)(5005006)(13018025)(13016025)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(6055026)(6096035)(20161123556025)(20161123565025)(20161123563025)(20161123559100)(20161123561025)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CY1PR0301MB0906;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CY1PR0301MB0906; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY1PR0301MB0906;4:ckhisjUG5oVZ6Fo4OKsDI/HK7QWbz6TOpkbf1uof?= =?us-ascii?Q?9LriGuuiysVZx39XWuBR3YLJT4blpE97ERJ+lAklsp+18LplQg2x/rX1EJHg?= =?us-ascii?Q?5MQlG3j+t99El44GNwmbjG/YENVbAXkrdcxzyvP6NaS2xxj/MnZoc+pVJwUN?= =?us-ascii?Q?LNPe1rWAC99Cm7qCAuFn3/YfY+sCOadgy8ZOjw/KYcnzZSt7V9Sc3U6dGEay?= =?us-ascii?Q?Nf7ZsmgBltnGBm5htaYgAvVg1fsPyYX4M1Suo6+HiEQHNcR9XGdOquez3H18?= =?us-ascii?Q?OiO/c3MjbuppCdtyMsEIRnO8113pUVO+t4v6OHFeHw1wcYA/exF25usFpQf3?= =?us-ascii?Q?8Nwk3JDd0/uQBbbU4idkJGtdjBbOh7taWkJoilpj+QmPgvc0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lpRaVHwkFfMNbmQpjHX8CWfRrd2d38waYXCXP5PAJi8NvJF8j3kTuym/QJNO75sO4TBuamuQXtIvEsJP07LEbd7qFiEy100UfBg0T237jl3mEJjGImobB9IqQwOoTkSqTXAHh89LMI4etUB6O0UeLZeT0q+1ZgPVln3bXTSUvA/LDBegkR9LPn5jHdK3qGRW9YsdA4wuXYQdi4PzXyqSqErSDo3fmg== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jun 2017 15:00:44.8948 (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: CY1PR0301MB0906 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3948 Lines: 101 Remove the dpni_id and buffer_layout fields from device's private structure. They're only used at probe so we don't need to store them for further use. Signed-off-by: Ioana Radulescu --- drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c | 33 +++++++++++++------------- drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.h | 5 ---- 2 files changed, 16 insertions(+), 22 deletions(-) diff --git a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c index d81c56f4d859..ee71e158b0a9 100644 --- a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c +++ b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c @@ -1734,15 +1734,14 @@ static int setup_dpni(struct fsl_mc_device *ls_dev) struct device *dev = &ls_dev->dev; struct dpaa2_eth_priv *priv; struct net_device *net_dev; + struct dpni_buffer_layout buf_layout = {0}; int err; net_dev = dev_get_drvdata(dev); priv = netdev_priv(net_dev); - priv->dpni_id = ls_dev->obj_desc.id; - /* get a handle for the DPNI object */ - err = dpni_open(priv->mc_io, 0, priv->dpni_id, &priv->mc_token); + err = dpni_open(priv->mc_io, 0, ls_dev->obj_desc.id, &priv->mc_token); if (err) { dev_err(dev, "dpni_open() failed\n"); goto err_open; @@ -1766,35 +1765,35 @@ static int setup_dpni(struct fsl_mc_device *ls_dev) /* Configure buffer layouts */ /* rx buffer */ - priv->buf_layout.pass_parser_result = true; - priv->buf_layout.pass_frame_status = true; - priv->buf_layout.private_data_size = DPAA2_ETH_SWA_SIZE; - priv->buf_layout.data_align = DPAA2_ETH_RX_BUF_ALIGN; - priv->buf_layout.options = DPNI_BUF_LAYOUT_OPT_PARSER_RESULT | - DPNI_BUF_LAYOUT_OPT_FRAME_STATUS | - DPNI_BUF_LAYOUT_OPT_PRIVATE_DATA_SIZE | - DPNI_BUF_LAYOUT_OPT_DATA_ALIGN; + buf_layout.pass_parser_result = true; + buf_layout.pass_frame_status = true; + buf_layout.private_data_size = DPAA2_ETH_SWA_SIZE; + buf_layout.data_align = DPAA2_ETH_RX_BUF_ALIGN; + buf_layout.options = DPNI_BUF_LAYOUT_OPT_PARSER_RESULT | + DPNI_BUF_LAYOUT_OPT_FRAME_STATUS | + DPNI_BUF_LAYOUT_OPT_PRIVATE_DATA_SIZE | + DPNI_BUF_LAYOUT_OPT_DATA_ALIGN; err = dpni_set_buffer_layout(priv->mc_io, 0, priv->mc_token, - DPNI_QUEUE_RX, &priv->buf_layout); + DPNI_QUEUE_RX, &buf_layout); if (err) { dev_err(dev, "dpni_set_buffer_layout(RX) failed\n"); goto err_buf_layout; } /* tx buffer */ - priv->buf_layout.options = DPNI_BUF_LAYOUT_OPT_FRAME_STATUS | - DPNI_BUF_LAYOUT_OPT_PRIVATE_DATA_SIZE; + buf_layout.options = DPNI_BUF_LAYOUT_OPT_FRAME_STATUS | + DPNI_BUF_LAYOUT_OPT_PRIVATE_DATA_SIZE; err = dpni_set_buffer_layout(priv->mc_io, 0, priv->mc_token, - DPNI_QUEUE_TX, &priv->buf_layout); + DPNI_QUEUE_TX, &buf_layout); if (err) { dev_err(dev, "dpni_set_buffer_layout(TX) failed\n"); goto err_buf_layout; } /* tx-confirm buffer */ - priv->buf_layout.options = DPNI_BUF_LAYOUT_OPT_FRAME_STATUS; + buf_layout.options = DPNI_BUF_LAYOUT_OPT_FRAME_STATUS; err = dpni_set_buffer_layout(priv->mc_io, 0, priv->mc_token, - DPNI_QUEUE_TX_CONFIRM, &priv->buf_layout); + DPNI_QUEUE_TX_CONFIRM, &buf_layout); if (err) { dev_err(dev, "dpni_set_buffer_layout(TX_CONF) failed\n"); goto err_buf_layout; diff --git a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.h b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.h index 6462e2cbe4be..6697b508cf23 100644 --- a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.h +++ b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.h @@ -297,12 +297,7 @@ struct dpaa2_eth_priv { u8 num_channels; struct dpaa2_eth_channel *channel[DPAA2_ETH_MAX_DPCONS]; - int dpni_id; struct dpni_attr dpni_attrs; - /* Insofar as the MC is concerned, we're using one layout on all 3 types - * of buffers (Rx, Tx, Tx-Conf). - */ - struct dpni_buffer_layout buf_layout; u16 tx_data_offset; struct fsl_mc_device *dpbp_dev; -- 2.11.0