From patchwork Thu Feb 21 10:56:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Life is hard, and then you die" X-Patchwork-Id: 10823673 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 723701805 for ; Thu, 21 Feb 2019 10:56:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 612A23074B for ; Thu, 21 Feb 2019 10:56:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 548A93077D; Thu, 21 Feb 2019 10:56:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F13DD3074B for ; Thu, 21 Feb 2019 10:56:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727464AbfBUK4S (ORCPT ); Thu, 21 Feb 2019 05:56:18 -0500 Received: from chill.innovation.ch ([216.218.245.220]:50854 "EHLO chill.innovation.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725858AbfBUK4S (ORCPT ); Thu, 21 Feb 2019 05:56:18 -0500 Received: from localhost (localhost [127.0.0.1]) by chill.innovation.ch (Postfix) with ESMTP id 8FC676401CB; Thu, 21 Feb 2019 02:56:17 -0800 (PST) X-Virus-Scanned: amavisd-new at Received: from chill.innovation.ch ([127.0.0.1]) by localhost (chill.innovation.ch [127.0.0.1]) (amavisd-new, port 10024) with LMTP id o1mQMtG4FYRI; Thu, 21 Feb 2019 02:56:15 -0800 (PST) From: =?utf-8?q?Ronald_Tschal=C3=A4r?= DKIM-Filter: OpenDKIM Filter v2.10.3 chill.innovation.ch 59D066400C4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=innovation.ch; s=default; t=1550746575; bh=YMB44jb+0g+nd4Og7l02NGHm++mcOMMfpBshErHT638=; h=From:To:Cc:Subject:Date:From; b=iWasvqAy2bCBFx6Gr9MY868GPHp/GKu0BtIWkzrxVHaOrK3wcmcLWj6v9RUlxlXFk 8mBepxHZ4qA3aMtqFiZGrusRsKjDiRLP2T/Ci/i+wswOgXD/9TIDE9r85sodcS3l4Q 5BEyp68+wC95TDXUbZDQx2iFez6oZ7jT6BUDCFL+C8oLYOHFAeKKoH5mzIlRX7Dqb4 9DNmWk3FrTxxoIJxWH5QUvKbhQNRzETr44kQohgLAO+12EGKZz0X9XJ/yFLhamySvl cTxP2qI/ekD8Ns6QJTjti1PKUX8nLgaNqgqGUGf7vs5hLNY8oGg6HtEJ3x6v5Q8yIt lT9oyGGx/HFDg== To: Dmitry Torokhov , Henrik Rydberg Cc: Lukas Wunner , Federico Lorenzi , Andy Shevchenko , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] Add Apple SPI keyboard and trackpad driver Date: Thu, 21 Feb 2019 02:56:07 -0800 Message-Id: <20190221105609.5710-1-ronald@innovation.ch> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This changeset adds a driver for the SPI keyboard and trackpad on recent MacBook's and MacBook Pro's. The driver has seen a fair amount of use over the last 2 years (basically anybody running linux on these machines), with only relatively small changes in the last year or so. For those interested, the driver development has been hosted at https://github.com/cb22/macbook12-spi-driver/ (as well as my clone at https://github.com/roadrunner2/macbook12-spi-driver/). The first patch is just a placeholder for now and is provided in case somebody wants to compile the driver while it's being reviewed here; the real patch has been submitted to dri-devel and is being discussed there, with the intent/hope that I can get an Ack and permission to merge it through the input subsystem tree here as part of this patch series. Changes in v2: Applied all feedback from review by Andy Shevchenko, including: - reworked logging to use dev_xxx() everywhere - split 16-bit model_id field into 2 8-bit fields - factored out several pieces of code into separate functions - many code style improvements and cleanups - Kconfig dependency fixes The full set of changes (except for the Kconfig) can be viewed at https://github.com/roadrunner2/macbook12-spi-driver/ as individual commits a651bb9..f832caa in the upstreaming-review branch. Ronald Tschalär (2): drm/bridge: sil_sii8620: depend on INPUT instead of selecting it. Input: add Apple SPI keyboard and trackpad driver. drivers/gpu/drm/bridge/Kconfig | 2 +- drivers/input/keyboard/Kconfig | 14 + drivers/input/keyboard/Makefile | 1 + drivers/input/keyboard/applespi.c | 2003 +++++++++++++++++++++++++++++ 4 files changed, 2019 insertions(+), 1 deletion(-) create mode 100644 drivers/input/keyboard/applespi.c