From patchwork Sat Mar 17 04:37:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean Lucas X-Patchwork-Id: 10290617 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 822BE60385 for ; Sat, 17 Mar 2018 04:44:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 65FD12911A for ; Sat, 17 Mar 2018 04:44:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 56ECF2911D; Sat, 17 Mar 2018 04:44:40 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 C121E2911A for ; Sat, 17 Mar 2018 04:44:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750997AbeCQEoi (ORCPT ); Sat, 17 Mar 2018 00:44:38 -0400 Received: from 4ray.co ([163.172.156.253]:53372 "EHLO 4ray.co" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750853AbeCQEoh (ORCPT ); Sat, 17 Mar 2018 00:44:37 -0400 X-Greylist: delayed 399 seconds by postgrey-1.27 at vger.kernel.org; Sat, 17 Mar 2018 00:44:36 EDT Received: from 4ray.co (localhost [127.0.0.1]) by 4ray.co (OpenSMTPD) with ESMTP id 1f9e15cc; Sat, 17 Mar 2018 04:37:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=4ray.co; h=subject :references:to:cc:from:message-id:date:mime-version:in-reply-to :content-type:content-transfer-encoding; s=mute; bh=3UyH3z1gEK5/ jfkkN2BvYcpzKoY=; b=WiUP1kaJNIf7GRQLJ70ekDMfG/IQNthvDFIqUZc8ZynF 9bM+aVVMoV7BVkt7pY0eSLGq84RBbRBWdRMSV6mOrHUu1P0nfG3xDcv5jhT4EA2z t32gjjVcg9sfqcV8104ugIqlftbQc4VEFhhxGIamT7iOqMonAmSkhd6LxhzjtF6q CBV4tY1aDR2uL5jVx8w16+y34S/myumORLqfEdJ7BBm5Mkv6kAbx9lb/OLChw3lC Tp1csCiFmhb3pGCznELQbm9MkysXzbfG8NF0vlFEfRfz4P/efed3fZsG1iUvIseC inNZLZbihDaafvxnBkxZict+jiWfpW3lk4s8OmMtTw== DomainKey-Signature: a=rsa-sha1; c=nofws; d=4ray.co; h=subject :references:to:cc:from:message-id:date:mime-version:in-reply-to :content-type:content-transfer-encoding; q=dns; s=mute; b=c3ybZ/ 3B64PNmv30Iw7VD1m1gdkqtFnY5nh2qLwIB+gZt+7RlgyEFbedhe+u3EF3zj17u4 C2cQLGaXUPM/VWC4REaL6vZqyPm9ga46/t/LaeDckcshZThfyRiX3kXniimFxKIO 74uIVNDmeVq+nr5fRVHePCzu+DbZ6WkUXZOhO/8q7kcffd2JMjfNi615WXBb+oCH I2JOm9EI+AneU0bxCu8EdSrLTVXOqQfl9UUQLyRl9TQWpibTy5OC97OFElTn0MJY G8g9MIeYBao0iJ65yjLTSz08nsLe31fqDRGcPEhven2+v3UwljZvaixGEztya36J x8BhTkPZA5N1TRnQ== Received: from [10.8.0.6] (10.8.0.6 [10.8.0.6]) by 4ray.co (OpenSMTPD) with ESMTPSA id f00b097a (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128:NO); Sat, 17 Mar 2018 04:37:55 +0000 (UTC) Subject: [PATCH] Input: atmel_mxt_ts: Add hook for Chromebooks with upstream coreboot References: <158c166b-bd85-53ab-dc02-920667c7409d@4ray.co> To: Nick Dyer , Dmitry Torokhov Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org From: Jean Lucas X-Forwarded-Message-Id: <158c166b-bd85-53ab-dc02-920667c7409d@4ray.co> Message-ID: Date: Sat, 17 Mar 2018 00:37:53 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <158c166b-bd85-53ab-dc02-920667c7409d@4ray.co> Content-Language: en-US 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 Chromebooks use coreboot for system initialization. coreboot has always had the default mainboard vendor string for Google machines set to "Google". Google engineers set this string to "GOOGLE" in the coreboot copies of the Chromium OS tree. The atmel_mxt_ts driver in it's current state is set to match the latter case, i.e. it will only bind to a Chromebook's touchscreen either if the device uses the downstream coreboot firmware (providing the matching mainboard vendor string), or if a user running upstream coreboot has manually set the string to "GOOGLE". This patch adds a match for coreboot's default. Signed-off-by: Jean Lucas --- drivers/input/touchscreen/atmel_mxt_ts.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 7659bc48f1db..8c74a3e13cca 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c @@ -3038,6 +3038,14 @@ static const struct dmi_system_id mxt_dmi_table[] = { }, .driver_data = chromebook_platform_data, }, + { + /* Chromebooks with upstream coreboot */ + .ident = "Chromebook", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Google"), + }, + .driver_data = chromebook_platform_data, + }, { } };