Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2705615pxb; Fri, 17 Sep 2021 16:33:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyblMzUys+FntCg+E/VD2yMOiqKCqD1WKewDeYl23sCOnif/jP+mCLsIfZhKfG7iL8sAioh X-Received: by 2002:a5d:87d2:: with SMTP id q18mr10658145ios.78.1631921628321; Fri, 17 Sep 2021 16:33:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631921628; cv=none; d=google.com; s=arc-20160816; b=c5DoDEoujTtb2hZjWDrzP0wa+3oxqopQimJ4y7z66i5+yoEBtJSjmAXye1u01ASNI8 e4qYisDExqD9KWW4B7Qnxg2OqaXursnF8daB+tF+CBpsq9xlDtzVedqTMGPTKS5nriKV eCvg/JhfeUPNBA3B18YGi1EI9ZdIHbCP1VjMrPPhIoGLmwAikTwgo9OOrpHRSKGHE4wV FwhUjy7bx5RJg/TGJCvmhU2dfzkptZuhztxrUZGTuL1xmcPaC8hPFZsnFvm/e0HT6mgp 6bST8DzZHoX3gdZOFh5dnYLOeluJfOOpwXMO5bUFIwbF1wqubFwbj82C2VAakamcm3FG Z+1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:dkim-signature; bh=yl9vjgcSxbXyjBnV1ZJmnZ4kxoytLHzu6HHzbfwRuiI=; b=osY04IZO/3gPJMAAyXUYnyMQPCike59HwgygPXpPYILXz5e2msznxwo8JVyMt8CWNc cdqr6uTZKQ7tU5zl9MRXAi+/62+ixtc1mOlHRwJ2HG2cZoMYWhsbsQnrnPyYsVGpqY2C 44S3+Q33EBN+m4v/kvHpeuABhyK3vetlbxnPuopwTIxsdJy+h+GlRFsRR9ySeQR2LBjQ 2fB83c40FfH0wHHp/jUDTDxUKTMra7icfy7/BgKtqJVqCNQsQUL48b9j1lqBgNFMpARO h2FQ5V1YmdVK1rEoypPLR1B1UE/cuY/tnoiD7WlVR5KABj+mkH+Y+sW434wWxPtt2hc1 5x6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@deltatee.com header.s=20200525 header.b=V8pd4DR4; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=deltatee.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v9si6587276ile.167.2021.09.17.16.33.37; Fri, 17 Sep 2021 16:33:48 -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; dkim=pass header.i=@deltatee.com header.s=20200525 header.b=V8pd4DR4; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=deltatee.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242186AbhIQPWY (ORCPT + 99 others); Fri, 17 Sep 2021 11:22:24 -0400 Received: from ale.deltatee.com ([204.191.154.188]:51246 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245612AbhIQPVu (ORCPT ); Fri, 17 Sep 2021 11:21:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deltatee.com; s=20200525; h=Subject:In-Reply-To:MIME-Version:Date: Message-ID:From:References:To:cc:content-disposition; bh=yl9vjgcSxbXyjBnV1ZJmnZ4kxoytLHzu6HHzbfwRuiI=; b=V8pd4DR4PBlkyzm6eQWuZvxqTt x7oMKqTNkuQ3geVuTAO7ToGGRCSU0XsXXf0eQP/vfc/vkBMKXa7r12GACogFxoxJ3R1wM2Z1PYi+K N2IqGlY9BJf9JWtQdweKT2ahqe6tqISMe+9KuQGGLnyt2fBJ6uQJax/VWKpvPaz26/y8oLdvLSL16 X8T7OAAHOK8BpoJ8zGeHEhicnfIQyqLO2pXu8GvdHimEwGiiQx6fuTj/esJHrthF9Ydo1XrImI5NX 5quHxfhObofXLC3C2T0DH7SIcqi1744zkvpZNvH25N1xbWBcpBFdsBIwe+zgEqmmhB85XBY+Ozk8X sE3Rer4w==; Received: from s0106a84e3fe8c3f3.cg.shawcable.net ([24.64.144.200] helo=[192.168.0.10]) by ale.deltatee.com with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mRFf8-0001nI-8K; Fri, 17 Sep 2021 09:20:27 -0600 To: Qing Wang , Vinod Koul , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org References: <1631863081-10231-1-git-send-email-wangqing@vivo.com> From: Logan Gunthorpe Message-ID: Date: Fri, 17 Sep 2021 09:20:24 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <1631863081-10231-1-git-send-email-wangqing@vivo.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-CA Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 24.64.144.200 X-SA-Exim-Rcpt-To: linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, vkoul@kernel.org, wangqing@vivo.com X-SA-Exim-Mail-From: logang@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on ale.deltatee.com X-Spam-Level: X-Spam-Status: No, score=-8.4 required=5.0 tests=ALL_TRUSTED,BAYES_00, NICE_REPLY_A autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [PATCH] dma: plx_dma: switch from 'pci_' to 'dma_' API X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-09-17 1:18 a.m., Qing Wang wrote: > The wrappers in include/linux/pci-dma-compat.h should go away. > > The patch has been generated with the coccinelle script below. > expression e1, e2; > @@ > - pci_set_dma_mask(e1, e2) > + dma_set_mask(&e1->dev, e2) > > @@ > expression e1, e2; > @@ > - pci_set_consistent_dma_mask(e1, e2) > + dma_set_coherent_mask(&e1->dev, e2) > > While at it, some 'dma_set_mask()/dma_set_coherent_mask()' have been > updated to a much less verbose 'dma_set_mask_and_coherent()'. > > This type of patches has been going on for a long time, I plan to > clean it up in the near future. If needed, see post from > Christoph Hellwig on the kernel-janitors ML: > https://marc.info/?l=kernel-janitors&m=158745678307186&w=4 > > Signed-off-by: Qing Wang Looks good to me. Thanks. Reviweed-by: Logan Gunthorpe