Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6967887imm; Tue, 28 Aug 2018 04:21:56 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaJZ7k8jHUHRzn5COW5EjmsdTtFzU8j22HOF/uOixSkekGMIuQB8JcRbEv4BIdRKZmDKkD4 X-Received: by 2002:a63:5a13:: with SMTP id o19-v6mr1084590pgb.75.1535455316394; Tue, 28 Aug 2018 04:21:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535455316; cv=none; d=google.com; s=arc-20160816; b=C4sDAaHqYpwQ0vXdPuiymbBc8DHb/s7Iv/nUmfzrmBJWulPfNDdaNHqSWVIquPY7KR ir8JbXBQhzJkP42Fn4xTqhc+6eiLH4fKtnBGcPy3B04MAc+EqsLsdS325a+BjxWpF6fd O9MR9m3k9Ct7Roo7zsIquE7hRYa6yxdJgvzE+9SOCO6e9yeQDAnoK85JTg9f5jfjG79e L23mXC5DvYsKqsdfwpeeHUmFfyTIE7DzmhsKParhUIIY+72SdzHlgJQODM7Hf/fL8PZ/ q5VsJ+H5gzZ+0jzbLfoxb4KN40h1F3WBsuAjCKHDzO3cBVctVrEifSxvnK6Rq5XwRVQ0 As9A== 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 :arc-authentication-results; bh=WiGnQIio0Luh7VvpMPFlsc6HDA3Xz/h3SfFYIeGIEJ0=; b=b2Sx59+WjcqLfGGaWg1w7zsv0nUivdEERYnHrAWMlBMvEg26rdo5rHpLhuOyso5+I7 kIJBxrK5biGg7/QaA4oJ5OWtGfRFSBJtMBzpB+z2LXyaosI3ViC0pSBRcpYBNw6U1ezi YaHchyaVNALUO2rV+Ye8v0pxbn/wlUixEEzJ4rVN1vHNp6ggCLsast4MQGVft1S8PLoV 0YiGrDp7WSNn+wzpXAQQ7IqEYJDH5CfPuiD/u2L0mdLIL8RBSW1t8NGqttlHzXgHBV1Y eegW0hnJC641Ilv14S54ZR3TnuAX6mcSbXgqsGoaqBMco3KHGZTi445PKQY5qL9iSrGW MgiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=uVaytGOB; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k7-v6si738695plt.327.2018.08.28.04.21.40; Tue, 28 Aug 2018 04:21:56 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=uVaytGOB; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727834AbeH1PLo (ORCPT + 99 others); Tue, 28 Aug 2018 11:11:44 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:45728 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727579AbeH1PLo (ORCPT ); Tue, 28 Aug 2018 11:11:44 -0400 Received: by mail-wr1-f68.google.com with SMTP id 20-v6so1197532wrb.12 for ; Tue, 28 Aug 2018 04:20:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WiGnQIio0Luh7VvpMPFlsc6HDA3Xz/h3SfFYIeGIEJ0=; b=uVaytGOBgaB8g6L7RKbnAY6TqhJpJpLDMboTcruegcwKkkTRF6vLIXJ2C0+se5gUp1 ZS/xDnP9rwKVMcqXk2NyEMA3RLemK3RkJceUH26+LB/qcX1ILFwgvTe8ArQTFHolASk8 wRn+A90kCgFvmxdqWCifkALt5bbFwEiSR02vq4iZDHR1XJ2igoKDCn6jn53LQDHTLXlo /TiiqxNDlFG/z6RWujG8qw8vvRybLNt67rqHchfp0cjVdvD3C2mPOBVzFY3lcI+Ir0sr 7JtOCzpFlDeitb93sQjx+hi7pPB7YNc41+y6rLv6XaI453BinF4A4nsJ/7Z54QCJdRX+ 6UCQ== 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=WiGnQIio0Luh7VvpMPFlsc6HDA3Xz/h3SfFYIeGIEJ0=; b=SsMtnZE/KEmR1nQ4MjLKy4TwXuxK2hW5tRLv+zKvq0rmUwbQ1W1h2o7mwfQZDFRkqF 6IEWjS77RHZMaVS5DoANtYidta9BlvqQmmlpxdxtX1lnVSnH53tkBJlXjmndgbRr5qIP rE3Wz6vWga4cOBQOF6qkuxdOcQxZ838OdtZYKrj+LNtSGXg8lawo9BDBdKs+2uSw9nW5 0RkB9PsN/fDFiOUCSLurfHP8W889R7b0fsDwhHogVEBMNeoSjnnMd6kOENCbIQd96oje mJCZsAsPKq+OqPNGC7fB65D3XyYe+P+4QjP4E+5uRPjBvZ8SUamg2XtbvGI8JFryRLFo kx7Q== X-Gm-Message-State: APzg51AQffZVeALYt/dFW6ijsVLOM7lYZhYDHTYqSv9GTM8sgdIQbvan ibsrrsIRPsEYEcpM0kLjAMjmrul/hKmYaeEYKqWIlIzs X-Received: by 2002:a5d:4cc8:: with SMTP id c8-v6mr848130wrt.210.1535455232490; Tue, 28 Aug 2018 04:20:32 -0700 (PDT) MIME-Version: 1.0 References: <20180818155724.GA22569@kroah.com> <20180828103817.GB1397@do-kernel> In-Reply-To: <20180828103817.GB1397@do-kernel> From: Todd Poynor Date: Tue, 28 Aug 2018 04:20:20 -0700 Message-ID: Subject: Re: [GIT PULL] Staging/IIO driver patches for 4.19-rc1 To: darwish.07@gmail.com Cc: Greg KH , Linus Torvalds , akpm@linux-foundation.org, sfr@canb.auug.org.au, Rob Springer , John Joseph , LKML , devel@linuxdriverproject.org 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 Tue, Aug 28, 2018 at 3:38 AM Ahmed S. Darwish wrote: >[...] > 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.. Yeah, it's clear all the userspace I/O framework code needs to move to UIO with some patches to add agreed-upon new pieces. I think everyone agrees this code shouldn't move out of staging until that happens. A whole lot of work is needed on these drivers, and UIO conversion is on my list to address soon. > > 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. > > 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.. > > Thanks, > > [1] https://www.kernel.org/doc/html/v4.18/driver-api/uio-howto.html > [2] drivers/staging/gasket/gasket_core.h :: struct gasket_driver_desc > [3] drivers/staging/gasket/apex_driver.c > [4] include/linux/uio_driver.h > > -- > Darwi > http://darwish.chasingpointers.com Thanks -- Todd