Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp468950pxj; Wed, 16 Jun 2021 06:40:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUQutp6qi6X4yPuFP/f94osM1m+9+6HNZ9PkYBLFCaIz8NTIlmfzuMYsPwnmNDapxWoFlV X-Received: by 2002:a05:6602:2bfa:: with SMTP id d26mr41843ioy.13.1623850823297; Wed, 16 Jun 2021 06:40:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623850823; cv=none; d=google.com; s=arc-20160816; b=dOnrDyR7ziVCsswA3/Ur3WZ6uhxqYRSlLfsWzGn/09gQwEwP6bZICGPmgrQ2xIYYnU TUaNCS+x8ooCbc5zdFSUC54bFQEhpGqsBkmR4yZkZW2Uf6eNg93mjUoSy/A13pIJcBX+ dy8zijRppVQVVBbeRix85xqsOVuO2PKbxRL3zb9DVkYpfrgFSGoHhdkQQ4JHqn3rcTEC 0+h4DrzC1Sk9x+SUGuW4EF52KQhQAqiF0ZEsbRcbP7A0JS+bqI5U+vz+OnjusABq+QV2 FgQxx+mYk8534yGDEZt4qO3FXbEwCnqIST5QPVWYxXZdGjy9y3RtlnItXxYT8NYWSp3t 9qQw== 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=8YjKxvi7sPzC16JMz/AjgVJaFXDcMq8p17X8/eFHhto=; b=uCM7Osi3eAJY72NUwif/ZSAae7WNG9h3W/dKa7zFde7wNK7u+Xb4T2FOv9MIVoBGn/ 8TXDD80SL2IQr5IFPpycAEY9nJaQa41UncE1istJ76DVTHsWdzv7sSGOBLFl4ppdg0iJ yUyiapb5ZbT389SFpSOUgEXnEnLBsnIASSw3Wna7ssTrEZNqqPNWWBsp6d26I9Wq1AUu 04Re/q+3UoW7Kgpt6QUtzQc/r8ARyuRSTzWUjveX6LbNXEEgm3TLyMVwQ/3d5V2LwA/6 i4PHou+Z05vP6o0ROqAjFJglH4Pyczq+V5/JKBj4+JV06LCPD3bV6zw1ZMLDxoyN35kB NG/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SHu3CoBC; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m25si2267241ioo.79.2021.06.16.06.40.10; Wed, 16 Jun 2021 06:40:23 -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=@linuxfoundation.org header.s=korg header.b=SHu3CoBC; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233119AbhFPM7T (ORCPT + 99 others); Wed, 16 Jun 2021 08:59:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:58782 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232790AbhFPM7S (ORCPT ); Wed, 16 Jun 2021 08:59:18 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E927B61019; Wed, 16 Jun 2021 12:57:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623848231; bh=DWFBu/mfBxZGTgWooOIBmvdwLAeW2eIRNfnsK75iQco=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SHu3CoBCSbsA0xo+wX912jkLND6O7VUmdGKgAk+RwzIcwJPTaE2JtYzzavr6ALXpJ QbmvGllMsmDwRzA1ctF2FdcAv/4R4VLgjb2jJ+MzQQe9bC/0lmC68+JRQcUBwyP39c pyPzWXqmNsqymObTpC/W2z/0SSN/Qu2OWP1nlks4= Date: Wed, 16 Jun 2021 14:57:09 +0200 From: Greg KH To: Sanjay R Mehta Cc: Vinod Koul , Sanjay R Mehta , 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 v9 1/3] dmaengine: ptdma: Initial driver for the AMD PTDMA Message-ID: References: <94bba5dd-b755-81d0-de30-ce3cdaa3f241@amd.com> <0bc4e249-b8ce-1d92-ddde-b763667a0bcb@amd.com> <12ff7989-c89d-d220-da23-c13ddc53384e@amd.com> <627518e2-8b20-d6a9-1e0c-9822c4fa95ed@amd.com> <0221d964-1cbc-c925-133f-40c3eaa11421@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0221d964-1cbc-c925-133f-40c3eaa11421@amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 16, 2021 at 06:23:10PM +0530, Sanjay R Mehta wrote: > > > On 6/16/2021 5:53 PM, Greg KH wrote: > > [CAUTION: External Email] > > > > On Wed, Jun 16, 2021 at 05:30:49PM +0530, Sanjay R Mehta wrote: > >> The pt_device is allocated and initialized in the PCI probe function and > >> then we just get the "dev" from the "pci_dev" object and save it in > >> "pt->dev" as shown in below snippet. > >> > >> > >> static int pt_pci_probe(struct pci_dev *pdev, const struct > >> pci_device_id *id) > >> { > >> struct pt_device *pt; > >> struct pt_msix *pt_msix; > >> struct device *dev = &pdev->dev; > > > > So "dev" is a parent here, or something else? > > > > If it is the parent, please call it such otherwise it is confusing. > > > > If you are creating child devices, what bus do they belong to? > > > > Can you fix up this series and resend it so that we can review it again? > > > > Hi Greg, > > Yes, "dev" is the parent here and there are no child devices created. But you should be creating a child device, as that will be the name you need. Or again, I am probably confused, I'll wait for the next round of patches... thanks, greg k-h