Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8415502imu; Thu, 15 Nov 2018 11:09:13 -0800 (PST) X-Google-Smtp-Source: AJdET5dhRKQanAYUsxoBsf3M9k/nAYTJEnwiOe1En9LsxjbV2lMiQpqqceMrnAPCrb7BBe4c6PKk X-Received: by 2002:a63:2109:: with SMTP id h9mr6844955pgh.277.1542308953300; Thu, 15 Nov 2018 11:09:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542308953; cv=none; d=google.com; s=arc-20160816; b=Wqre6EkpeS3bybMYnv/ecx1hrKjiZwLCMswNEkVLXkvrNYo3yC56ExphthjqKRoKim E1kuxrqTw8xiNEQF39hrbzXrg3mo53AsDWFqp1GwexiabvCq0EbLuwWtxo/Y+688+wxJ O50wIn77KsgLqE/eJC4v57U9n+hD7F2IuxOSbvq13stNNyShWqZe9gY8x1JTztIWCs8k XQXfA1CaLgwgIF4WGPzPTjWknvnEHMoCOKroh8UZck5l4UV8VsvQj0veBNhvfVbP1qYV OWH2tdFYhvE+c2TtsvwPZPKn9C4UmmI2JoBT1oKDPsidQThJa4ktBwNkZS80MjNibPMj MYQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=Y7JJH2Mfg1tLVJwSbf+k+c6NwAGecS2TM4MJRdt8Eys=; b=jrb1PXk6BCG1rnEmjE5r2C+ScAnBUbz5g7eUb5DRn9dCddbp47QXc2nGAlBu17QCsX SbwdGddK+ZIjvf6WwhNt6lcbJiZOqWGz/OYZNZUir+XK1hNV/kyrwglHCK2rVLoeplYX aiIYdXjx+2yEuZF4OZG/5UqReTOWW+L2OPIN8Kwbog2Hp90GGKNLVy71RdGFO2Xuopcm t5cDFsiDBIpqUyydBQ39xk1PjzDc8kL7n+KyglCbXJthmTTxxOy9aP78QGAXTqZzrF2F +bKYnzgTt35owj7YvHrTKxX9zyD9L4w0+FfUk+tVpSoEYcunGAskvvuS5FUShRvTVLh5 B6yg== 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 m1-v6si27074641pgb.476.2018.11.15.11.08.58; Thu, 15 Nov 2018 11:09:13 -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 S1726910AbeKPFQn (ORCPT + 99 others); Fri, 16 Nov 2018 00:16:43 -0500 Received: from mail.bootlin.com ([62.4.15.54]:52807 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725741AbeKPFQn (ORCPT ); Fri, 16 Nov 2018 00:16:43 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 8369E20D7C; Thu, 15 Nov 2018 20:07:40 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.2 Received: from bbrezillon (91-160-177-164.subs.proxad.net [91.160.177.164]) by mail.bootlin.com (Postfix) with ESMTPSA id D83592084B; Thu, 15 Nov 2018 20:07:39 +0100 (CET) Date: Thu, 15 Nov 2018 20:07:39 +0100 From: Boris Brezillon To: vitor Cc: Arnd Bergmann , Wolfram Sang , 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 Subject: Re: [PATCH v10 0/9] Add the I3C subsystem Message-ID: <20181115200739.20b22d52@bbrezillon> In-Reply-To: <08a591ae-c75b-80b4-b608-ca92f6d932f9@synopsys.com> References: <20181026144333.12276-1-boris.brezillon@bootlin.com> <76b1d15d-232c-d8ba-5eba-8394e71be725@synopsys.com> <20181115135731.25f60990@bbrezillon> <08a591ae-c75b-80b4-b608-ca92f6d932f9@synopsys.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 15 Nov 2018 15:25:11 +0000 vitor wrote: > Hi Arnd, > > On 15/11/18 14:25, Arnd Bergmann wrote: > > I agree about better not exposing the bus as a /dev/i3c* node, and that we > > probably do need to expose individual devices in some form to allow > > writing complete user space drivers that can do everything a kernel driver > > can do. > > > > Can you describe what a low-level interface to the device looks like > > in the kernel? Can this be abstracted as simply pread()/pwrite() plus > > an interrupt mechanism, or do we need a set of ioctl() operations as > > well? > > Like in i2c is likely to need the ioctl() too. Yep, I think we'll need an ioctl given the various type of transfers one case use to interact with a device.