Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1846751yba; Fri, 10 May 2019 01:59:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqxzs7nL6BgbuTBSHc2CgQ4VdB0FjpNbSMbyAVZt3KTecACOUzo2SeimpqAIdGrWgB3UvSIH X-Received: by 2002:a17:902:b181:: with SMTP id s1mr11677090plr.9.1557478744090; Fri, 10 May 2019 01:59:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557478744; cv=none; d=google.com; s=arc-20160816; b=LPiNuKNzdsboH9hNQOovvJ6TF1V944BHKsxhB6ibLJ84vow/+MfGEalfaO2awLUPdg MmnZ0ljGPkchr7fB6+k9r6hDzHLSfLlP8xKXhnqIc0c08AtG7UmGcSF9UfOCIcEIw9ik KbOUWBENRA+SgXTMp9OEXDjm9h9swg37OphuJcx5fx34japlAhsNMi6EBeikxRirpVeF Tc0QzAbEBgWpztZSkD8OR7fH6+evMGzEGTGiOni4JhkgjFbLdM8fskAbE/lMN9RmA+FI kHW0u3auqNwVnBitmVxpEkErPJscAy6Pb6J/jKVMuO5F6G0mv1jmPdveocDiWxj3bDrL g6Rw== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=HobxP+MLrz/aiju09cwpBuaVOVui4jTx0kQd8H0LxYQ=; b=ZlURinVgr+y56NleBud8A2+P/IiPogQ4q5mPlOOWFIypbOOWktTKQV/tJ8kgyc9nTM 1wJKxgP+9Mp3+oyiPMXEXQFaa65giojNYHCOAUWuIfdEu2lMf/cTF85zO4Af+R32ALtR a8PJ3mY51WzZdPrxQtJmlR/GOC2HhTfR7xF6EGXhv8fGvn9NZKxTqu8942q9EfHrWwCc gb8tX7+kxqrPmZBGabsWlsFVT1dCATCM4OaJKQdME0A0Evx92TFugW5xj9K+TeIjrOX/ nMQXGCI0N38si5xHJJWCLdZXRnZ8eEigQQJIoEVGXW76yGFZIYPS4JylsfKYyyjejHJx I61w== 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 c14si6732373pgh.367.2019.05.10.01.58.47; Fri, 10 May 2019 01:59:04 -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 S1727173AbfEJI51 (ORCPT + 99 others); Fri, 10 May 2019 04:57:27 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:37487 "EHLO relay1-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727001AbfEJI51 (ORCPT ); Fri, 10 May 2019 04:57:27 -0400 X-Originating-IP: 83.155.44.161 Received: from classic (mon69-7-83-155-44-161.fbx.proxad.net [83.155.44.161]) (Authenticated sender: hadess@hadess.net) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id BDA95240004; Fri, 10 May 2019 08:57:22 +0000 (UTC) Message-ID: Subject: Re: [RFC v2] iio: input-bridge: optionally bridge iio acceleometers to create a /dev/input interface From: Bastien Nocera To: Jonathan Cameron , "H. Nikolaus Schaller" Cc: Dmitry Torokhov , Eric Piel , linux-input@vger.kernel.org, letux-kernel@openphoenux.org, kernel@pyra-handheld.com, Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Date: Fri, 10 May 2019 10:57:22 +0200 In-Reply-To: <20190422152014.7c6637ab@archlinux> References: <195994ebff28de22eae872df134d086c761b83b8.1554026986.git.hns@goldelico.com> <20190407133037.0ad98897@archlinux> <20190414124029.1f1f6084@archlinux> <20190422152014.7c6637ab@archlinux> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.1 (3.32.1-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2019-04-22 at 15:20 +0100, Jonathan Cameron wrote: > > Different goals usually lead to different solution architectures. > > Indeed, but in this case we have your proposal which is a subset of > what > I am suggesting. One architecture can fulfil both requirements. > > I'll leave it for the other thread, but Bastien has raised the case > (that I'd forgotten) that there already userspace stacks that are > capable of happily taking in both IIO and Input devices. The > confusion > here is they will now discover 'both' without the existing userspace > knowing that they are the same device. We need to be very careful > not > to break those userspace programs. > > So this is an illustration of why the simplistic case doesn't work > 'now'. I don't know what state the whole patch is, but, at the very least, I'd expect that patch to export the fact that it's exporting synthesised data from another driver, so that it can be easily ignored in user- space that already supports IIO devices.