Received: by 10.213.65.68 with SMTP id h4csp3678728imn; Tue, 10 Apr 2018 02:58:03 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/zmMxuk3d4NPq2+8iW+DY52/16uFzxFbTXXObtSarDyt0+fSxsJhYjfmqXpYRWuL4liV/E X-Received: by 10.98.72.74 with SMTP id v71mr2132713pfa.241.1523354283579; Tue, 10 Apr 2018 02:58:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523354283; cv=none; d=google.com; s=arc-20160816; b=i7m/UjthjoidFQFkzjgErFyZzzRdOHmTol2zunuqU3POQaCMSHq4I1t7azWI8ycZK6 jqbyS9/slu6wPftlVmkMoQ/fEyYPlI2YbxIJuf0LotPASABP/F0HEYW6dO6VXlGXtsl8 eif1VidG0JQgi98zm0WN4RC+Ldkozz5v7PUpN5ggh0+dN56tb7razvDwQVLyzbqX/fvM gVe+kXULXNZrY9900Qq0b3ciPcZRd6UcxHCxZ5SseehdGmf4EQ+KOHnUGow8fQ9v0qYZ YxtS8FVWuawj+pjC2LLGP396P7YFy1T4okUdgc4F586SF+u8BIzIM9v//trjCzBUEQhS 11Aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=kOo1OXL8VNFRO2NYVZAIKi3hWDNJYdu1x/x8X2BZ7QU=; b=DqepW0ddS4+LxPs+ExM8OO67PNsLsdm0qakuZoU7jh88b4KumM5bkBvb4jO83BpNG8 IcKewipTw9T3vf1zWVH012W/UvdqXZIkvMmD2TLVeKqW/MsTxwXAog7jH873B+trkLdu h9wURu1IjCXo/HW+n0Jvl/XXzhON81RtxhqFHaZDVsfyCjQ10ikpqxWzpDT6zzLkEfOp wUPvc07fIY8AnFrRC0ZUsqmaLttN6Oxhj+W1JPAP4HH35gPOLBYIDW5/E4Xm0eZfnTw6 2+/efY5Ucf9z1bd8rSUIqLa8ICgwNgBFGssdpMIsWWyE3AVUNMXtiFuoxgYX0qNkMCFe c65Q== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3si1811019pfn.158.2018.04.10.02.57.26; Tue, 10 Apr 2018 02:58:03 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752685AbeDJJyA (ORCPT + 99 others); Tue, 10 Apr 2018 05:54:00 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:38893 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752487AbeDJJx6 (ORCPT ); Tue, 10 Apr 2018 05:53:58 -0400 Received: by mail-pl0-f65.google.com with SMTP id c7-v6so3889273plr.5 for ; Tue, 10 Apr 2018 02:53:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=kOo1OXL8VNFRO2NYVZAIKi3hWDNJYdu1x/x8X2BZ7QU=; b=JZ4I6s5ZUaNV/cz8o+zCB3GeUqymGJ+tJVTM2cNp9etSdM3FS0aC4S+oImhpCU5DY7 AWLWM63P5dyHXR3P8Ar9+gQNs1y2ihoVsvKmsBmUxk3F+q+aWsbIvqF+H5rtkZJGq078 EBlbsLuuuy+4uLyKCipmsLvmcYJ5bKowCTmkRQyhmRZaOrqRgcvJm1lHHF7vMD0GLBrl FKe64GGiaHJmBudmFv/6cGzZeXVDXC4337Iks7WKteVoJALWzMNo3pb7A+5a8h6z3gnG rf/jp9YP8p8PdpK6VGrFv56EzSlzFUijVfFReFNbM+kMf3oC8n/2M8w9BCc2MtszMBCS T+YQ== X-Gm-Message-State: AElRT7FDWWC9JjIsH9ny9r2uTpq1uLNEz+Tsnb9++BKc8+CBZMNABzyJ m8xoTvWgfK+LPTvt8kaAOdBBMlper8w= X-Received: by 2002:a17:902:158b:: with SMTP id m11-v6mr42505921pla.300.1523354037517; Tue, 10 Apr 2018 02:53:57 -0700 (PDT) Received: from minerva.redhat.com ([90.77.100.34]) by smtp.gmail.com with ESMTPSA id c66sm5007111pfc.56.2018.04.10.02.53.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Apr 2018 02:53:56 -0700 (PDT) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Javier Martinez Canillas , devicetree@vger.kernel.org, Alexandre Belloni , Rob Herring , Dmitry Torokhov , linux-input@vger.kernel.org, Nicolas Ferre , Nick Dyer , Mark Rutland , linux-arm-kernel@lists.infradead.org Subject: [PATCH] Input: atmel_mxt_ts - add missing compatible strings to OF device table Date: Tue, 10 Apr 2018 11:53:40 +0200 Message-Id: <20180410095340.24074-1-javierm@redhat.com> X-Mailer: git-send-email 2.14.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit af503716ac14 ("i2c: core: report OF style module alias for devices registered via OF") fixed how the I2C core reports the module alias when devices are registered via OF. But the atmel_mxt_ts driver only has an "atmel,maxtouch" compatible in its OF device ID table, so if a Device Tree is using a different one, autoload won't be working for the module (the matching works because the I2C device ID table is used as a fallback). So add compatible strings for each of the entries in the I2C device table. Fixes: af503716ac14 ("i2c: core: report OF style module alias for devices registered via OF") Reported-by: Enric Balletbo i Serra Signed-off-by: Javier Martinez Canillas --- Documentation/devicetree/bindings/input/atmel,maxtouch.txt | 6 +++++- drivers/input/touchscreen/atmel_mxt_ts.c | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/input/atmel,maxtouch.txt b/Documentation/devicetree/bindings/input/atmel,maxtouch.txt index 23e3abc3fdef..cd43fb8bc2ce 100644 --- a/Documentation/devicetree/bindings/input/atmel,maxtouch.txt +++ b/Documentation/devicetree/bindings/input/atmel,maxtouch.txt @@ -1,8 +1,12 @@ Atmel maXTouch touchscreen/touchpad Required properties: -- compatible: +- compatible: Must be one of the following + atmel,qt602240_ts + atmel,atmel_mxt_ts + atmel,atmel_mxt_tp atmel,maxtouch + atmel,mXT224 - reg: The I2C address of the device diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 7659bc48f1db..e8ef83f168d6 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c @@ -3238,7 +3238,11 @@ static int __maybe_unused mxt_resume(struct device *dev) static SIMPLE_DEV_PM_OPS(mxt_pm_ops, mxt_suspend, mxt_resume); static const struct of_device_id mxt_of_match[] = { + { .compatible = "atmel,qt602240_ts", }, + { .compatible = "atmel,atmel_mxt_ts", }, + { .compatible = "atmel,atmel_mxt_tp", }, { .compatible = "atmel,maxtouch", }, + { .compatible = "atmel,mXT224", }, {}, }; MODULE_DEVICE_TABLE(of, mxt_of_match); -- 2.14.3