Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9849814imu; Wed, 5 Dec 2018 11:18:40 -0800 (PST) X-Google-Smtp-Source: AFSGD/VbZnsUufTbd4I8nc2KmjueUX00FbCf1BqrJhK7rE2HxiWwsnAW3mbE64mj+yAjeQu69zyo X-Received: by 2002:a17:902:b903:: with SMTP id bf3mr24875883plb.289.1544037520679; Wed, 05 Dec 2018 11:18:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544037520; cv=none; d=google.com; s=arc-20160816; b=TONhnLLZiMnJWHUhCLzMLQJbG7UQT4ESdN7F+ctfGYTMX5wZXG5Rr5QQN+Ap/ysqdV 3pZCRayr9pOuWm17qjhfCcey3QzHmkCpY5pDjmasIAAymltJSCBekMiuKecuCI+YvXL1 BuqxOMDH8L996HsEl7ZeNCnmVzN/I9iPbgND8/lmTDmpzCQudMm/PBiBikm5+NYOaWOd HLRIdEaVUM+eTRropCP4vRbZO0YtPG7U/uRSSPZbiw6Is/usLejip46sWjE+bc9Dvv7w 3yNRQqavis8XW34ozibf/7EEtFlv//WEe1x0kxf5zUYnzmigrEg7xJFgRmm3pYaT41n+ ZhtQ== 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=Dw93z0htTzBvHVV7/wkO3l0GwsJ11vMPJRrlGfm/hWc=; b=zIpIxz7ItysodZUMFLNkzaAF3XLHu9u8oUBY8lmbF+DwfWzbXEpsPmB8c4AHbqQHYE 0zO0Dfl571isgsN/gq62/q+2xxVVxqN6lu81ZkMckj2Y1YefCZ061IH3TyF6d7uxYWjW shofsnSOhEQJ50jK0os4czAnM14pYY6SJbHGs2wsv3HcSIWM3P0Fk0GYoZqkXRM3h9nS l868H+s+khSy4zXBDVt9ntSd3hU3o1mAut5/1O+ubRVp7aTQreIL2Efg9ep8xUrnB/sf aA8rwk0lhQX9FNH+QiFecQWRofuehFqbDN2kiBEvKzaC7XHQ/aT4rfSgR+mHdsJ48dSz VqhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ywxAb2qd; 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 x141si18355481pgx.266.2018.12.05.11.18.25; Wed, 05 Dec 2018 11:18:40 -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=ywxAb2qd; 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 S1728324AbeLETR2 (ORCPT + 99 others); Wed, 5 Dec 2018 14:17:28 -0500 Received: from mail.kernel.org ([198.145.29.99]:40826 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727943AbeLETR1 (ORCPT ); Wed, 5 Dec 2018 14:17:27 -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 8029120850; Wed, 5 Dec 2018 19:17:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544037447; bh=DI7943zfEYGbiG43+j0Qql3rr7Vb7zmXxJjbrhVve00=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ywxAb2qdIS+CQk0Ss6hCzXcsVQIZdPjEyb0gfz7P+kTHMw+uXTxjscTVER5XsJ3ZD LOjDm3iN3BJlUBldpmhTqrUNf1UptDS+QyZsDaC/m8NkWsZCgD8i5MDYWa5GCTRyN9 4bPv97BJdIn3vXtcConmr/Tt4RfrLeSKKe4NpAuU= Date: Wed, 5 Dec 2018 20:17:24 +0100 From: Greg KH To: Sven Van Asbroeck Cc: Sven Van Asbroeck , robh+dt@kernel.org, Linus Walleij , Lee Jones , mark.rutland@arm.com, Andreas =?iso-8859-1?Q?F=E4rber?= , treding@nvidia.com, David Lechner , noralf@tronnes.org, johan@kernel.org, Michal Simek , michal.vokac@ysoft.com, Arnd Bergmann , john.garry@huawei.com, geert+renesas@glider.be, robin.murphy@arm.com, paul.gortmaker@windriver.com, sebastien.bourdelin@savoirfairelinux.com, icenowy@aosc.io, Stuart Yoder , maxime.ripard@bootlin.com, Linux Kernel Mailing List , devicetree Subject: Re: [PATCH v5 1/6] fieldbus_dev: add Fieldbus Device subsystem. Message-ID: <20181205191724.GA434@kroah.com> References: <20181204220224.27324-1-TheSven73@googlemail.com> <20181204220224.27324-2-TheSven73@googlemail.com> <20181205101659.GA27058@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.0 (2018-11-25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 05, 2018 at 10:39:56AM -0500, Sven Van Asbroeck wrote: > Hello Greg, thanks for the feedback! > > On Wed, Dec 5, 2018 at 5:17 AM Greg KH wrote: > > And why is this a class and not just a "normal" device and bus? Devices > > live on busses, not generally as a class. Can your devices live on > > different types of busses (USB, PCI, etc.)? > > This patchset can be a bit confusing, because it doesn't just add support for a > single fieldbus device - it proposes a general fieldbus subsystem. Great, then call it a 'fieldbus' class, not "fieldbus_dev' class. Devices can belong to a bus, or a class, so you are fine here. > Fieldbus devices from different vendors can sit on the usb, i2c, pci, etc. > buse, but they all register as a fieldbus device, via fieldbus_dev_register(), > and show up as a fieldbus class member. ok, I'm just complaining about your name in sysfs, not your code :) I think what you did here is correct from a logic point of view. > Userspace can then enumerate all fieldbus devices connected to the system by > looking at the class. Without having to know which bus they happen to be > connected to. Sounds reasonable. nice work, greg k-h