Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751998AbbKJIwl (ORCPT ); Tue, 10 Nov 2015 03:52:41 -0500 Received: from mail-ob0-f178.google.com ([209.85.214.178]:35513 "EHLO mail-ob0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751279AbbKJIwg (ORCPT ); Tue, 10 Nov 2015 03:52:36 -0500 MIME-Version: 1.0 In-Reply-To: <56412410.4030900@synaptics.com> References: <1446766950-31213-1-git-send-email-aduggan@synaptics.com> <56412410.4030900@synaptics.com> Date: Tue, 10 Nov 2015 09:52:34 +0100 Message-ID: Subject: Re: [PATCH 22/26] Input: synaptics-rmi4 - Add F30 support From: Linus Walleij To: Andrew Duggan Cc: Benjamin Tissoires , Linux Input , "linux-kernel@vger.kernel.org" , Benjamin Tissoires , Dmitry Torokhov , Christopher Heiny , Stephen Chandler Paul , Allie Xiong Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1657 Lines: 38 On Mon, Nov 9, 2015 at 11:54 PM, Andrew Duggan wrote: > F30 is currently only used in touchpads and mostly used to report the the > click of the tact switch on clickpads. When the GPIO interrupts we report > the appropriate button event to the host. Because the GPIOs are wired to our > ASIC and not to the host I'm not sure there is any benefit to exposing it to > the host using gpio_chip. > > Dmitry asked a similar question and here is my response to him: > http://www.spinics.net/lists/linux-input/msg40458.html So I think this is basically a terminology problem. There are some lines here that the firmware calls "GPIO" (GENERAL PURPOSE input/output) but in practice it really doesn't mean that, right? In practice this thing is not randomly connected to doorbells, relays, I2C bitbanged buses or whatnot. It is connected to certain keys, and it is used for input. So it is not GPIO at all, but special purpose input. No output. Then it should be contained totally inside the RMI4 driver and connect directly to the input layer. It doesn't matter if the Synaptics firmware and/or internal documentation calls it GPIO, if it walks and talks and acts like a duck it is a duck. So register an input device for it and dispatch input events and be happy. For LEDs it makes more sense to actually register with the LEDs subsystem as it is clearly output-only. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/