Received: by 2002:a17:90a:88:0:0:0:0 with SMTP id a8csp4560935pja; Thu, 21 Nov 2019 21:53:43 -0800 (PST) X-Google-Smtp-Source: APXvYqxr+TA10k+Sa4F8Xv/nzqwKOxwvrQ49pl0vyvBnuDYogf0Pf0lVs0DykAlpAjT2lA1j4aYT X-Received: by 2002:a17:906:d793:: with SMTP id pj19mr19556615ejb.303.1574402023587; Thu, 21 Nov 2019 21:53:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574402023; cv=none; d=google.com; s=arc-20160816; b=j1GTt21sTlPnq1xiI4tYnioOA7OusWqYvA1ZY42Ysz+KEDRdrFzkKurBmghSwq3eSj ye8yRa7OlLD3pVXL47oMelXOs8Czz7Js8+cAlxiwp8KJo+zMIAwsr3LkaY2y5VCmLUE1 Rje9E1lJX+oJThR9stCEsmYQMdC+AigcvypzIuRCkeDJDUTxgzhVsN4tSXpD7SoJ1R3D IAWaj++1CzDkQ6KDKGDC6m1yxYxmnLiyIUWhrw/UhZ4chflyQ/pENd2odB21T0WNCABL erjKwiL3BfIIBQX2uW6gzZ+YFnRaX693qPDuGJO/xDtqjzzpHTcYEeJYlBf9YjZZUyXT JmAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=NkB4Luwu2l2ZprljlAMeFybfy+mW+q2EiEG5Fbu4do8=; b=DX07B8r2zZ1LTkS+/jvnv/82nsKymC+2V4IZFeibyympNp8XFAiREofssAkLp/Fa4C noT2YHfDb+H6N62Im5iDemCuwyCv5JZq8K9u2rGlEFakN5+mxF5JYRbNyi8HlO0pM6Iq nF9R0yDnu4r1x/MpwTc6H6lgMX+Dc7aaEA60RZDgR93wXS4ER1EpqOfMf/TCxMGW4+0H KjFYIAtFvvz22yZnZykZHs6iFg+H+OBG4P/tJfiMJCS38sHhA/jT0ty3SjaLalxRa8/i EPhYbnxCo4T1xhQMCPS+bgRvtUqzZ6FGJQf69KVfvlHHVDl4WPFlhptKETBy4BHuDpmB pRqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tqHlGVeT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m3si3804535edp.357.2019.11.21.21.53.20; Thu, 21 Nov 2019 21:53:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tqHlGVeT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726792AbfKVFvb (ORCPT + 99 others); Fri, 22 Nov 2019 00:51:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:56342 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728091AbfKVFvU (ORCPT ); Fri, 22 Nov 2019 00:51:20 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E3F4A20855; Fri, 22 Nov 2019 05:51:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574401879; bh=lNfL3J5Jv4t6e3+pymIv4mFUXzovMgP8gXFma0Mw6yI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tqHlGVeTNZmGcMHPn5lbl52LyfIDvc0OHTmP6SCKKMiZCRmFEluBeDLxDHrJGh3Lw 6+zLh6j6SlcYu4cGBF9vlUZ/IBQoH2NYqGU6OuIJOnU8vI2YOQy3z4un9qN4h3gYv5 ERoLvdMMm6qNYCc2tRYogdg1jCggZgEyovD2pKVg= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Varun Prakash , "Martin K . Petersen" , Sasha Levin , linux-scsi@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 114/219] scsi: csiostor: fix incorrect dma device in case of vport Date: Fri, 22 Nov 2019 00:47:26 -0500 Message-Id: <20191122054911.1750-107-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191122054911.1750-1-sashal@kernel.org> References: <20191122054911.1750-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Varun Prakash [ Upstream commit 9934613edcb40b92a216122876cd3b7e76d08390 ] In case of ->vport_create() call scsi_add_host_with_dma() instead of scsi_add_host() to pass correct dma device. Signed-off-by: Varun Prakash Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/csiostor/csio_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/csiostor/csio_init.c b/drivers/scsi/csiostor/csio_init.c index ed2dae657964b..1793981337dd9 100644 --- a/drivers/scsi/csiostor/csio_init.c +++ b/drivers/scsi/csiostor/csio_init.c @@ -649,7 +649,7 @@ csio_shost_init(struct csio_hw *hw, struct device *dev, if (csio_lnode_init(ln, hw, pln)) goto err_shost_put; - if (scsi_add_host(shost, dev)) + if (scsi_add_host_with_dma(shost, dev, &hw->pdev->dev)) goto err_lnode_exit; return ln; -- 2.20.1