Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752213AbaFFH20 (ORCPT ); Fri, 6 Jun 2014 03:28:26 -0400 Received: from relay-s04-hub002.domainlocalhost.com ([74.115.207.101]:27788 "EHLO relay-S04-HUB002.domainlocalhost.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751390AbaFFH2Y (ORCPT ); Fri, 6 Jun 2014 03:28:24 -0400 Content-Type: multipart/mixed; boundary="_000_77BC725C9062764F874D79F51E1F1A8F4406B88FS04MBX0101s04lo_" From: Dudley Du To: Dmitry Torokhov , "Rafael J. Wysocki" , Alan Stern CC: Benson Leung , Lily Rui , "Daniel Kurtz" , "linux-input@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: [PATCH v2 0/14] input: cyapa: re-architecture driver to support multi-trackpads in one driver Thread-Topic: [PATCH v2 0/14] input: cyapa: re-architecture driver to support multi-trackpads in one driver Thread-Index: Ac+BWOF9//n+u9yTR6yWTSDzhXEDgg== Date: Fri, 6 Jun 2014 07:28:22 +0000 Message-ID: <77BC725C9062764F874D79F51E1F1A8F4406B88F@S04-MBX01-01.s04.local> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: <77BC725C9062764F874D79F51E1F1A8F4406B88F@S04-MBX01-01.s04.local> x-originating-ip: [10.30.12.146] MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --_000_77BC725C9062764F874D79F51E1F1A8F4406B88FS04MBX0101s04lo_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable This patch set is made based on kernel 3.15.0-rc8. It's aimed to re-architecture the cyapa driver to support old gen3 trackpad device and new gen5 trackpad device in one cyapa driver for easily productions support based on customers' requirements, and add sysfs functions and interfaces supported that required by users and customers. Because the earlier gen3 and the latest gen5 trackpad devies using two different chipsets, and have different protocol and interfaces. If supported these two trackpad devices in two different drivers, then it will be difficult to manage productions and later firmware updates. it will cause customer don't know which one to use and update because these two trackpad devices have been used and integrated in same one productions at a time, so must to support these two trackpad devices in same on driver. The new architecture is made of: cyapa.c - the core of the architecture, supply interfaces and functions to system and read trackpad devices. cyapa_gen3.c - functions supported for gen3 trackpad devices, cyapa_gen5.c - functions supported for gen5 trackpad devices. Beside this introduction patch, it has 14 patches listed as below. For these patches each one is patched based on previous one. patch 1/14: re-architecture cyapa driver with core functions, and applying the device detecting function in async thread to speed up system boot time. patch 2/14: add cyapa driver power management interfaces supported. patch 3/14: add cyapa driver runtime power management interfaces supported. patch 4/14: add cyapa key function interfaces in sysfs system. Including read firmware version, get production ID, read baseline, re-calibrate trackpad baselines and do trackpad firmware update. patch 5/14: add read firmware image and read raw trackpad device' sensors' raw data interface in debugfs system. patch 6/14: add gen3 trackpad device basic functions supported. patch 7/14: add gen3 trackpad device firmware update function supported. patch 8/14: add gen3 trackpad device report baseline and do force re-calibrate functions supported. patch 9/14: add gen3 trackpad device read firmware image function supported= . patch 10/14: add gen5 trackpad device basic functions supported. patch 11/14: add gen5 trackpad device firmware update function supported. patch 12/14: add gen5 trackpad device report baseline and do force re-calibrate functions supported. patch 13/14: add gen5 trackpad device read firmware image and report sensors' raw data values functions supported. patch 14/14: add function to monitor LID close event to off trackpad device= . This message and any attachments may contain Cypress (or its subsidiaries) = confidential information. If it has been received in error, please advise t= he sender and immediately delete this message. --_000_77BC725C9062764F874D79F51E1F1A8F4406B88FS04MBX0101s04lo_ Content-Disposition: attachment; filename="winmail.dat" Content-Transfer-Encoding: base64 Content-Type: application/ms-tnef; name="winmail.dat" eJ8+IjlwAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEJgAEAIQAAADI5NzU2RjU4 ODg0RDRCNDFCMDlFODZEOUM3NkRCMEE4AD0HAQ2ABAACAAAAAgACAAEFgAMADgAAAN4HBgAGAAcA HAAWAAUALwEBIIADAA4AAADeBwYABgAHABwAFgAFAC8BAQiABwAY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AMQAwAC4A MwAwAC4AMQAyAC4AMQA0ADYAXQAAAAAAWfE= --_000_77BC725C9062764F874D79F51E1F1A8F4406B88FS04MBX0101s04lo_-- -- 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/