Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2395202pxb; Sat, 25 Sep 2021 06:12:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXajfMtCa+j4tfSjgFHcxKWD9QCz2F9ILwg/3AJgPadBQrblgtc3rgpaA7qx4zcPpm1x8G X-Received: by 2002:a05:6402:42d4:: with SMTP id i20mr11378070edc.348.1632575529388; Sat, 25 Sep 2021 06:12:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632575529; cv=none; d=google.com; s=arc-20160816; b=aSpIr77VDNPVDidd+4guPrKMOd+c9smzQfbcwGo0AlPpoie/pyj6nKtoxzuHuSZq1r fs/+YzEadSCWguAXo/OM6NIoxDnA3aXhGK3HM6pgbneMAefyWOJu9qYgMiSIUjc2bpNn bg4xcUkf2pea2rapdcSx7ltuJ0ywq2cThsMTRHzHWVeJ2xY0+Wquw2DLh7mykv064l12 EDSZGXVJFzp/77Bjn9XgDco4Sc9avvvpeaTwVU4C+KSfdHEoAIGfHm44Fx1BF5FGXbys zSbHyNuEnxhRwEqEXSoLc8i8FNBx8VuoaE700P2eh8MXcz6eEGyVA+cBZVMy5/YvKki/ jFhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=LfsV6mkVXZPnbKR5l4SHsIxwTS0rFaQ9Tl8lUw81QWc=; b=FPA/XToPgEFPnaRVyzgkDO8WHg2IFXIr5zBE/m+iiYrTDnvh/xLYiZGX4fb5lPeRYf c2St0c3r9A5EMS4MNZeNi+yjxjiP6JOrO81Ha7FhZ+ZfWHA7xseW0luvQgZ7c6L04IoS N4HF8+YGgUqFlCtGsEFgf+qn6qYaM9ERHgwzE1NR/QoAr1LWzuJugs8q2t6zTnLD5/bD lLzSx7K4wSpd7SfavfYEQsJYGte/bMG72lBY+QtBVsRP0tsRg0FvGa8+jOe+j+XVOxmu mu1zIPZsr5KnAaIMfi18zcQBYfW0w64pWc57G6Itt0oKdxdc2trOXu5AgcmsUhbIJNSB M6+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 30si13039474ejl.658.2021.09.25.06.11.45; Sat, 25 Sep 2021 06:12:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245021AbhIYNEv (ORCPT + 99 others); Sat, 25 Sep 2021 09:04:51 -0400 Received: from mx24.baidu.com ([111.206.215.185]:52746 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234877AbhIYNEu (ORCPT ); Sat, 25 Sep 2021 09:04:50 -0400 Received: from BC-Mail-Ex03.internal.baidu.com (unknown [172.31.51.43]) by Forcepoint Email with ESMTPS id C948ED1B274F014CBFF8; Sat, 25 Sep 2021 20:46:58 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex03.internal.baidu.com (172.31.51.43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2242.12; Sat, 25 Sep 2021 20:46:58 +0800 Received: from LAPTOP-UKSR4ENP.internal.baidu.com (172.31.63.8) by BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Sat, 25 Sep 2021 20:46:58 +0800 From: Cai Huoqing To: CC: Sathya Prakash , Sreekanth Reddy , Suganath Prabu Subramani , , , Subject: [PATCH] scsi: message: fusion: Use direction definition DMA_BIDIRECTIONAL instead of PCI_DMA_BIDIRECTIONAL Date: Sat, 25 Sep 2021 20:46:51 +0800 Message-ID: <20210925124652.409-1-caihuoqing@baidu.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.31.63.8] X-ClientProxiedBy: BJHW-Mail-Ex01.internal.baidu.com (10.127.64.11) To BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replace direction definition PCI_DMA_BIDIRECTIONAL with DMA_BIDIRECTIONAL, because it helps to enhance readability and avoid possible inconsistency. Signed-off-by: Cai Huoqing --- drivers/message/fusion/mptsas.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/message/fusion/mptsas.c b/drivers/message/fusion/mptsas.c index 85285ba8e817..ab63557be0b5 100644 --- a/drivers/message/fusion/mptsas.c +++ b/drivers/message/fusion/mptsas.c @@ -2301,7 +2301,7 @@ static void mptsas_smp_handler(struct bsg_job *job, struct Scsi_Host *shost, << MPI_SGE_FLAGS_SHIFT; if (!dma_map_sg(&ioc->pcidev->dev, job->request_payload.sg_list, - 1, PCI_DMA_BIDIRECTIONAL)) + 1, DMA_BIDIRECTIONAL)) goto put_mf; flagsLength |= (sg_dma_len(job->request_payload.sg_list) - 4); @@ -2318,7 +2318,7 @@ static void mptsas_smp_handler(struct bsg_job *job, struct Scsi_Host *shost, flagsLength = flagsLength << MPI_SGE_FLAGS_SHIFT; if (!dma_map_sg(&ioc->pcidev->dev, job->reply_payload.sg_list, - 1, PCI_DMA_BIDIRECTIONAL)) + 1, DMA_BIDIRECTIONAL)) goto unmap_out; flagsLength |= sg_dma_len(job->reply_payload.sg_list) + 4; ioc->add_sge(psge, flagsLength, @@ -2356,10 +2356,10 @@ static void mptsas_smp_handler(struct bsg_job *job, struct Scsi_Host *shost, unmap_in: dma_unmap_sg(&ioc->pcidev->dev, job->reply_payload.sg_list, 1, - PCI_DMA_BIDIRECTIONAL); + DMA_BIDIRECTIONAL); unmap_out: dma_unmap_sg(&ioc->pcidev->dev, job->request_payload.sg_list, 1, - PCI_DMA_BIDIRECTIONAL); + DMA_BIDIRECTIONAL); put_mf: if (mf) mpt_free_msg_frame(ioc, mf); -- 2.25.1