Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933009AbbLHMPD (ORCPT ); Tue, 8 Dec 2015 07:15:03 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:54974 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932607AbbLHMPA (ORCPT ); Tue, 8 Dec 2015 07:15:00 -0500 X-Originating-IP: 83.155.44.161 Message-ID: <1449576891.28364.15.camel@hadess.net> Subject: Re: [PATCH 0/2] input: Driver for Goodix GT801 2+1 touchscreen From: Bastien Nocera To: Priit Laes , Maxime Ripard , Chen-Yu Tsai , Dmitry Torokhov , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Tirdea Irina Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-input@vger.kernel.org, Aleksei Mamlin , linux-sunxi@googlegroups.com Date: Tue, 08 Dec 2015 13:14:51 +0100 In-Reply-To: <1449473161-3535-1-git-send-email-plaes@plaes.org> References: <1449473161-3535-1-git-send-email-plaes@plaes.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.1 (3.18.1-1.fc23) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1467 Lines: 35 On Mon, 2015-12-07 at 09:25 +0200, Priit Laes wrote: > This series adds support for Goodix GT801 2+1 touchscreen controller > and hooks it up on Gemei G9 tablet. > > Now about GT801 2+1 - I initially tried to implement this inside the > existing Goodix driver, but unfortunately there are too many small > bits and pieces that would make the otherwise simple driver a > complicated mess: >   - endianness differences of coordinate readouts >   - totally different touch protocol >   - configuration layout and version information >   - I2C register differences (2 bytes vs single byte) The goodix driver will get more complicated after we merge Irina's patchset. Instead of looking at the differences between the protocols, which don't look insurmountable (a switch statement in a few places, right?), you should look at the code you could share: - power management - ESD support - ACPI support - the support for variants in goodix.c (911-variants, and 967-variants) - ability to read and write config data to the device Taking this into account (and the fact that I can't read Chinese that well, so my reading of the specs is cursory), would it make sense to merge the 2 drivers? CC'ing Irina about this. Cheers -- 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/