Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3185565pxf; Sun, 21 Mar 2021 23:06:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+E35IDYPXzBILTsEJo8//UsIc2Wr2IVtYww+3UjSNqQKSkZdFOogEgHaLciDWMlKAiclM X-Received: by 2002:a17:906:5d12:: with SMTP id g18mr17380022ejt.246.1616393190224; Sun, 21 Mar 2021 23:06:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616393190; cv=none; d=google.com; s=arc-20160816; b=xQ2OASJVfzxzOmxntv5FgO2gbNjmCe8/ibm7zDUYtxfgr2zfKRXZQSFTSkbBjXjDSa 8PptmozfBifacLurk2gYIONpH8JsH327D5yXj/YnTvCCYZMH1JAt+7C+ip+a0QdKBSFT 2tNox4iPyTjywZLkJpOW8u8qzy6KDQXUAMCbwjueK/2wfRJ79mNrv6CnNg6moaTfKybB bj195VyUaI0iz4sEkNPnR6u0d45x3KjAa0S4AD5ASbnmLhG3QjyATuu4nn5t/omRsC60 V7U85wE4nzoVi7d48gHGn4MeHcnT/NMJY0KhHkp93kiQ/RYYwphTpJB1cu7+5CbBKLf0 t8/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6r0lxFeNvySyTl0AEFdv6zis8I7O25TTZaBvHvc/CSA=; b=qYoIZlRbVKXNMtn/0peES7yzQ9OpO8i8wC7+aRKcWMuGYs6GziFK+M480VBuyNnoFW QnH38xEZ0WIPXXXyrjKqHR0YZFyWX8BtDuEaxeiyaNVCUpl+Z8/OyEYrYtoMxYuXCYb6 34810+XfyQu9E3AUPI7y2ZteHeZbUHDj52JbM/EkVyIsB0mhKTWFjjm0ZuCxI9nsMASj FOPLEcz28R2WQBvmR8ZOvIo0c7Q/QM5/GJXYIHpJ0qlzWm1VEoPJBBkqXcgJr1VJ9ncW DuX+yaPA80GATrcCXaECravNRuMIqPbgzVDu3xdwrlZE5Q14ozFoZDl8U/apCNgFD1nM aCOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="a/u+Yi1T"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n16si10862573ejr.507.2021.03.21.23.06.08; Sun, 21 Mar 2021 23:06:30 -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=@kernel.org header.s=k20201202 header.b="a/u+Yi1T"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229933AbhCVGFN (ORCPT + 99 others); Mon, 22 Mar 2021 02:05:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:51056 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229973AbhCVGEy (ORCPT ); Mon, 22 Mar 2021 02:04:54 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2000D6192E; Mon, 22 Mar 2021 06:04:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616393094; bh=XHSJVFYLkfSrTabMwU77kIGMegQzpz9eSl2b5yGtDdk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=a/u+Yi1TNEVNGGo/bUsxAwLNr2Yb0hy6GggXTIkEG+1Q65pUBVldkBr/Fq/UTodTL /at0FtykXpSzDXC9gQ38IGNab8/Q9PP92D7nFioCF/pMZjs6P89c0AAypREj75VsqG +i3GWNlSjK8+bCn4o11IOoDG8LlcBVvvllHyYvAgCvJbiIWnzj+YZKUK9md5I/BNd3 qYc/K6aGS/BfP5JPoIKF95gdKxyWpBM0ryJxYWrobpfm1LxdGQ5H13Zpm/q0XuwQeh BBZBQIMzSYMbRspt72tW+Yf95bSVJnZn6uETAcYZTf2GJm1j//l6gOwq6BtVYX7WmZ IuEwX2jSJgnog== Date: Mon, 22 Mar 2021 11:34:49 +0530 From: Vinod Koul To: Sanjay R Mehta Cc: gregkh@linuxfoundation.org, dan.j.williams@intel.com, Thomas.Lendacky@amd.com, Shyam-sundar.S-k@amd.com, Nehal-bakulchandra.Shah@amd.com, robh@kernel.org, mchehab+samsung@kernel.org, davem@davemloft.net, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org Subject: Re: [PATCH v7 1/3] dmaengine: ptdma: Initial driver for the AMD PTDMA Message-ID: References: <1602833947-82021-1-git-send-email-Sanju.Mehta@amd.com> <1602833947-82021-2-git-send-email-Sanju.Mehta@amd.com> <20201118115545.GQ50232@vkoul-mobl> <5605dae6-3dde-17f9-35c8-7973106b9bea@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5605dae6-3dde-17f9-35c8-7973106b9bea@amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18-03-21, 16:16, Sanjay R Mehta wrote: > >> +#include > >> +#include > >> +#include > >> +#include > >> +#include > >> +#include > >> +#include > >> +#include > >> +#include > > > > why do you need sched.h here? > > > >> + > >> +#include "ptdma.h" > >> + > >> +/* Ever-increasing value to produce unique unit numbers */ > >> +static atomic_t pt_ordinal; > > > > What is the need of that? > > > [please wrap your emails within 80 chars] > The "pt_ordinal" is incremented for each DMA instances and its number > is used only to assign device name for each instances. This same > device name is passed as a string parameter in many places in code > like while using request_irq(), dma_pool_create() and in debugfs. Why do you need that, why not use device name which is unique..? > Also, I have implemented all of the comments for this patch except > this. if this is fine, will send the next version for review. Am not sure I remember all the comments I gave, it has been _quite_ a while since the feedback was provided. In order to have effective review it would be great to revert back on a reasonable timeline and discuss... Thanks -- ~Vinod