Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp357716imp; Thu, 21 Feb 2019 02:57:05 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ5BcT0nb6StXJH4laczxOV2weFgsXMIFpx/gzfkjbxX2yje+h+XMk8cEtsRcoNOR6Z3Xzr X-Received: by 2002:a62:994e:: with SMTP id d75mr39404126pfe.236.1550746625770; Thu, 21 Feb 2019 02:57:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550746625; cv=none; d=google.com; s=arc-20160816; b=JKezb5sBdEOIP+Kqw7iGq4R+yPjQItqQx3Ww2TiN2G44XyYpKlh13CodYLHGvz1tg+ UVwEW7p0a6dlVnCraSrSgblzZ2CMBXym4wjQL4Wc+e8akzGcuszlSXVlwJ2zO4hJKFDB B3LtT087Bm2Bxrb7p2OuLJ76bgRTrmQ/sQc3+i7G2Tcwcgj+SbPTeprTMMVdCTZ32ivC cyoN62uJ1/+TMiiCT0UZpyCYJSJYqlA0LVWZM34LAFVobVskXeIYWq1L5rAK3PRva/Ku hgejdtbYfIgW/jrfevj7ZVPUThnC6R/f/vT2Ujcbk5QeFnk6Nex0gEt2YHS4hAU89Z77 t6Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:dkim-signature:dkim-filter:from; bh=YMB44jb+0g+nd4Og7l02NGHm++mcOMMfpBshErHT638=; b=FsOkvOctavn8eOexTbE922YwJUFoQDwteUSS/RYQI7SBfcw5egVhhZkuV7ZjwlmBE7 4cy6pEXMWtnFBy0uXjMw8KMm2aUd5RnYWF0yBiMMhmvgWx09uggh4+3we6k+pC92zITa 9Thl5EgbgcH+V+gLsGjja6GS1weHVVroYkPwAMgPbKeClptytA7mQWLXyIEnTiHof3Jf FQp97jhM7IgPobN6ZgPgi9p2ibblTWLTDuScOdiyXDUDODrNF3GHm7/az9nkpyl8mDuE S0gTksBT/dPU1qsAJSQqaooEHx6uATwq4OvYpz7CW5EQoferyhWjZhMnmzBLeLbszVND 7XUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@innovation.ch header.s=default header.b=iWasvqAy; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=innovation.ch Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ay6si1420672plb.293.2019.02.21.02.56.50; Thu, 21 Feb 2019 02:57:05 -0800 (PST) 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=pass header.i=@innovation.ch header.s=default header.b=iWasvqAy; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=innovation.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727547AbfBUK4T (ORCPT + 99 others); Thu, 21 Feb 2019 05:56:19 -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=20Tschal=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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.20.1