From patchwork Fri Jan 20 21:04:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9529479 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 D9CF060113 for ; Fri, 20 Jan 2017 21:21:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CC1A0286D4 for ; Fri, 20 Jan 2017 21:21:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BF52C286DF; Fri, 20 Jan 2017 21:21:48 +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 2E31D286D4 for ; Fri, 20 Jan 2017 21:21:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752441AbdATVVl (ORCPT ); Fri, 20 Jan 2017 16:21:41 -0500 Received: from mail-sn1nam01on0050.outbound.protection.outlook.com ([104.47.32.50]:26432 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752327AbdATVVP (ORCPT ); Fri, 20 Jan 2017 16:21:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sandiskcorp.onmicrosoft.com; s=selector1-sandisk-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=9ZpMUbcmxku5jAh78Dugau6MvgWBsndu2iTduZuRvwg=; b=Ve8JfqiTIvjewEP0vM8ll639xEqZdhhNBrYunqrSirEnflmOQmYOcDglPH0QVnHya7WoeoQZh6hkeq/bqRR98XQuFoqnwqcc2hgtrL2IEkW+lDOvFW6MAyO4Yj+WQowelx8fOsbK+OELi/2+quURUSffFykTYbYzAdK+MddMeYA= Received: from BY1PR0201CA0006.namprd02.prod.outlook.com (10.160.191.144) by SN1PR02MB1422.namprd02.prod.outlook.com (10.162.0.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13; Fri, 20 Jan 2017 21:04:48 +0000 Received: from BY2FFO11FD038.protection.gbl (2a01:111:f400:7c0c::101) by BY1PR0201CA0006.outlook.office365.com (2a01:111:e400:4814::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13 via Frontend Transport; Fri, 20 Jan 2017 21:04:47 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.21 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.21; helo=milsmgep15.sandisk.com; Received: from milsmgep15.sandisk.com (63.163.107.21) by BY2FFO11FD038.mail.protection.outlook.com (10.1.14.223) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.803.8 via Frontend Transport; Fri, 20 Jan 2017 21:04:47 +0000 Received: from MILHUBIP04.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.162]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id C8.B8.65426.DA872885; Fri, 20 Jan 2017 12:53:02 -0800 (PST) Received: from milsmgip11.sandisk.com (10.177.9.6) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Fri, 20 Jan 2017 13:04:41 -0800 X-AuditID: 0ac94369-b62949800001ff92-2a-588278add2d3 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id BC.33.16817.86B72885; Fri, 20 Jan 2017 13:04:40 -0800 (PST) From: Bart Van Assche To: Doug Ledford CC: , Bart Van Assche , Mike Marciniszyn , Dennis Dalessandro Subject: [PATCH v3 17/37] IB/hfi1: Switch from dma_device to dev.parent Date: Fri, 20 Jan 2017 13:04:17 -0800 Message-ID: <20170120210437.26389-18-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170120210437.26389-1-bart.vanassche@sandisk.com> References: <20170120210437.26389-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrILMWRmVeSWpSXmKPExsXCddJ5ke66iqYIg6/TGS2e733NZvHy/AdW i2eHelksNvxvZHdg8Vi85yWTx/t9V9k8Pm+SC2CO4rJJSc3JLEst0rdL4MqY1vOLpeAtT8XC F62MDYzTuLsYOTgkBEwkXr1x72Lk4hASWMok8fryc1YIZxujxJ+9N1i6GDnBitbt2sQOkdjM KPG8+SU7SIJNwEji2/uZYEUiAmoSm14tAitiFtjCKHF+4nFGkISwgLvE9ynXmUBsFgFViUdL 1jCD2LwCDhKt7duZIDbIS+xqu8gKYnMCxT9d7gPrFRKwlzh++Sk7RE0Tq8Tj3iiIXkGJkzOf gC1mFpCQOPjiBTNEvbrEySXzmSYwCs1CUjYLSdkCRqZVjGK5mTnFuempBYamesWJeSmZxdl6 yfm5mxghAZ25g/HuE+9DjAIcjEo8vAoBTRFCrIllxZW5hxglOJiVRHhfVwKFeFMSK6tSi/Lj i0pzUosPMUpzsCiJ87rd+xImJJCeWJKanZpakFoEk2Xi4JRqYBR8266cfMnpeQWTXtCVNZIf mdx2TOSJTW/p1Xz/2+HLy/tsl+a3zDKZ8yDd4Jyfws7Zi/3+nJ/GfXjyW99tNdUSF48c9uEV s46PYHrffd0l/Rf/7t1zlLc0rfi37Ejvd4F9XsZ771mYKkX6bpyRUhnLUzlZeX1CsfCmfU7G SoFqQh+mBR1Zy6TEUpyRaKjFXFScCAA1merIZAIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrIJMWRmVeSWpSXmKPExsXCtZEjRTejuinCYNIxI4uDP9sYLZ7vfc1m 8fL8B1aLZ4d6WSw2/G9kd2D1WLznJZPH+31X2TymrTnP5PF5k1wASxSXTUpqTmZZapG+XQJX xrSeXywFb3kqFr5oZWxgnMbdxcjJISFgIrFu1yb2LkYuDiGBjYwSdzdMYAZJsAkYSXx7P5MF xBYRUJPY9GoRWBGzwBZGiUMH14AlhAXcJb5Puc4EYrMIqEo8WrIGqJmDg1fAQWLWCjOIBfIS u9ousoLYnEDhT5f7GEFsIQF7ieOXn7JPYORewMiwilEsNzOnODc9s8DQUK84MS8lszhbLzk/ dxMjOBA4I3cwPp1ofoiRiYNTqoFxMftheSfxW6cPcZ+pzDD5u/yAzNlga57eAxE88hEWtdPi uzKWKiwUeCR9pGy9ffb0fQt7VjfLzL69y4ZjzdYf50049yYf4PJwLGaqPRtm3GPSZfVyZZ5/ yGMnm9T82s05R869r6iYXL5sTpdvZHEop9r7koTOEi73mmmm9RsdrM+x68585aDEUpyRaKjF XFScCAAaUASytAEAAA== MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(39450400003)(39840400002)(39860400002)(39850400002)(39410400002)(2980300002)(438002)(189002)(199003)(53936002)(305945005)(33646002)(54906002)(110136003)(77096006)(2270400002)(38730400001)(76176999)(50986999)(5660300001)(47776003)(86362001)(81156014)(8936002)(50226002)(69596002)(626004)(92566002)(81166006)(8676002)(2950100002)(68736007)(6666003)(4326007)(6916009)(5003940100001)(48376002)(2906002)(189998001)(356003)(36756003)(1076002)(106466001)(97736004)(50466002); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR02MB1422; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD038; 1:KFNdtvhP888/40KfSULsafL8hbMly4zN4Ok7Y9gL6jG1uPfVULnHnfx1IP7F1GQ6aakojJHBRyA8jIpeGQBAt1uO5lTtdD0FfaD3hmMAq6nv8O9k6ZdyBQlpsEynqQaE6YniUup3phGkQRGgkjCjKe861ETzHG4TSRcREESM4u8rrxMNlMDwGC9keFbzy8LE4rEy5x+kEu7ET+wzvC8aZW4gPcfw48ZUI+ZVxvQ9rEd2RQ1RBENfD5RbZVdw+KdJq/c0T9QjJD8PM/nknvmsaIGCXR5Qvc01SK7ZNHaeha4by++K1ldfnAE05+GlHtU98gB21qYPYmtXLtsuzuhpEhC/VV6/UuiGOl81ieHmt3vfC1my4cT1DJ/z3ojD+/n1dZO3URl8S+CPeVHll3bq91l0RocuUhFA/PNsuRinMNCa0Ighz9YdPL0MDaAgLmm2Mh3wNWkPxaIPLst2c8fDRkEbDftwzxVauGiKXmWlYE+dK291Xb0A1NM4Z6KeOPh4 X-MS-Office365-Filtering-Correlation-Id: 5cd8d76c-edd5-433a-f055-08d44177f75c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:SN1PR02MB1422; X-Microsoft-Exchange-Diagnostics: 1; SN1PR02MB1422; 3:3nFTbjFbj6w4Alc5p6baJkHhur4KCC3zaIcAhcUlCKNguJKNb77kzsYrJ1XpA4C56uJABqVIyYB+dTMarHfbWChVgvxdJm7dBpyxuMvPKechpszr7Ghl7QF1W9/En1M18ykj32YU0GPFBbUXkVumy4JI9HBqklt8YT0b5PIAi9oX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YCghk= X-Microsoft-Exchange-Diagnostics: 1; SN1PR02MB1422; 31:9gb/groseAf+UHw20goiOh3JZ6QFTQeawmqvtBQB1yAHo+zoaWY877bOR2UrxzYUcl2LBg+1Ti/3QjY2sFt5WVpYG0yfHaF50Eyg3cWO+Ac3PR5Bcy9NDMDTASFFcXeRmpSqFned3hrfAM3ghGjos0bKBh3S+GSPo1CrR6UQLa6RYQVvjMBl51dnGkQQTVefMDXVvjz/K+CFvtfjyFakkOQ1nuNesjn8NASMC77vQrz9hoMlhkSizfGsOmAz9+MnRElcITI/j8vVfwsBhLu6m0krzo4VcLCbshq1YR+4WDY=; 20:NPQcQOSpvQnBZrad+lstCceuoex1pzZj59fKXsVHAwn2xQwnzBhHgi9moKaNbYU+TMN4/5MWuhO8qrqGrXsnq/+zL85mazEdHVCjW05Zzz7yVQMnNUiwklHfO+BBN/ut+Txyapngp2LWhDIBvQbzx5U5VqBWUvkdVRvoiflSNlBHOgvfyy0l1iyDyoo1ADUF+wqoUdBG5NMUn8rBppMRznDFr0iqg6ra4yFtlNKxUeanG9Szt6WR4WYvL+5BV0ALtwt8uomuWPCIUvNsN3Pot6OA0exHSMhVZjNH/HzrvPkad64boOQ498uT86M50UtVfL/1etxivZRr+toJ7UnZ6Emi/k7vNHqk7R0bNgSEOwSyYsDcSMp2kWNA3whWX04ux5XX0lZlI/0w2iUd0v2SM5G8I/yBZPbkXWaUlvUfUx/jcZQyy0Z7qrCVMVhoKbvVU1YLc5gQjbeT5j+pH59f071/w1QuxyQlszR+Mrt+ebn+ZBSFzvUlqT31zFtd4PD4 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(42932892334569)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(13016025)(13018025)(10201501046)(3002001)(6055026)(6041248)(20161123564025)(20161123555025)(20161123560025)(20161123562025)(6072148); SRVR:SN1PR02MB1422; BCL:0; PCL:0; RULEID:; SRVR:SN1PR02MB1422; X-Microsoft-Exchange-Diagnostics: 1; SN1PR02MB1422; 4:itaRwzpRZ7lDkfw7IjOflR9NRnAog1k/LrQAcTg2FUBLuYvmU+QEUyGfBIXTkNalhaKTouf5Z/L9sfwrDE8gzmWXEjKsInyuEWnDPuu7CsbE7sxP8UpFIFFauul73E5mAj5/K5rUdV0YeP2qzdidrYxs54yJim/yZ0xLGe3U55Qnrh73pdayjiATc13POOozu4+IV4uNMQjBtxTm2lNes31sBbVNTClAFA+1gjwMcte+k6ePIyn65pJr4qd4bn8ol6zzLVAyykh5lZR0aQ0qwNZd7Ec8GrBLdrOkbBMIaMqELNRaSAhjsqY3mIXfaFwCcCmDK6v+zaK+HhIOUgJY1QWMDNIxTkDPBdTPqgQkRc//zlxr5QqGFh2fA1u0K12ZYIm2jhTM7QrzEQ2MTWjlY/hKlYAa4BGHWw31yAqchM7ITJgXv/Jpu7ILy2ZkcSjsdlx/I4nq3aVY7uVg1NGNA9bbDRtq4pfkOw1FNtlW0b63/d3ffqpF3Qa5LQCZdE657WmwEB0Et+N3aAk7o3iNWOeCUWYvBe4cuBJ7L+GJvIGgn+lQHt9VjxBrhrPu4xHK1kIw5XM3LN0nw1/SUAsoXsmzljjJw58wXhwJHa2pbmgvjAz2+EgOmSBHx8Fn8pCM4pEoOxHW19Ebq4vJtcHwI+sXF8h+IdFuA8JxNCQydmDBvi55H9vgRb700acPUrS2A6ewLFNOs+7EmOcUUB37wg== X-Forefront-PRVS: 01930B2BA8 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR02MB1422; 23:FriKCnhPbYzK7Ix4hKEztuYnz8rWLxFwhkudOHuOq?= =?us-ascii?Q?Qd4mBNrUeiX3QWdruTyROKAwmchFyPBgO2LcKBbx3pVoyYpfonPBu79bTdwh?= =?us-ascii?Q?HW/lpIPPWnobytKeoGeneD7LUik3tJxsojvecjW7Yc82EkXqfqpZqIVciAk/?= =?us-ascii?Q?6aIvo2eeqo016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24LEJQrzO9p6ZznkgY+BHkuIueJzDoEDELiKqoukUjwy26gOolJfRgeVvHu2lhqxHz6rKGoNcrcl3fOn/gN92OLwYBcJPoiLRHeZ6Smto/A411Y3kIY0rWhZZHp/EIpaeZEydoWzt87ZRm4dZlAa1lZix5+7ard5zXVwmr1K7tqEa6ewUr8qcMRvLHjpH+hR3yxwD6aHeq46cHZXeQsaWuwEW2NUsP9rfw2422DvIzSTmmBi6dlzX1+I3/8Eet0T1Y93+KF6a7Yag25aGu2934Aq3SRnMOG/33T7TLyG+KPflUGm6EY2I6U1lln9MpKmFMFqyIkTYTfe7NCMPBlu8SLs3zXI1vJayqzL1FJUamCM2wNDeSVo/Bi3okXhidF0ExN0ZT/BJB6m+Y1XaebzlsZkj2mclW9h3hrG1enw== X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2017 21:04:47.2747 (UTC) X-MS-Exchange-CrossTenant-Id: fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d; Ip=[63.163.107.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR02MB1422 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Prepare for removal of ib_device.dma_device. Signed-off-by: Bart Van Assche Cc: Mike Marciniszyn Cc: Dennis Dalessandro --- drivers/infiniband/hw/hfi1/mad.c | 2 +- drivers/infiniband/hw/hfi1/verbs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/hw/hfi1/mad.c b/drivers/infiniband/hw/hfi1/mad.c index 6e595afca24c..09cda3c35e82 100644 --- a/drivers/infiniband/hw/hfi1/mad.c +++ b/drivers/infiniband/hw/hfi1/mad.c @@ -4406,7 +4406,7 @@ int hfi1_process_mad(struct ib_device *ibdev, int mad_flags, u8 port, switch (in_mad->base_version) { case OPA_MGMT_BASE_VERSION: if (unlikely(in_mad_size != sizeof(struct opa_mad))) { - dev_err(ibdev->dma_device, "invalid in_mad_size\n"); + dev_err(ibdev->dev.parent, "invalid in_mad_size\n"); return IB_MAD_RESULT_FAILURE; } return hfi1_process_opa_mad(ibdev, mad_flags, port, diff --git a/drivers/infiniband/hw/hfi1/verbs.c b/drivers/infiniband/hw/hfi1/verbs.c index 95ed4d6da510..2c9efae72972 100644 --- a/drivers/infiniband/hw/hfi1/verbs.c +++ b/drivers/infiniband/hw/hfi1/verbs.c @@ -1784,7 +1784,7 @@ int hfi1_register_ib_device(struct hfi1_devdata *dd) strlcpy(ibdev->name + lcpysz, "_%d", IB_DEVICE_NAME_MAX - lcpysz); ibdev->owner = THIS_MODULE; ibdev->phys_port_cnt = dd->num_pports; - ibdev->dma_device = &dd->pcidev->dev; + ibdev->dev.parent = &dd->pcidev->dev; ibdev->modify_device = modify_device; ibdev->alloc_hw_stats = alloc_hw_stats; ibdev->get_hw_stats = get_hw_stats;