From patchwork Fri Jan 20 21:04:32 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: 9529431 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 A141360434 for ; Fri, 20 Jan 2017 21:06:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7DA842868D for ; Fri, 20 Jan 2017 21:06:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 729A2286D5; Fri, 20 Jan 2017 21:06: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=-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 5C87A286CF for ; Fri, 20 Jan 2017 21:06:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752202AbdATVGw (ORCPT ); Fri, 20 Jan 2017 16:06:52 -0500 Received: from mail-sn1nam02on0084.outbound.protection.outlook.com ([104.47.36.84]:56572 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752090AbdATVGB (ORCPT ); Fri, 20 Jan 2017 16:06:01 -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=dxxD8Am6ILU8jSwmVFTqNTbqspEbZ3RtfhR8yy+1D5I=; b=qBx8eOy1SoCYa6rM+RFvVOAedQvq0sDOtERU45DsovO8AX7uR1jK5OC7tIOAc7jCyc/4HBJxOMnTIK6wEpghLRBMDvrxV+HHtLvTtplxUgDpaQHpYlbOBX7kSapu4P03JMNd4dNsMOB0gXyATStIyzT5EhO70TUIInndQBvoYTk= Received: from BLUPR0201CA0039.namprd02.prod.outlook.com (10.163.116.49) by BN1PR02MB038.namprd02.prod.outlook.com (10.242.210.152) 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:50 +0000 Received: from BL2FFO11FD007.protection.gbl (2a01:111:f400:7c09::169) by BLUPR0201CA0039.outlook.office365.com (2a01:111:e400:52e7::49) 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:51 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) smtp.mailfrom=sandisk.com; grimberg.me; dkim=none (message not signed) header.d=none;grimberg.me; 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 BL2FFO11FD007.mail.protection.outlook.com (10.173.161.3) 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:50 +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 60.D8.01420.34972885; Fri, 20 Jan 2017 12:55:31 -0800 (PST) Received: from milsmgip11.sandisk.com (10.177.8.100) 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-5e-58827943cbca Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id C1.43.16817.96B72885; Fri, 20 Jan 2017 13:04:41 -0800 (PST) From: Bart Van Assche To: Doug Ledford CC: , Bart Van Assche , Sagi Grimberg Subject: [PATCH v3 32/37] IB/srp: Switch from dma_device to dev.parent Date: Fri, 20 Jan 2017 13:04:32 -0800 Message-ID: <20170120210437.26389-33-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+NgFjrDLMWRmVeSWpSXmKPExsXCddJ5ka5zZVOEweRz4hYvz39gtXh2qJfF Yt3r9ywOzB7n721k8Xi/7yqbx+dNcgHMUVw2Kak5mWWpRfp2CVwZ+5bvYSy4wVnx/NJ59gbG LRxdjJwcEgImEhtv/mfvYuTiEBJYyiTRe/QqK4Szg1Fi1a3bjDBVS1s7oRKbGSV2rL7CApJg EzCS+PZ+JpgtIqAmsenVIqBRHBzMAkUSP3+4g4SFBdwkVi9exQZiswioSrzf/5UVxOYVcJD4 tOs+1Hx5iV1tF8HinCDxy31gcSEBe4njl5+CXSch8I1FYvGdVmaIZkGJkzOfgO1lFpCQOPji BTNEg7rEySXzmSYwCs1CUjYLSdkCRqZVjGK5mTnFuempBYYmesWJeSmZxdl6yfm5mxghYVy4 g/H1be9DjAIcjEo8vAoBTRFCrIllxZW5hxglOJiVRHhfA6NAiDclsbIqtSg/vqg0J7X4EKM0 B4uSOO/F6I9hQgLpiSWp2ampBalFMFkmDk6pBkZFPmXjs4c5A8sep9/MPm8+OfXlU9WPl2cK Xnjpl9C786/YFBk23pYrMYxn0uayXMr92bVk1rGf9+48VusuV5ozUXhO7EmzFTZ7Q779r3kb sOTEHPspV9YfbVv/+sCJ54tzahnL76wqL9noNyedoy/9eqOm2ffHX35MX/zGKuwxO88TBo/U +2waSizFGYmGWsxFxYkAB/xk/l8CAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprDJMWRmVeSWpSXmKPExsXCtZEjRTezuinC4OF/SYuDP9sYLV6e/8Bq 8exQL4vFutfvWRxYPM7f28ji8X7fVTaPaWvOM3l83iQXwBLFZZOSmpNZllqkb5fAlbFv+R7G ghucFc8vnWdvYNzC0cXIySEhYCKxtLWTtYuRi0NIYCOjxPPXk5lAEmwCRhLf3s9kAbFFBNQk Nr1axA5iMwsUSUw48JUNxBYWcJNYvXgVmM0ioCrxfv9XVhCbV8BB4s+5FawQC+QldrVdBLM5 geKfLvcxgthCAvYSxy8/ZZ/AyL2AkWEVo1huZk5xbnpmgaGhXnFiXkpmcbZecn7uJkaw/zkj dzA+nWh+iJGJg1OqgZHz6bq7aT3+/5MCZwRVctwNm3opbbHnZo2NdSkck8R89W3rb2xovxy9 R6742Lkssy21225m/D2xR1J4QYdmZhKvSIe3mu8jq72F4UsFnvHt2rlAN/xM+4brjwumloow c2VXL3YIqbcTPri/sPjRbEH3xk0zjhrG9bHMfifLE6vNEXpdv1e6XYmlOCPRUIu5qDgRAGP8 DC+vAQAA MIME-Version: 1.0 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)(39850400002)(39860400002)(39840400002)(39450400003)(39410400002)(2980300002)(438002)(189002)(199003)(106466001)(50986999)(4326007)(2906002)(189998001)(33646002)(77096006)(38730400001)(47776003)(76176999)(54906002)(5003940100001)(626004)(2950100002)(2270400002)(92566002)(53936002)(6666003)(1076002)(305945005)(68736007)(97736004)(69596002)(110136003)(6916009)(8676002)(356003)(48376002)(81166006)(86362001)(36756003)(8936002)(50226002)(50466002)(5660300001)(81156014); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR02MB038; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD007; 1:mNk65DbsOUfLqjR1otMRFVy0BmAAwPoCpUDNN/o9FeCsu1qPmAoNwqUsg1U9vhT88iOcCBifWExD+ITwyEr237kOUkcpuL+Sx94/c1wDVLMQXcYpUCyXIrbpulQUcYRdlscZHVlecjoz0pSbGtbkP0zYYNQZlaeoY275kGOYv4xV6q2GkZ6fSEwr9G2oyGUigSZvgWGSyzYwxwB9JwkyFB+N+aIuAn1v552lNVel8qlKFpuoMbi+m6jpIAToKn3yU4ZgIdltakAQB7YFnSce4E3iN0Zp96VmAEUtZk7eZ+jZCtulwrvjrslylz4NCJ4T2uaByjvioCOYCaR/18qCeLKKnX+xfJGw3qlARmL0hGYFUikibBN+PJGJG/w3S/1FAPGAu8JNN64ZjmxJR73wwvaWQhGOfAeCttTLHS6booNMzXX48lGsElM92fGR1a1rMp/+/Z20Ywmn6Urec8Ju5vnRb6xCyVCjkI61UfnpdZ+hmoM2eQ2b4z4EJGK1x+mP X-MS-Office365-Filtering-Correlation-Id: 9c1d28c2-b1e1-48a6-d534-08d44177f93e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:BN1PR02MB038; X-Microsoft-Exchange-Diagnostics: 1; BN1PR02MB038; 3:bKAyoc9dEmkhgGcs5UoEirSxz6UfPa56I58Z0njSM9GD6q4/6nFn3jDV7LY6VD7vjNhY8y2DclU8kbUqt3/W1zKYzyF10r+PeSQH9vNmUmTBxlPrX4BfJPKmqKKJNSUD/VIKmor4jOI452z+HpEIjQlk/eIeJxQwOiNA1NBHCFzMMWwlt5brsT5I8gCQz0HxSp6KrVwP201k4cwdznZO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LYhlV2UxQVBFkJSOZXOI4s7g1vYHmQCi7XBsvccHP6FWRS/AE6qN7Yn4yNHecijOKPzbfTJ0NqewGr+DO8/BTZLJsJUgyoGzNtHnZ+2wY5YL64eSymkwlp7RYQg9P3vuqGasFhW8auMdy0xt111dhqHzu1yc14umWjZWvYc1BmG1Qu8+KdqtA+2ZssvOJdSBFU0aWk1bMXSRaxqrCOnD/cO0pMUuUQREFbKdFgxBBb23+wYUC4cn41nuKwsWfZAdkgeodDmcHl21NhJE6B1td1nnhLCZNneXQHwPWEkyth8oyX6FIiwN0eO51NEozuv6IxzhWjPpBfZ50FAWjRIYRjc3raEIlBCMhsnxrJF1z2AshCfK6ld0usthKmfkYD1LuBlXhbT7/JqStCxcEZZfS9OuoVLql00WGz8k3vw8g0B20XTeE9dEscM1foi+9npFn X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(13016025)(13018025)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123555025)(20161123560025)(20161123562025)(20161123564025)(6072148); SRVR:BN1PR02MB038; BCL:0; PCL:0; RULEID:; SRVR:BN1PR02MB038; X-Microsoft-Exchange-Diagnostics: 1; BN1PR02MB038; 4:TZMYv1H9VWGz+knlFTWdaguv9S0BqA0xUT6WtFPCFm8t5IGPd5SZZzes7hzEqMFwLrAg4T1ZKHSmM563X6OxQioQwVENByDC6wz3xGjj5tVxcWuC9QK349VFoTLCX5GO7wYK+KRKdkEzvo0VA5WYDWgX3fCc8QhtXWm+MGgtOWS8u4YbUhnbpwZ8IlmnuhNVpZjJ3ep/iI8EQkIQpADw1UPHn/FWOKIL3AMtnqSfrs4Orc5Lvol1ptdB0SzD0JSm5mTCvbHBW4Pep3IaLK8IfcYSzaPlycvWcZRsGJPi/jNQwFNITvy3hqyA0DqLWr6wWBlW5m4FqRfWjK2mWYGRm8Ik95bACQutEnrg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OZnaHVFc+3Dg+z2HzUKnMiEplXN4SlVJyVGNZbTeUfr10ta8h0sfxyrk3bvtxWUSZKqYpSBeoM0dHcrICkYaUS5kkFXAq4toojPPAwzP+xwwoaSySs7shTpzwBWwIgGlj5Hy4cO4tAIrIU2siWjGLcLi0ZQIF72kP8HeBwn7JQ4f5b8duaP+3MLgpbHNGJl8/VkWSHFzKic3/bQPQ==; 5:weJ+E4pji/3ISUKb4wrAB7MZ9zH+4hz8OM9NfPpALKcmRYZxRmAc6//Ktsob516va93WYuTBCMusPyjEi1TlVcPZ5CsUMM38a255815WYZvrcvlOZxfgzc3JNB/L+Ztfvk40SGplb3+LPVHo+P8Beg==; 24:+26spp0TCMQAD/In6H5tUKXgjdCAEdLmuKF00wvg/UTrgY/vA+jpOyvYsrawE/acb6ivxpE1ARnJ0YgmRUnFC1C0AR/ZiZOOsStR1Ix2B6A= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN1PR02MB038; 7:sL2nNXUFZUQrnyuHd4lT+DncliI0wVH9oDdl9t9s/GLiZ/nNb2xdcsFQwxdpm+rUgvQ1+9WkkuuTyqwmzf9LF9PJLbIT5zyq1YsPCQ+fnJArMMun53xKiwmt/6CcWdnoH1BYpeRxKv95C+FZqkjtvE6RnbaoWY6VCNckJwtSK1nRiSmFfPxn8XNC8lA0h0mKzRvJD1m0I+jZIQCO29oCTxoxZqC2ScVeGskCFuYA0jGa9Qc3RFMi+7XgCKbb7Haa1qUoByJ5kU16ybZrGH0zIz/wuHwjT3BXyH1lA9eRwQAbU6JrN/F5LuU0FDXrP8gURXhjP8YCNzHZ3j4+9nCoCPxvxGCFgl6nvMFGLvHmr6sqdlTxnqUgji0FWJcO2wPTcikkK7Z+mtwzry3HfxcP7QtmdnkHmh0FVXuivk6sSyPcXtTDOk70E1pbkCox6msTSnQbkODUjeI2qEiIPxeYRg== X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2017 21:04:50.0896 (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: BN1PR02MB038 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: Sagi Grimberg --- drivers/infiniband/ulp/srp/ib_srp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c index 8ddc07123193..64b33d69b874 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.c +++ b/drivers/infiniband/ulp/srp/ib_srp.c @@ -2904,7 +2904,7 @@ static int srp_add_target(struct srp_host *host, struct srp_target_port *target) sprintf(target->target_name, "SRP.T10:%016llX", be64_to_cpu(target->id_ext)); - if (scsi_add_host(target->scsi_host, host->srp_dev->dev->dma_device)) + if (scsi_add_host(target->scsi_host, host->srp_dev->dev->dev.parent)) return -ENODEV; memcpy(ids.port_id, &target->id_ext, 8); @@ -3515,7 +3515,7 @@ static struct srp_host *srp_add_port(struct srp_device *device, u8 port) host->port = port; host->dev.class = &srp_class; - host->dev.parent = device->dev->dma_device; + host->dev.parent = device->dev->dev.parent; dev_set_name(&host->dev, "srp-%s-%d", device->dev->name, port); if (device_register(&host->dev))