Received: by 10.192.165.148 with SMTP id m20csp5310630imm; Tue, 1 May 2018 12:42:56 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoTbMOboHVKGdpiSKzkT0oo4BC/6ubNcWbg9JwcAsbZ52izQxKBe9K0bnGutu6hbQe5PyQV X-Received: by 10.98.12.202 with SMTP id 71mr16719579pfm.61.1525203776874; Tue, 01 May 2018 12:42:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525203776; cv=none; d=google.com; s=arc-20160816; b=agyalVrboNowCdq3MgxoXAXaZ0eGaikjb25BOn/f04EUItE6qcgNKLnRoDgdfTvvnP 0co0wsZ/Qk+F1FehKdQg7EJ48gIEkxk9UIktbqSlg4HOvaO/eFVbve/JW191bq3UcvBq G4PqZNiJqyxwXejCAMvGSjfCg/S/u7m2v/BD5XH6WMfq6uHN7Vj9nyKQwmQEasOYFH2Y rfueHCAXGr53V3DBW5VMDsf7oqZbVanlhtksK289CPN0TJ91Pnnmta/UY610RFTq1zbL DHAQSWzwPFmzRv0GjRZyA2gyJwQ9BibO5it9mqjqwrZgCC06uSjWRvzLjaYS11EWgJvY xRPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dmarc-filter :arc-authentication-results; bh=Kf4fIozdKEAmu5EN7kfuHnW8QqGWOQQfgBlmDaDU6C4=; b=QlMq8e5dnjPkW1mJ9yNLp4bn8F1wZ0KTb/GiYdbTPid0jz8bF50rLadzozefgBJZ2i +x+PBrGr7Y18zh69PVruEfGKVCeLesDRmgv3Re3zOHZXQ4dmTKk4tSsSbZqMz0rtHFfX OBggTKpW5+JuGWCr/uUCmVlE/do9qiGX0lhjIJlb/kZmLvrTcw4ubGHj/jmANwtW8Ndf avmIWr6Fo6yJmCvSeFgq5sGcIy8YBLZvHw/EPhllBIXBY8/sjRFIN2K2QTjO32mk5DZ0 dSlMSw61sBbgmUyjyDy1wggi55Lz9ep1zU/KqE3yJYgT4VE9kkPmZTZpWThjis58VBcd 6KeA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q23si9994540pfd.153.2018.05.01.12.42.42; Tue, 01 May 2018 12:42:56 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751094AbeEATmc (ORCPT + 99 others); Tue, 1 May 2018 15:42:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:59658 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750780AbeEATma (ORCPT ); Tue, 1 May 2018 15:42:30 -0400 Received: from mail-qt0-f172.google.com (mail-qt0-f172.google.com [209.85.216.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C3DF82370D; Tue, 1 May 2018 19:42:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C3DF82370D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=robh+dt@kernel.org Received: by mail-qt0-f172.google.com with SMTP id q13-v6so14939518qtp.4; Tue, 01 May 2018 12:42:29 -0700 (PDT) X-Gm-Message-State: ALQs6tDGIBWIG6wTuXrpnUVYN/jvuq16rvcP4jKvv65Fh0xtIh7U1w4S A0+M5lJI2Cf2jU81hDFn9jAmfXjHmQsnTICp+w== X-Received: by 2002:aed:3a46:: with SMTP id n64-v6mr3861164qte.118.1525203748872; Tue, 01 May 2018 12:42:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.155.2 with HTTP; Tue, 1 May 2018 12:42:08 -0700 (PDT) In-Reply-To: <20180501184853.GB52077@dtor-ws> References: <20180410095340.24074-1-javierm@redhat.com> <20180501184853.GB52077@dtor-ws> From: Rob Herring Date: Tue, 1 May 2018 14:42:08 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] Input: atmel_mxt_ts - add missing compatible strings to OF device table To: Dmitry Torokhov Cc: Javier Martinez Canillas , "linux-kernel@vger.kernel.org" , devicetree@vger.kernel.org, Alexandre Belloni , linux-input@vger.kernel.org, Nicolas Ferre , Nick Dyer , Mark Rutland , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 1, 2018 at 1:48 PM, Dmitry Torokhov wrote: > On Tue, Apr 10, 2018 at 11:53:40AM +0200, Javier Martinez Canillas wrote: >> 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 > > I do not think we should document ad-hoc compatible strings that were > introduced by various vendors as the documented ones, so I'd rather > dropped this chunk and leave only "atmel,maxtouch" as compatible that > everyone should be using. > > The changes to the driver to support the existing DTSes can of course be > applied. > > Rob, any objections? I'd prefer we list them in the binding as deprecated. Then we document somewhere besides this thread to not use them. And there are 3 dts changes needed as well: $ git grep atmel,mXT224 $ git grep atmel,qt6 $ git grep atmel,atmel_mxt arch/arm/boot/dts/at91-sama5d4ek.dts: compatible = "atmel,atmel_mxt_ts"; arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts: compatible = "atmel,atmel_mxt_tp"; arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts: compatible = "atmel,atmel_mxt_ts"; Rob