Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp7044872imm; Tue, 28 Aug 2018 05:37:48 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdbbfvq1eA8CikgsKj6kO+S30LZBG5SNWbER28ehzkn4Osq2lfmpFC8w0bu9o530at4+wvRW X-Received: by 2002:a62:25c5:: with SMTP id l188-v6mr1378588pfl.179.1535459868354; Tue, 28 Aug 2018 05:37:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535459868; cv=none; d=google.com; s=arc-20160816; b=B8yWm2xSJLWQE1Xg5/MY3Yp2lJqpP5C30ckn/dtBiRfW2wvLUx8fDz7Adj4jkuoR1i XZ0YS9kJFqwLKa7iBTblJ13E/mMjlpk/Wwkn+gPzj5Nokb8tUdD29BF6EGuYKqk5gWfK NTgTi9g8CMncySoyV6wMrKz53n+UhhYiCpwBNGGonImDzYe6lr3GmtqW8Q2jGj2KlYkZ Y78jh07PFJteY3axqEYUcmsU87pW/AO+ARjvEJ3S8YCrH+ZcLfprxHCCIyuufOSWNhc3 2cJ5/BALfdUMJ4dXnArb3xXtZK+IYGNTaVAndiyp4B7QLCgVHmTVex4UifLUtzM9DZtU yUSQ== 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:arc-authentication-results; bh=46pyJeLfodQ5sqhcndWs2zB+etam8L5wlQUn9l+oBRw=; b=x13qWj1lDrbXBc9Q+lCErSlPhA/bWt552lub8cJsHo/rqTcy0uPP5VgCjSomn2lM4y snXWfVUBrgsZzwYsFv5d9S/fxST7kH/WVE6Fg2LDHW8asHm76xXkHdPLozAcHGldpaoT fD9ZWYBbI+frLuOuCLfI3gr/e4MQcJi4nZq6/WeljS22FH10A5sq+j+GPGqZp0jDpocO /BFG8RqTbLtwDVAHP4AGA4OqlzMvex6r3hlnoR3jvh0Lvem7xYazPPzqQBamWuh2xaUH uB8Twj2ebn01mJ9koVgjoyyfpqGlyPnMBcvIMhoXevwG2K9PePNLfZ1vqm1DOonBUgz2 dYew== 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 14-v6si935682pgc.179.2018.08.28.05.37.33; Tue, 28 Aug 2018 05:37:48 -0700 (PDT) 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 S1727822AbeH1Q1u (ORCPT + 99 others); Tue, 28 Aug 2018 12:27:50 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:34938 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726120AbeH1Q1u (ORCPT ); Tue, 28 Aug 2018 12:27:50 -0400 Received: from localhost (unknown [104.153.224.167]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id DD549E3E; Tue, 28 Aug 2018 12:36:18 +0000 (UTC) Date: Tue, 28 Aug 2018 14:36:07 +0200 From: Greg KH To: "Ahmed S. Darwish" Cc: Stephen Rothwell , John Joseph , linux-kernel@vger.kernel.org, Simon Que , Rob Springer , devel@linuxdriverproject.org, Andrew Morton , Todd Poynor , Linus Torvalds Subject: Re: [GIT PULL] Staging/IIO driver patches for 4.19-rc1 Message-ID: <20180828123607.GB13441@kroah.com> References: <20180818155724.GA22569@kroah.com> <20180828103817.GB1397@do-kernel> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180828103817.GB1397@do-kernel> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 28, 2018 at 10:38:17AM +0000, Ahmed S. Darwish wrote: > [ re-send; forgotten lkml CC added; sorry ] > > Hi, > > On Sat, 18 Aug 2018 17:57:24 +0200, Greg KH wrote: > [...] > > addition of some new IIO drivers. Also added was a "gasket" driver from > > Google that needs loads of work and the erofs filesystem. > > > > Why are we adding __a whole new in-kernel framework__ for > developing basic user-space drivers? > > We already have a frameowrk for that, and it's UIO. [1] The UIO > code is a very stable and simple subsystem; it's also heavily used > in the embedded industry.. As Todd said, the code will end up being a simple UIO driver, if even that big, in th end. It is just going to take him a while to constantly refactor things until he achieves that goal... > I've looked at the gasket documentation [2], and the first user > of this new in-kernel API [3], and this is almost replicating UIO > it's not funny. [4] True, the gasket APIs adds some extra new > conveniences (PCI BAR re-mapping, MSI, ..), but there's no > technical reason this cannot be added to the UIO code instead. {shh} That's my plan :) > More-over, the exposed user-space API is just some ioctls. So if > google hase some shipped user-space code that is using this, > hopefully the driver can still be re-implemented through UIO > without changing these bits.. Odds are there is shipped code with that, which is why it will evolve over time this way and could not all happen at once. thanks for reviewing it, greg k-h