Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp263578imb; Thu, 28 Feb 2019 23:24:04 -0800 (PST) X-Google-Smtp-Source: APXvYqz0MufDl6vzlkydXCIH1uB3FqgIJv6sJBUoAhi4z2W/IQfrIRABR5qQerGm923BSAumMnpq X-Received: by 2002:a65:64d9:: with SMTP id t25mr3541368pgv.244.1551425044661; Thu, 28 Feb 2019 23:24:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551425044; cv=none; d=google.com; s=arc-20160816; b=R+SxzWAeQvNiMY1PLITvBTWtgLTfmL6zflQH6Tcpb6Qq0BixpPVzfy2IotF8ZnVkq4 9Rv6Ic1KJ0nN2oOK66OYYVop9yPJ4HtXad7UplLZWgt+GXwNG6+I7fpNmNi0WUQ7F9p8 /NFQOc4xZQBzVixAJArAL6hXJBWlIBaKDP8K++LpNL8V4bIHcOqh/hzF+WFJrBFCAP7K U9NOoHXoC6OAJOa0vVUfjK6RBcy/v6OxLoFXH/mX4kGkpccrCpvIcCxuy/+bI9dqRwwR TavpZBMVHBeLhGzjBVGCipySdWGpuZFqOjmiCaZF9aRDkEATnxpxM+zP0jdq3wgq70Xc Ip2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=VfbmOqYbRFv6sTPcAq33F2jrrtUmefYQ8SaJHakfUns=; b=j2xWjUJnY1VLLNw3mnZYETKlIPIX9ynm98J+tmTke3OspYr7IV0vBAuDd+k47IAdBo 7lkGuy/mv0NxrUQvLvH8nQaWXzzvkI1m66eJjoDOoUWoALr5IfiyUFqrfmw94QoKGMvY OBYExxG1p2kEWO2gj6EaIK9PSWVk1OOgK8z5SB3BIR/jI9BNZ3OQQieqHtuyzGMBfm1W wBaS5pUBclOJ2FDhAvc9rPvZY8EoZV17LhQUHAVbgvc/FDHcX9dPETdY1MRofkewCQf1 uW8PSAOG0qN006106VV7uHmZ48X4m0j7t+HqcYV5ZT3edFDAga48NzpM6PsXqMI6qU6b 5c3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hPlLXt+4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k190si19872649pgc.264.2019.02.28.23.23.48; Thu, 28 Feb 2019 23:24:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hPlLXt+4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732108AbfCAHWC (ORCPT + 99 others); Fri, 1 Mar 2019 02:22:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:41788 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725978AbfCAHWB (ORCPT ); Fri, 1 Mar 2019 02:22:01 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A71FF20830; Fri, 1 Mar 2019 07:22:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1551424921; bh=5l1ePDVXl8slynIQWUWeM3TKYW4L+LprTsi2SSp63Rk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hPlLXt+42BOgPSA0kSBD3Qp+gJgiqMESqSA7OBT9C1yjLHlfE5xX21Fn25DkuLyI9 04veI1rjuhL4Z9Uo9JZnLFlfWqgKu4nyaiZfiB4GWxT3OAGCckZnAarH4ywvs3SuoD 3qgIacRFiKWgcbtI9h4t03NOgganJBxz1J3RyBJs= Date: Fri, 1 Mar 2019 08:21:58 +0100 From: Greg KH To: Parav Pandit Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, michal.lkml@markovi.net, davem@davemloft.net, jiri@mellanox.com Subject: Re: [RFC net-next 8/8] net/mlx5: Add subdev driver to bind to subdev devices Message-ID: <20190301072158.GC8975@kroah.com> References: <1551418672-12822-1-git-send-email-parav@mellanox.com> <1551418672-12822-9-git-send-email-parav@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1551418672-12822-9-git-send-email-parav@mellanox.com> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 28, 2019 at 11:37:52PM -0600, Parav Pandit wrote: > Add a subdev driver to probe the subdev devices and create fake > netdevice for it. So I'm guessing here is the "meat" of the whole goal here? You just want multiple netdevices per PCI device? Why can't you do that today in your PCI driver? What problem are you trying to solve that others also are having that requires all of this? Adding a new bus type and subsystem is fine, but usually we want more than just one user of it, as this does not really show how it is exercised very well. Ideally 3 users would be there as that is when it proves itself that it is flexible enough. Would just using the mfd subsystem work better for you? That provides core support for "multi-function" drivers/devices already. What is missing from that subsystem that does not work for you here? thanks, greg k-h