Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp5046518ima; Tue, 5 Feb 2019 05:38:33 -0800 (PST) X-Google-Smtp-Source: AHgI3IZDAj7OpJXTHY70Ubwh3WsKLMZ99Wz022n/6h+C8lc+awc4R95R+bLFzoaaClnkvi+NzqMU X-Received: by 2002:a63:5346:: with SMTP id t6mr4727603pgl.40.1549373913515; Tue, 05 Feb 2019 05:38:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549373913; cv=none; d=google.com; s=arc-20160816; b=T1xEuKO1T/i7u5P2JzYMzl9QpvutIU/6jSZO+IMsjA2zPAX1fwXIRGxSVP6Qnf2iIZ DNCVRgxE4uVQDYC5/Jgewv+R5VF2UCRMg5+M5t1++rcv6hiQhe6y6BxjfmK3k/iCpuoU P+62ZY4sJhF1YQ0XEX2xS4o2MEkLg8e/5slefJUB4K5Z8ghifsrj7FN/TbqNNy2C5TSh A2Dr8CryYM7d/gQfIYvCpm+UPDBOS+lQvi/kMA4L4xjVX1E5U+lJ6okjP6GREgfEQuQg DnOGM4O90iUGFbxTFJqcQBE5qRUhWgdP+G9qZRWgbmn/1fAtZRdUfMi3/NIHe70fySiO 1Sjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:dkim-filter :date; bh=sSY0VZTX1YhXlCR4E3b+ux8QUzs1Tqz0U1wXI3u4wSo=; b=CoFtkenfHCnNX1JkLjjIgE1wXDplNFFMEfsl5pHhyxLwtewi5fIbSb1a0tQ65Ymfem D9aYHZVL7elgYJ5wNpkbRAG57CpIysIFsYQ/KuwD1owdqlTNJjVcXqvm4eOxLHNWaHkq fKkvsJNXbW1hzkcY806KDhDdFnl1uqXHwUoPHCep9toKp0SB+TKXKykRSXe6UcTaUZup 0AKoExCamXSZxNQR+eG+FEaAd9dkqZdfgPKjAzFqaHe/NqTHtMoq7DnIzKOtutGNOP24 LVY1oRL/S4Tt7NJHFOoDRVrVo1MCs63gfTlt36FJu51rOKfjdc1zsV5a85S2a0ZCjjK1 WR7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@innovation.ch header.s=default header.b=FAByLLsV; 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 f62si3052271pgc.99.2019.02.05.05.38.17; Tue, 05 Feb 2019 05:38:33 -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=FAByLLsV; 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 S1729393AbfBENSN (ORCPT + 99 others); Tue, 5 Feb 2019 08:18:13 -0500 Received: from chill.innovation.ch ([216.218.245.220]:56826 "EHLO chill.innovation.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726456AbfBENSN (ORCPT ); Tue, 5 Feb 2019 08:18:13 -0500 Date: Tue, 5 Feb 2019 05:18:12 -0800 DKIM-Filter: OpenDKIM Filter v2.10.3 chill.innovation.ch C0B4E640109 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=innovation.ch; s=default; t=1549372692; bh=sSY0VZTX1YhXlCR4E3b+ux8QUzs1Tqz0U1wXI3u4wSo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FAByLLsVB4gvzR/ypjndMAPNCU2p7xOPyaXG6KnLWsinbBKkZjFeSRSZlhu4jjZzn KTo0/KFvsN7f+JU7nrghQCL2YKw7xVN4SNgAui3u+B4D9wb2tspyn2oyndxDosC2lJ xcpXwbXveZx92CrVljf48rVNEwwmRraiE0WCxM1pLGEYdR9XlzYQnkVOlQ2xWteZQ2 5vQKTkrM7QQFNLXwBvofqczzNr2lWqhDEFzEvqIQqyw5sPb990d00PqUFvsYhWCUQ8 qVC2lPimjf9rlMMt3BuJdv0TWj9z/0uI/Fzv4jVSKJCbTQpkn7iUrmd6mp420FjOQA iFJltmXVLZTqw== From: "Life is hard, and then you die" To: Andy Shevchenko Cc: Dmitry Torokhov , Henrik Rydberg , Lukas Wunner , Federico Lorenzi , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] Input: add Apple SPI keyboard and trackpad driver. Message-ID: <20190205131812.GC4225@innovation.ch> References: <20190204081947.25152-1-ronald@innovation.ch> <20190204081947.25152-3-ronald@innovation.ch> <20190205114522.GV9224@smile.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190205114522.GV9224@smile.fi.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andy, On Tue, Feb 05, 2019 at 01:45:22PM +0200, Andy Shevchenko wrote: > On Mon, Feb 04, 2019 at 12:19:47AM -0800, Ronald Tschal?r wrote: > > The keyboard and trackpad on recent MacBook's (since 8,1) and > > MacBookPro's (13,* and 14,*) are attached to an SPI controller instead > > of USB, as previously. The higher level protocol is not publicly > > documented and hence has been reverse engineered. As a consequence there > > are still a number of unknown fields and commands. However, the known > > parts have been working well and received extensive testing and use. > > > > In order for this driver to work, the proper SPI drivers need to be > > loaded too; for MB8,1 these are spi_pxa2xx_platform and spi_pxa2xx_pci; > > for all others they are spi_pxa2xx_platform and intel_lpss_pci. For this > > reason enabling this driver in the config implies enabling the above > > drivers. > > > +config KEYBOARD_APPLESPI > > + tristate "Apple SPI keyboard and trackpad" > > > + depends on (X86 && ACPI && SPI) || COMPILE_TEST > > COMPILE_TEST more or less makes sense in conjunction with architecture selection. > It means, your code always dependant to ACPI and SPI frameworks. > That's why 0day complained. Thanks. Yes, looking at this again I realized I somewhat misunderstood the uses of COMPILE_TEST. I've changed this now to depends on ACPI && SPI && (X86 || COMPILE_TEST) Cheers, Ronald