Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1880241yba; Fri, 10 May 2019 02:37:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqxLb2vmyqPxVBKkKo4p9giaNsMSCunfBanh7YsrX9MvWy7THVoWUw5h5CNVmvxfZDDenUyh X-Received: by 2002:a17:902:12f:: with SMTP id 44mr11677264plb.193.1557481020520; Fri, 10 May 2019 02:37:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557481020; cv=none; d=google.com; s=arc-20160816; b=VzR3DTJ4PUyPyufMK3ioc9zzwgUnrmnyJ4/XXgV72eH7U8v4N0/I2HMRBFCnpuD8/C fn/Y7BuHz/Pp+ceOM4Yu0wekOci7P3/2CQbWE9uiWKnN0BYsfhskmmTJ8oeaX1jz6mwb RZD0UFanBmdOhaa9Z0Fyrk0aHymMY3ouUQvBVPek38HRpnsvLTh43jGp7ke29Q9zEYWD yxputliY0e2L1cOvTaw9hZKqh1dkLoYwvdMqPYGtw7hfhgrqrQVD6JbAsWxImKDb4SIQ AFtfr9qklWou6oIOrbLZBB9KGFiNxMOOHiICt6pyAsWHVVEs6T+Zq/wuN9CADaVdclvb uP/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=C8WiZW1jjTfeo6DJEapxqioDf/xOovEO+bb4GmMWIpM=; b=Zy/e4MnOrOWPDahMAZUAGzdjqVVS+Y2BJaDaNzeYyLDDxMJvw+ODxHbhhzbN860ZAe kTANKNW49FFHidbNNyyuod+ipnu6M8YHv5h7IzbBdw25ORq5yRTKdDbbtIoaS6MthWax Hwp/GiNoEl7gHNPpeTo/t2daa0CvAIp/VV1TrYNwBDT9gWG7KDUncpcyz7H7JZ95f1L8 WO7yRVQoJSiRyl/8SQvtzVfxhCygGfzDzLRzT+mSwVB3wOMBhEytiXZFj2k+Hx7Q/1+V h9o6FfVtylOy1weoSXSQRJFlX/5ik2vNyMLugJickDhSEY0GyWR6K0Khlhmxyf59sFmM iNMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@goldelico.com header.s=strato-dkim-0002 header.b=NAFJZAAn; 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 t5si6869390pgj.258.2019.05.10.02.36.44; Fri, 10 May 2019 02:37:00 -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=fail header.i=@goldelico.com header.s=strato-dkim-0002 header.b=NAFJZAAn; 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 S1727257AbfEJJeB (ORCPT + 99 others); Fri, 10 May 2019 05:34:01 -0400 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.53]:27146 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727048AbfEJJeA (ORCPT ); Fri, 10 May 2019 05:34:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1557480836; s=strato-dkim-0002; d=goldelico.com; h=To:References:Message-Id:Cc:Date:In-Reply-To:From:Subject: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=C8WiZW1jjTfeo6DJEapxqioDf/xOovEO+bb4GmMWIpM=; b=NAFJZAAnyxaBSg7NB3eS9fb6vja9PlGNJNfWaD9DKrgFIzZrWSrhk7hEpbYNJg249o dSFT6QdW5ZYSdc+JLkAIcbTDH464X5ksycmz/PA5Afd4w11XrOKj1SBVb8A0Oenkmmwu yD+1fLhaH0Ja02wC45PmvpYSAikGmXaJRQzg7SsLfykx9HdYnc51MwRjMWKTj8yNilCO E3aBdMNbOZtxbW0sWwN1nGxjlODC5s6VCh0OXcGcu76uiJQmt+lalpbIXRSSM60RCKVi Wr7F3A+8adkmcV778jXN98xWHBOkg84+JpJP3Rt1dWZ2TqdxB4feYtHOEWiSwRKdztjm Nnpg== X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMgPgp8VKxflSZ1P34KBj4Qpw9iZeHmMgw4Tt7w==" X-RZG-CLASS-ID: mo00 Received: from imac.fritz.box by smtp.strato.de (RZmta 44.18 DYNA|AUTH) with ESMTPSA id j04dc1v4A9XQQRb (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Fri, 10 May 2019 11:33:26 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: [RFC v2] iio: input-bridge: optionally bridge iio acceleometers to create a /dev/input interface From: "H. Nikolaus Schaller" In-Reply-To: Date: Fri, 10 May 2019 11:33:26 +0200 Cc: Jonathan Cameron , 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 Content-Transfer-Encoding: quoted-printable Message-Id: <7440F555-5A92-442C-B217-BE17EEF9EF68@goldelico.com> References: <195994ebff28de22eae872df134d086c761b83b8.1554026986.git.hns@goldelico.com> <20190407133037.0ad98897@archlinux> <20190414124029.1f1f6084@archlinux> <20190422152014.7c6637ab@archlinux> To: Bastien Nocera X-Mailer: Apple Mail (2.3124) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Am 10.05.2019 um 10:57 schrieb Bastien Nocera : >=20 > On Mon, 2019-04-22 at 15:20 +0100, Jonathan Cameron wrote: >>> Different goals usually lead to different solution architectures. >>=20 >> Indeed, but in this case we have your proposal which is a subset of >> what >> I am suggesting. One architecture can fulfil both requirements. >>=20 >> 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. >>=20 >> So this is an illustration of why the simplistic case doesn't work >> 'now'. >=20 > 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. >=20 It does through "Input device name:" starting with "iio-bridge:" as you = can see in the commit message of [RFC v3]: root@letux:~# evtest /dev/input/event5 | head -19 Input driver version is 1.0.1 Input device ID: bus 0x0 vendor 0x0 product 0x0 version 0x0 Input device name: "iio-bridge: bmc150_accel" Supported events: Event type 0 (EV_SYN) Event type 3 (EV_ABS) Event code 0 (ABS_X) Value 8 Min -511 Max 511 Event code 1 (ABS_Y) Value -44 Min -511 Max 511 Event code 2 (ABS_Z) Value -265 Min -511 Max 511