Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9619224imu; Wed, 5 Dec 2018 07:41:38 -0800 (PST) X-Google-Smtp-Source: AFSGD/VbQxwoe8mmfoqf4vibp6su5QTKhSDjBoP+WjVHpgwAi0V2vvu1aAQldn2Bo/x67Qrhw1Qk X-Received: by 2002:a17:902:7882:: with SMTP id q2mr25400484pll.305.1544024498920; Wed, 05 Dec 2018 07:41:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544024498; cv=none; d=google.com; s=arc-20160816; b=BIzJ1JjfE7eKn0NPOJCKGQO0yprUwt75DBR6xByCfu2zpCQxbejEBZGae/agWVnGpV 1UXXzaUrd7Tc4yFlhOF3lvkjYKtBflcaAX9DyNGVzxG1vnLdvn+v9PgtntKT5QYub55+ 8ryzsefHVDvdYU5m2aMCedX6tv9lNov53GAH7YosPBqlbpbZMw7OD/iSavk4u5aDUVXz hJl+ZsrIldK9nkuiLv50NQ6I04vV8tl4JIW8Gvkt/brUlYC1UGuRH3Fnpbv8mRe6ZhZm Lg+F1+YHTms/E6yJOTAzmXRQBttOGL2XRzkEGj7Sk6gLcDFVX8zAhGUPb8nLz1meDgHB ixKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=4LK8vKYxLML5UTUxdpvvd8+mGoJ+sEjvcv5rgExeQuQ=; b=okmEMkVQZCEN8WBrvr2MfsBn3/O6oluFy9zJBV6s59woQFo6css/PFFv614yPPwF29 Sh0D4+o1uLj3UeTCu96HXUC6sZV+MknflPELjNlwb7IP20VSsRl95HJ0WbZoCkV6GLH1 b1ca8+FxhguNNcuuxHoPcF4LZTqRB6V96ViAIxHWDYD3ziSOCCK8ZmSJmODClnn+82N9 56CgjR5CLCxrVoQvie0TZTGSaGVwv/bI+MyHJLpsGqxlL+oV0z3gxCkb8Gsq+ICfBy4O f0aDiI1MPLtGnQfoMU6A19H3vvOlP9ZF+hndz+toFKgZYJF2yEGEmD/h2hAWJPuZYVyA mewg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dGFI4GJh; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l185si18570210pgd.253.2018.12.05.07.41.24; Wed, 05 Dec 2018 07:41:38 -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=@gmail.com header.s=20161025 header.b=dGFI4GJh; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728065AbeLEPkK (ORCPT + 99 others); Wed, 5 Dec 2018 10:40:10 -0500 Received: from mail-ot1-f68.google.com ([209.85.210.68]:41603 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728064AbeLEPkI (ORCPT ); Wed, 5 Dec 2018 10:40:08 -0500 Received: by mail-ot1-f68.google.com with SMTP id u16so19010022otk.8; Wed, 05 Dec 2018 07:40:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4LK8vKYxLML5UTUxdpvvd8+mGoJ+sEjvcv5rgExeQuQ=; b=dGFI4GJhkKAByB2Z3q7uY35ErMUo0hQch5V3GVtXUcwTfFFaF748JcmHDWpcvMnGhv NjBR09gxTL8kubfEOFa6Kaij/t+PJqFWE38/iICKeEQ0ZMj1xmoLdaJmQi2uHmkp6wgG it104JLwinyz/pANUMwaLW9LwxvbJpyeUnWfc/69LwyhD53rSDx/QJg6f4cNzSroed8W +KvTns4ptbdYph4ott1qrBDirAcjGdNW4q8R9pkdBkQ8v4sAtMiYOuj//PYTTs1nUjGv nDqlcfcsjDOH6Y5Zw1V158wxaYgFuO2TZReC+84KkF6HIidkDcdjlnu3Zj/+fY6q0glC /VLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4LK8vKYxLML5UTUxdpvvd8+mGoJ+sEjvcv5rgExeQuQ=; b=GDo+Kk0Wc9jo+YsFRyXHfcAyP4i/Dt8q8WGjLs6F/cpZexWXUiMB1XSXQXo80t/afi 6stbt4Yi0t5yqzlDsEXOd6tKqwYw6BmWBmqrzmQBCA+sa89DR3BK8CGQYVLKzL4MrSgd EDacRKVYTF2Xe6IdvcUK3JOWZjSzRMgQqW2mpksCGOnnjde5RbsTnuUtyPmvVbAmp4Bj 2cGqP39eXGu/P6YKbOaTDLWh8IqjVe0gvzg5Ao/yD6RV43tVaLs+hrRkY+Ht1G0g12Xt ALBuPPMDw07+G6M9Ts17kcmBslt1dnw6OFHpwefpskrHmDNyBHubpLv7tBeRdruLZaQ8 vrMA== X-Gm-Message-State: AA+aEWYvAwYIkSFm1Oat9caVsyCyJevhxksOwED0quIiq3VmvhRDKVn3 tMCVshUAwaIX4wDUcBhPq82IvRHY9ibEGzd4h5g= X-Received: by 2002:a9d:b8e:: with SMTP id 14mr14758930oth.279.1544024407901; Wed, 05 Dec 2018 07:40:07 -0800 (PST) MIME-Version: 1.0 References: <20181204220224.27324-1-TheSven73@googlemail.com> <20181204220224.27324-2-TheSven73@googlemail.com> <20181205101659.GA27058@kroah.com> In-Reply-To: <20181205101659.GA27058@kroah.com> From: Sven Van Asbroeck Date: Wed, 5 Dec 2018 10:39:56 -0500 Message-ID: Subject: Re: [PATCH v5 1/6] fieldbus_dev: add Fieldbus Device subsystem. To: gregkh@linuxfoundation.org Cc: Sven Van Asbroeck , robh+dt@kernel.org, Linus Walleij , Lee Jones , mark.rutland@arm.com, =?UTF-8?Q?Andreas_F=C3=A4rber?= , 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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. 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. If there is an abstraction in Linux that's a better fit, I'm very open to making changes. Sven