Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8141984imu; Thu, 15 Nov 2018 07:13:11 -0800 (PST) X-Google-Smtp-Source: AJdET5d+m/3HJjTQ0TXktVIg3CwVOWgXCfr0EVWEMnYSPOwjeEURjvyFPNoSCHK3gX/iByLZNnnO X-Received: by 2002:a17:902:6946:: with SMTP id k6mr3379455plt.101.1542294791436; Thu, 15 Nov 2018 07:13:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542294791; cv=none; d=google.com; s=arc-20160816; b=wBXdGDeb7FZkOb67d3FMzXySnJG55A+KOPIn8lBhJrcURYIbCrUzHP3DmUe4RbsSYx 8LLMaDBVByPntB03DbaS0u3QykGlOGvqpD+zj8MPlAJz2baBcsSSC3L6t8X/2nE//qIR a1uT4bHpDY/O/MZGhpyAEkWsFk1r9SZqZ3GMkdPE3ACYRBqEHqppyzEKeaNMN0+I5/5h 2DYWLNJgVv9esduWDmo3dRERbgCclgJXtqVLmTUTfdoL+I1ouGw4dqFKnB3+tX12w/vo FVQgf069XFD0RVJ9fugaBqsIQQ7g6NbsvT7gsiSg/fcypez5LwIItho/NxBmiMv6BwZJ tOdg== 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; bh=p0N/pBTn+ZsgrWeJGG17owgymeafW3HxGK+Us5vI20I=; b=rGkf0Pg5ks1cwgOuJJiSh74sYehtULrGZ8rZnVuiBEqk9xPHvlGlyYtNvucz7bv81M h0YjBOiX6zHp/v/IEt+fxT/0t1RE/KANs7Om/pDQTTN+wC8wsaL9b4OgdnNJvHRuAJwE 4htywNNJ5f8DsKHbGFyQRzdaaN8Y1y4MScvV9WWn2vMi7axbKUKrJ/4Yt3jYcYjVbOXW hDyO3IBa68iaeoCJqiSEHa1lPemLTGIOfsRjdVze1UxdKdZswC6Vc1zwvHWj4rk4j8bA O+hj2QSexJapqoKXtzd9RebqSxxJi9A0ux22rgyYew+MOITFDF2jaAjgf4A/i0rQS7be WEPQ== ARC-Authentication-Results: i=1; mx.google.com; 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 o10-v6si26419824pgl.134.2018.11.15.07.12.54; Thu, 15 Nov 2018 07:13:11 -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; 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 S2388326AbeKPBTl (ORCPT + 99 others); Thu, 15 Nov 2018 20:19:41 -0500 Received: from mail-qk1-f194.google.com ([209.85.222.194]:37925 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726432AbeKPBTl (ORCPT ); Thu, 15 Nov 2018 20:19:41 -0500 Received: by mail-qk1-f194.google.com with SMTP id d19so32242459qkg.5; Thu, 15 Nov 2018 07:11:27 -0800 (PST) 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=p0N/pBTn+ZsgrWeJGG17owgymeafW3HxGK+Us5vI20I=; b=nemDIPokDNWY0Y2SaFvAXrt11WpADUQBCqnGoEHEhueyVkLZnLkpyLRktugE3pXEw7 iA4PEKwZLYoZeZagS6U6AhhlSZ17G15uxuVL58vS/FvzGnK3OesXARd9Gwf64/rP2ftp gmXpO9NcyErbrY3Dl229cNJq3IylK3IVcZzt9ua6KWVHz2Rj1Yv7LshpryaZ02MB6Q21 5MwN3lKpKS7bFQ8LDM3qHB4iS46brzFjpfuCH73OnePdAmLfKO9QsIjjPCierFGHkc9T c4g58znuDlirMSYnddc0DFOxIvfCgN31RUBCZYDVsiFuZJ92LyB0XB0gNU37L5hDBFZO +yaA== X-Gm-Message-State: AGRZ1gLdwliElPhiQf3uXEIDml3P17PiKfwZggGvwyCCn4sBYXdPXWvj dSCdCBwwhnp+9eR8UM+btP1a7CoACv0cxIT8HeY= X-Received: by 2002:ae9:d8c2:: with SMTP id u185mr5967041qkf.107.1542294686850; Thu, 15 Nov 2018 07:11:26 -0800 (PST) MIME-Version: 1.0 References: <20181026144333.12276-1-boris.brezillon@bootlin.com> <76b1d15d-232c-d8ba-5eba-8394e71be725@synopsys.com> <20181115135731.25f60990@bbrezillon> <20181115150137.GB4169@kunai> In-Reply-To: <20181115150137.GB4169@kunai> From: Arnd Bergmann Date: Thu, 15 Nov 2018 07:11:09 -0800 Message-ID: Subject: Re: [PATCH v10 0/9] Add the I3C subsystem To: Wolfram Sang Cc: Boris Brezillon , Vitor Soares , Linux I2C , Jonathan Corbet , "open list:DOCUMENTATION" , gregkh , Przemyslaw Sroka , Arkadiusz Golec , Alan Douglas , Bartosz Folta , Damian Kos , Alicja Jurasik-Urbaniak , Cyprian Wronka , Suresh Punnoose , Rafal Ciepiela , Thomas Petazzoni , Nishanth Menon , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , DTML , Linux Kernel Mailing List , Geert Uytterhoeven , Linus Walleij , Xiang Lin , "open list:GPIO SUBSYSTEM" , Sekhar Nori , Przemyslaw Gaj , Peter Rosin , Mike Shettel , Stephen Boyd , Mark Brown 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 On Thu, Nov 15, 2018 at 7:01 AM Wolfram Sang wrote: > > What we could do though, is expose I3C devices that do not have a > > driver in kernel space, like spidev does. > > ... > > > Mark, Wolfram, Arnd, Greg, any opinion? > > Is there a benefit for having drivers in userspace? My gut feeling is to > encourage people to write kernel drivers. If this is, for some reason, > not possible for some driver, then we have a use case at hand to test > the then-to-be-developed userspace interface against. Until then, I > personally wouldn't waste effort on designing it without a user in > sight. > > Dunno if you have that, but a debug interface (exchanging data with > clients) on the other hand would be super useful most probably. Maybe > you can start having that in debugfs and already learn from it if you > ever want to move some interface outside of debugfs? I think it may depend a little bit on the complexity we require for a user interface. If it's basically just pread/pwrite, then the debugfs would not look any different from a stable interface, and there is little risk of getting it wrong. The more complex the interface turns out to be, the more cautious we may want to be about declaring it stable. Other than that, I agree we should encourage users to write kernel drivers, but given the precedent of uio, libusb, spidev, i2c-dev, and vfio, it does seem extremely likely that users will have requirements for it, and I think it's a good idea to start the design discussion before users start building their own interfaces to do the same thing badly. Arnd