Message ID | 20170120210437.26389-15-bart.vanassche@sandisk.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show
Return-Path: <linux-rdma-owner@kernel.org> 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 3CC1E6020B for <patchwork-linux-rdma@patchwork.kernel.org>; Fri, 20 Jan 2017 21:21:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2E4CD286CF for <patchwork-linux-rdma@patchwork.kernel.org>; Fri, 20 Jan 2017 21:21:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 232BC286D4; Fri, 20 Jan 2017 21:21:25 +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 A008E286CF for <patchwork-linux-rdma@patchwork.kernel.org>; Fri, 20 Jan 2017 21:21:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752291AbdATVVX (ORCPT <rfc822;patchwork-linux-rdma@patchwork.kernel.org>); Fri, 20 Jan 2017 16:21:23 -0500 Received: from mail-sn1nam02on0076.outbound.protection.outlook.com ([104.47.36.76]:27653 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752244AbdATVVL (ORCPT <rfc822;linux-rdma@vger.kernel.org>); Fri, 20 Jan 2017 16:21:11 -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=vNhc1XOyMmHqJMCMx2HpoJCWTYBU2c3FnC5eSZcpnIo=; b=oHs+WM/o2jJ0YT8nlMZ8TC4WmMzv6NVeUCLHQpyCcB7YFWW6gBeKH8z+IWs8lH6VyZ+Mw46OoU6R36Shm3K3GesDRidd7+zrtmPelkD1fYfnmigbNf2QsslZX6L5CaAS01N4s62AIt6RIkt+0jbatofnrxF7zPHico45U/FZYkQ= Received: from BY2PR02CA0012.namprd02.prod.outlook.com (10.242.32.12) by CY1PR02MB1415.namprd02.prod.outlook.com (10.161.171.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12; Fri, 20 Jan 2017 21:04:48 +0000 Received: from BY2FFO11FD012.protection.gbl (2a01:111:f400:7c0c::180) by BY2PR02CA0012.outlook.office365.com (2a01:111:e400:2c2a::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12 via Frontend Transport; Fri, 20 Jan 2017 21:04:47 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) 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.225 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.225; helo=milsmgep14.sandisk.com; Received: from milsmgep14.sandisk.com (63.163.107.225) by BY2FFO11FD012.mail.protection.outlook.com (10.1.14.130) 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 1E.C8.01420.04972885; Fri, 20 Jan 2017 12:55:28 -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: 0ac94371-7ee9b9800001058c-54-588279407574 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id EB.33.16817.86B72885; Fri, 20 Jan 2017 13:04:40 -0800 (PST) From: Bart Van Assche <bart.vanassche@sandisk.com> To: Doug Ledford <dledford@redhat.com> CC: <linux-rdma@vger.kernel.org>, Bart Van Assche <bart.vanassche@sandisk.com> Subject: [PATCH v3 14/37] IB/core: Use dev.parent instead of dma_device Date: Fri, 20 Jan 2017 13:04:14 -0800 Message-ID: <20170120210437.26389-15-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+NgFjrELMWRmVeSWpSXmKPExsXCddJ5ka5DZVOEweLtihYvz39gtXh2qJfF gcnj/b6rbB6fN8kFMEVx2aSk5mSWpRbp2yVwZSxvcShYKFxx/egt1gbG3QJdjJwcEgImEt9v 7GTuYuTiEBJYyiSxdd02KGcbo8SfvTdYYKrePDnCCpHYzChx5uc5NpAEm4CRxLf3M8GKRATU JDa9WsQOYjML+ElMOdEEZgsLuEv8azkLVsMioCpx9cYkVhCbV8BBYmZHAxvEAnmJXW0XweKc QPFPl/sYQWwhAXuJ45efsoMslhB4zCLx4tgNRohmQYmTM5+wQCyTkDj44gUzRIO6xMkl85km MArNQlI2C0nZAkamVYxiuZk5xbnpqQWGJnrFiXkpmcXZesn5uZsYISFbuIPx9W3vQ4wCHIxK PLwKAU0RQqyJZcWVuYcYJTiYlUR4XwMDXog3JbGyKrUoP76oNCe1+BCjNAeLkjjvxeiPYUIC 6YklqdmpqQWpRTBZJg5OqQbGtFSDxc4RvTeaGq48ZNC95F2fUHmw7aTOAjsTZS/md27PNi35 sCOWlbeDm4P1St2sBWbHymbrqpi+/C46v09D9d/5U5UeZed9635JhAqcObc5it+p3WLOBb3s rVdndUXvz9Ptr91T8LJN4FBSZUN5p4dDtsX1/+wSKmey9PMFOMpmPpj8WUqJpTgj0VCLuag4 EQBZad+EVQIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprIJMWRmVeSWpSXmKPExsXCtZEjRTejuinC4Pp8XYuDP9sYLV6e/8Bq 8exQL4sDs8f7fVfZPKatOc/k8XmTXABzFJdNSmpOZllqkb5dAlfG8haHgoXCFdeP3mJtYNwt 0MXIySEhYCLx5skR1i5GLg4hgY2MEr2TjrGBJNgEjCS+vZ/JAmKLCKhJbHq1iB3EZhbwkzjb 8g7MFhZwl/jXchashkVAVeLqjUmsIDavgIPE4+YGVogF8hK72i6C2ZxA8U+X+xhBbCEBe4nj l5+yT2DkXsDIsIpRLDczpzg3PbPA0FCvODEvJbM4Wy85P3cTI9jTnJE7GJ9OND/EyMTBKdXA ePho8MHvE9QWbV+v39NYEbfm7820z+Yhwv8ls5bmSjRsXVcz63Lxi9TcyELRXRq97tqfPmpf YzQ1zwmuktnlIZTBVztl8rSTH44FqJ4/k9XOd7TU6ImBpdRFsRunf0SHMOmcihXj/tMhZ3l/ 3rsPdie3WO98pPHqYuz7GUkf7vEKK0qEXe7cqMRSnJFoqMVcVJwIAGqjNECkAQAA MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.225; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(39450400003)(39840400002)(39410400002)(39850400002)(39860400002)(2980300002)(438002)(199003)(189002)(8676002)(2950100002)(6916009)(6666003)(81166006)(110136003)(81156014)(5003940100001)(54906002)(107886002)(305945005)(8936002)(5660300001)(626004)(97736004)(189998001)(53936002)(36756003)(106466001)(356003)(2270400002)(4001430100002)(76176999)(92566002)(50226002)(86362001)(575784001)(1076002)(50986999)(69596002)(77096006)(47776003)(2906002)(48376002)(4326007)(50466002)(33646002)(68736007)(38730400001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR02MB1415; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD012; 1:ZyjJ+j15G0KeOkKo5Y+3IrGNGm38AgBqg8KTQFkgHFk5DjrlCoWZw6ABzvhkUgA7C9bE2SjU6WeqRb7Ss3VbaX61J8Fvv11kErzx6MI1z8lY26DVXAXM+ETUBdAadiqvi/PfrZNoymYJeQWJe/LbcNjU0lp7GHCqLqncYhJTbiRcAubMLynJ6pbHFr1OpXSxOovuzK0nMYLXGlZUeI8TM9vIH81NtKxa7CBMULdy8qr1ZMbDMr7DsMVojGgA0g5P59KcRSScy1PCN2XfvIQLaSqjVDfnf5ArPyzcH5pwbh9ezQp3zz0KvkSDUk86KmO1+KY3EMhe3JG/I2hBOxMSbwNVp84rMdeFu+z01+pd86hunx6N7ZOlX4PALwkpmWimzJSaoRBhK5nsO0VypHl8UQr7XmfBrMF+5LkQAqohPZIoti9Kh9H2NR+36Ojx48cgWd4oOLwn5thCDHOM+VFK5Q== X-MS-Office365-Filtering-Correlation-Id: ea81607f-52b5-4d05-f8ad-08d44177f79a X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:CY1PR02MB1415; X-Microsoft-Exchange-Diagnostics: 1; CY1PR02MB1415; 3:t0xYDC77S4/XFI+dx4rQtqz5eY8LF5k4tdEOosIMr4dmtq3kQGysvxmMUPIfFuBORyPGnOFIkFTOvulQX48S0V02CH33ZZ5nUK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L9gJHoow4Z8XhCAR3+B4bDEB9rldJPcHoWo00Xzb/YuczMHe9eR1+7qdm4vYEF1K/6QTZRdwW4+ujLmtqGbyyuLdZgEb X-Microsoft-Exchange-Diagnostics: 1; CY1PR02MB1415; 31:K07pBADvRyDMY7PLnXEgOy6Aw20M4lL/f7SDtwOWDypZMR4eQn2eklBYm7LG3OffbIDrCt+OAJDgjL3ci8UNtNsq9GgSCVPd4fMWpsFYF6CXWBSVDarDo9Yfx1pSpG35jpMHn9pWZaohpSBa+aYCJNri9ZZRvD9oTg+6EYsrq/6bcrdeo3bRt/Ix+ID6c+f5QVhi/+l9h/H+U9zc2UNQhQxbw3+E1aOlYzraYlZ2p1mgedYJKUuoDjmEg1gL25JmtocuX5Y5PQ5AQI4OvGansA==; 20:FfXs0tg0HodYFCh+gYaHgP0C2XkPPZomX4z8bKFiNl/pTC864ki/O5bL4HRb09CdMLtKY/rMLoaz6P6HSNzInmB5lVDwOKiJk3cK7mGBOCncZh2+JQy2cNwm5QPkLiJ0L02kDSuVdD4do44X3PhLumDRjG+YfUWdksCYw7fh17SGR7vv3qJOep5FkHAF75t8lp4aMaRoAIed66qJhCc06MzzwpOgGGqad9dIiCo+OnZgvf9Cp9Fkl4zp4fNfgObIyUo4/ZsmwBv3/XoRzI5vzfKyR2fBeTypF/85+iF6bKxpf+09e63B6jWyOUmf5yw+92ZCaFMu9Gzlr2z3tGkTIcvyZCyWvFkgguzNiizKGKl+pteNTbF0dB7/uv82kJGlidlsJXZYsXuysG+nn+wwT1/aewkGXj3WnpPhRcSpmY1I6SP6c1j6WuMlQGj3ESRYysec1jdf123m4x31q8hGquFYWcpLJXMeygxCADC15VAS/qW8dyJbxNxUoorjhdh6 X-Microsoft-Antispam-PRVS: <CY1PR02MB1415305047CC7BDBAF6F533E81710@CY1PR02MB1415.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(13018025)(13016025)(3002001)(10201501046)(6055026)(6041248)(20161123562025)(20161123564025)(20161123555025)(20161123558021)(20161123560025)(6072148); SRVR:CY1PR02MB1415; BCL:0; PCL:0; RULEID:; SRVR:CY1PR02MB1415; X-Microsoft-Exchange-Diagnostics: 1; CY1PR02MB1415; 4:10yckNVQcrXFUUorcAVVViRAGldCf3a+v9xxc2Rvnc+VB1smr5e84Mf1IS8G0oTyEEJNfqiKDrdKYMnJQ+7F3eCda+06h1IK2SNDd4h6bWpMzctB+RJOr9ScyxekKqWGxU93hwsBk3auj02v23UVgmcE0iLRgIjDy8No9IU2Dxds9Ug8UvdQ5bGczDtJjdL+1g1afBdYTUUDOaJDg2Pu0kQEf3duJESHxhPeAmUvm5fbfDO9gor0tT7l9jzJKp3FyDufhdbjhgGYai4he1ouNdRrGEzkyBe8QuB8sCPpqToZK9JiV+4CRy+dTSrnGI1g4lwUzK8OOONhsd6khF5xwHjHgCs4SbpAhfYK8YDkWVDzfyElEt/7t3my83d4+e3vslvT6ZqN2xDw9H/0kEHDVm25vVfPgXXrqJifHDJh3NzSZFB1yT+U5scXI5Pv1WkssIr5jSG90IfDwXYmaghPdX72JeLKP/cgkNuVxfvcBNqgHU/RFhbJxMVhuCl4sJ7CSNCa/24HzL7XniYV0aXmPHdD0CunEColONYQ0b/kAm+01yJK/KCIJxa7gUI7pObb5R3GHbFS49xkiplJeEN9SfRzB2XnesNv6LBZVmc7bwLimevzuO8GodYu5JJh1rJoOFXGbx3xeXPZbYmzUrdAVZsKCUKBEwivBNLnXrXLseLn3z4eSSXk8BJpdB1Gc7h2/tv5Jl0PAzev3XJsDilBug== X-Forefront-PRVS: 01930B2BA8 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR02MB1415; 23:u9QTVaKW88Ix+CuminpvDSYGiUSLqB900pQi7qloS?= =?us-ascii?Q?vL1Qj+MSh+Ixed1LEN5pJnIIVwYFIkBeOf3K6cPC81kMT5h258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0yNSS3CLel4ayTKWs6GkeHzqYMHbSrNTpYNbLhfmJUe454lAhUJPCBKJhfxZqUyCw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR02MB1415; 7:1KO0yEMYJbA2f+MR7C4jPzTpgq2cSXYq9Zyc3Zwn6e/CPio5YEHtgfMPYPqHKzo9EBW11UcCFb0zSeTxWXXuN4TcFLkeOGZza84zsVMbVEBB5uxLGYrVl9X/0NR5n6uG63qfZW1F2lev+Xd7ZOoUi1RLMDRsCn2bgBcGG8ZO2k5kTurc2JrFJo/z/JqA0AXYNFouscBD5gn0CfTQFsBAfK4u4SSqBijOlwwTkngb9fVqTMmr4/0973wNV8xYrPVxzYDQAkKsEKCoZ4XhrSpHPexgxZuThCu+nMsjbPjp7+6quDd3jspZRBu6Rjtij0xopyBzJq60MuGZ6QlXLnZGHG9AhC5faoF098MiwTlYM7brefhUfIT7sHFPw88bh0o0Zlho1C1wLPzPjYHa9QLVLTqygLJvQ0fjrV0PMi0LxllXMWMZVsxpd2nDXDRiXMuJd9JNfvG1YMrXMak+4Lh9Kg== X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2017 21:04:47.6812 (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.225]; Helo=[milsmgep14.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR02MB1415 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: <linux-rdma.vger.kernel.org> X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/infiniband/core/ucm.c b/drivers/infiniband/core/ucm.c index e0a995b85a2d..cc0d51fb06e3 100644 --- a/drivers/infiniband/core/ucm.c +++ b/drivers/infiniband/core/ucm.c @@ -1290,7 +1290,7 @@ static void ib_ucm_add_one(struct ib_device *device) goto err; ucm_dev->dev.class = &cm_class; - ucm_dev->dev.parent = device->dma_device; + ucm_dev->dev.parent = device->dev.parent; ucm_dev->dev.devt = ucm_dev->cdev.dev; ucm_dev->dev.release = ib_ucm_release_dev; dev_set_name(&ucm_dev->dev, "ucm%d", ucm_dev->devnum); diff --git a/drivers/infiniband/core/user_mad.c b/drivers/infiniband/core/user_mad.c index 249b403b43a4..aca7ff7abedc 100644 --- a/drivers/infiniband/core/user_mad.c +++ b/drivers/infiniband/core/user_mad.c @@ -1188,7 +1188,7 @@ static int ib_umad_init_port(struct ib_device *device, int port_num, if (cdev_add(&port->cdev, base, 1)) goto err_cdev; - port->dev = device_create(umad_class, device->dma_device, + port->dev = device_create(umad_class, device->dev.parent, port->cdev.dev, port, "umad%d", port->dev_num); if (IS_ERR(port->dev)) @@ -1207,7 +1207,7 @@ static int ib_umad_init_port(struct ib_device *device, int port_num, if (cdev_add(&port->sm_cdev, base, 1)) goto err_sm_cdev; - port->sm_dev = device_create(umad_class, device->dma_device, + port->sm_dev = device_create(umad_class, device->dev.parent, port->sm_cdev.dev, port, "issm%d", port->dev_num); if (IS_ERR(port->sm_dev)) diff --git a/drivers/infiniband/core/uverbs_main.c b/drivers/infiniband/core/uverbs_main.c index b3f95d453fba..e3fb4b1af1ad 100644 --- a/drivers/infiniband/core/uverbs_main.c +++ b/drivers/infiniband/core/uverbs_main.c @@ -1174,7 +1174,7 @@ static void ib_uverbs_add_one(struct ib_device *device) if (cdev_add(&uverbs_dev->cdev, base, 1)) goto err_cdev; - uverbs_dev->dev = device_create(uverbs_class, device->dma_device, + uverbs_dev->dev = device_create(uverbs_class, device->dev.parent, uverbs_dev->cdev.dev, uverbs_dev, "uverbs%d", uverbs_dev->devnum); if (IS_ERR(uverbs_dev->dev))
Prepare for removal of ib_device.dma_device. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> --- drivers/infiniband/core/ucm.c | 2 +- drivers/infiniband/core/user_mad.c | 4 ++-- drivers/infiniband/core/uverbs_main.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)