Message ID | 20180911084805.4802-3-Viswas.G@microsemi.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show
Return-Path: <linux-scsi-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 452DC920 for <patchwork-linux-scsi@patchwork.kernel.org>; Tue, 11 Sep 2018 08:50:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 311A42924F for <patchwork-linux-scsi@patchwork.kernel.org>; Tue, 11 Sep 2018 08:50:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 251DA29255; Tue, 11 Sep 2018 08:50:22 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI 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 B8B3D2924F for <patchwork-linux-scsi@patchwork.kernel.org>; Tue, 11 Sep 2018 08:50:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726899AbeIKNsi (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Tue, 11 Sep 2018 09:48:38 -0400 Received: from mail-bl2nam02on0071.outbound.protection.outlook.com ([104.47.38.71]:16064 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726798AbeIKNsi (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Tue, 11 Sep 2018 09:48:38 -0400 Received: from MWHPR0201CA0033.namprd02.prod.outlook.com (2603:10b6:301:74::46) by BN7PR02MB5300.namprd02.prod.outlook.com (2603:10b6:408:2b::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1122.15; Tue, 11 Sep 2018 08:48:26 +0000 Received: from BY2FFO11FD010.protection.gbl (2a01:111:f400:7c0c::117) by MWHPR0201CA0033.outlook.office365.com (2603:10b6:301:74::46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1122.17 via Frontend Transport; Tue, 11 Sep 2018 08:48:26 +0000 Authentication-Results: spf=pass (sender IP is 208.19.99.221) smtp.mailfrom=microsemi.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=microsemi.com; Received-SPF: Pass (protection.outlook.com: domain of microsemi.com designates 208.19.99.221 as permitted sender) receiver=protection.outlook.com; client-ip=208.19.99.221; helo=AUSMBX1.microsemi.net; Received: from AUSMBX1.microsemi.net (208.19.99.221) by BY2FFO11FD010.mail.protection.outlook.com (10.1.14.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.20.1122.11 via Frontend Transport; Tue, 11 Sep 2018 08:48:26 +0000 Received: from AUSMBX1.microsemi.net (10.201.34.31) by AUSMBX1.microsemi.net (10.201.34.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1531.3; Tue, 11 Sep 2018 03:48:12 -0500 Received: from localhost (10.187.72.82) by ausmbx1.microsemi.net (10.201.34.31) with Microsoft SMTP Server id 15.1.1531.3 via Frontend Transport; Tue, 11 Sep 2018 03:48:11 -0500 From: Viswas G <Viswas.G@microsemi.com> To: <linux-scsi@vger.kernel.org> CC: <Vasanthalakshmi.Tharmarajan@microchip.com>, <Viswas.G@microchip.com>, <deepak.ukey@microchip.com>, <jinpu.wang@profitbricks.com>, <martin.petersen@oracle.com> Subject: [PATCH V2 2/4] pm80xx : Corrected dma_unmap_sg() parameter. Date: Tue, 11 Sep 2018 14:18:03 +0530 Message-ID: <20180911084805.4802-3-Viswas.G@microsemi.com> X-Mailer: git-send-email 2.19.0-rc1 In-Reply-To: <20180911084805.4802-1-Viswas.G@microsemi.com> References: <20180911084805.4802-1-Viswas.G@microsemi.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:208.19.99.221;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(136003)(376002)(396003)(346002)(39860400002)(2980300002)(438002)(199004)(189003)(14444005)(26005)(305945005)(48376002)(77096007)(54906003)(356003)(97736004)(47776003)(81156014)(8676002)(86362001)(81166006)(186003)(6916009)(2351001)(69596002)(2906002)(76176011)(126002)(36756003)(4326008)(68736007)(106002)(2870700001)(57986006)(478600001)(446003)(51416003)(50226002)(8936002)(76506005)(50466002)(476003)(2616005)(1076002)(316002)(53936002)(106466001)(336012)(5660300001)(11346002)(6666003)(486006);DIR:OUT;SFP:1101;SCL:1;SRVR:BN7PR02MB5300;H:AUSMBX1.microsemi.net;FPR:;SPF:Pass;LANG:en;PTR:InfoDomainNonexistent;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11FD010;1:QERUQYC7VWbaxKqbW9GgiwF3BSzYEa1TftJ8LWpTM24skQ9uxItei1jWEqWpptejKws7NUUj7Bj6RHA6vjmLokA3eD41vl28ypKZNyDaAMOJmXBVX+G/VO/8yuk4+g4i X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 486d1ef8-eafe-4073-7a78-08d617c356c6 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:BN7PR02MB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g3JioI9wGvKGRLKUXF7qNdJF245+8tkxAF2rh25Yrw2tCRAuqiKj1hFFdjphnFD7KzjxjOWVktZKJz+e5CsdtdqLNET87OMWGNnTMHbykaF5shrEnT5CM9v67KWIGXlvtlPMafkHW0qOt1YJV/1YzXMnCewz3VP9wOx/+yj/Zb8ChTzUHY86rNZDEwGKo22AaVHBxixc0KnsFsmFG1AMFPBlPpee+vn+64ODY5bENHKIE8DlwgE1aOtXV+c71/evD2Uwuj5dpBiVwiNMY3AIRqWayc4umVfMj5Ds11MhQYb2gg8AFftpG0mp/2skUoW+JqI30iKL+Q4MCzq3YRNghtdnxSST1+YE5GJgKZ7yBz9u1ULXRAYxQ70IH5AVAp0uBAmxqabZt85zBbMmb/grZuRSIUInEcAh0+zc9NbtgC9G54BuOKe2s0hSGgKgWMtDhH/PYaD5b5mapa/HD+GQqVPQ54GRQSYu0JHqaUiA6xb85o9MLi X-Microsoft-Antispam-PRVS: <BN7PR02MB53006526EAABEF14F6774D5F9D040@BN7PR02MB5300.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(131327999870524); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(3231311)(944501410)(52105095)(93006095)(93004095)(10201501046)(6055026)(149027)(150027)(6041310)(20161123562045)(20161123564045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699050);SRVR:BN7PR02MB5300;BCL:0;PCL:0;RULEID:;SRVR:BN7PR02MB5300; X-Microsoft-Exchange-Diagnostics: 1;BN7PR02MB5300;4:45KEXcI+x+u00ZhFYse1ZgaOGyKVj4VxIqit7RZAELzcnvyXCTH1nzTjK0iCbWO4jsjgJS1OULo6vXlHS8ryyDWXCstcvYWenkJNOUZ7KOm0ug56lhhDoc0mlkAr75hhIq4d/F8bHAAXyr2XcAbwwttqfIMPwX9D0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gunfVGTkfsfsPZvnGMjRLN9Q5gu5TkhaRHJa96q4XR36bFhyVwoT4YxZYlyCKQFXn37s3hmV4vK3zovCl+OPoIw/mJ5HfGROrOrjVnk0fAbMj0gPbE9tQW2ZsCAWhQL4JCVQzIUcVzPRQ02sJzdp2YzRHg==;5:V00IOQ7nSB2zW5YcVgomTvCfgY/2Q7Ony9VJUyt66kM7EP8rt7qNIaRhKgsp5mErjrTkEmT1lrg+XounBB8SaZQUZOjk06z1yVEyKvwh7142gvcipHsIx0fyXk1/t13sqfcES2IudzY/PDVlwwKFSOEhkpBW2bayCDJk5H+FeKA=;7:jxIhy75fHPVN56Jxb7WpCIhrKZ5rlJ9+qVwn0LFZ5S2Um8lLSsVJrDaMjHQhPXTFlEhydpxwpW08zQB2y/ebjxQyBRHsW1RgMe/02X389qOqvHysn579RUSueIxL9tOwP7jKzAzMtNbdI59bSw66Q/t+x+7D1Fd6pRiuIQ8eEcH2D/4yHcqSP201NvwBOLNgCtNQ6SEAr3fCcOa9G7Qw4rl4zCYxEl5pfsS/+wLbOLry8EAOpZMxBFAAgBO860zX SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: microsemi.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Sep 2018 08:48:26.0319 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 486d1ef8-eafe-4073-7a78-08d617c356c6 X-MS-Exchange-CrossTenant-Id: f267a5c8-86d8-4cc9-af71-1fd2c67c8fad X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f267a5c8-86d8-4cc9-af71-1fd2c67c8fad;Ip=[208.19.99.221];Helo=[AUSMBX1.microsemi.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR02MB5300 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: <linux-scsi.vger.kernel.org> X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
pm0xx : Updates for driver version 0.1.39
|
expand
|
diff --git a/drivers/scsi/pm8001/pm8001_sas.c b/drivers/scsi/pm8001/pm8001_sas.c index d8249675371e..e063faad66f5 100644 --- a/drivers/scsi/pm8001/pm8001_sas.c +++ b/drivers/scsi/pm8001/pm8001_sas.c @@ -488,7 +488,7 @@ static int pm8001_task_exec(struct sas_task *task, dev_printk(KERN_ERR, pm8001_ha->dev, "pm8001 exec failed[%d]!\n", rc); if (!sas_protocol_ata(t->task_proto)) if (n_elem) - dma_unmap_sg(pm8001_ha->dev, t->scatter, n_elem, + dma_unmap_sg(pm8001_ha->dev, t->scatter, t->num_scatter, t->data_dir); out_done: spin_unlock_irqrestore(&pm8001_ha->lock, flags);