Received: by 10.192.165.148 with SMTP id m20csp5260774imm; Tue, 1 May 2018 11:49:24 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrNU7J3jGBlmavZLpDnqkk0Gi+IJvReqQPSB/Z62K3gqT13yk4EXubCwF9qVVS8utdiBmb5 X-Received: by 2002:a17:902:bd8b:: with SMTP id q11-v6mr6783959pls.178.1525200564629; Tue, 01 May 2018 11:49:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525200564; cv=none; d=google.com; s=arc-20160816; b=GYKrESPlYfuMW8TqSs+DCD8qKNmlLZX/l0wsCBU2Evn6UcAhO9k1Hck+02b/zOls+E 3ObqEn1MmRNjdpFBrHdBaOgci878EaXE6Og2uKc7S7MMaAYIvSRtyX4E3zPPiz+bR6FE rIKSgo5rgT6uhcQALRpEobfAKYulKfR/DznlEYObvulCTd1ZZ5wtqBaDd1/ioHvLF6iM tONo8F4dqUjEKEgQxNwbhDU2IS4EZridf4b+bZ5AJdSywTXpn61DQpuKv3I/CgyWK1zl AhXV59zn1XcAvd7pspxbHyxtuVqz4pXt7UDjFlnE56xtYY5OsnZl6VZC7myEbtrEb5Gy kn5Q== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=3E/XonocyJhzE7pGRqMlIvxn1X4S8a0UfdePiyX1sEc=; b=Mn8BLd7bR9JaQPLPA3pi+C5x4wxGMBLH2xODKbdnuiyLkrVTvg0rCLbCp3A30p+lJG Ee++hV1WJr7U7UtOGXd+Q0CcT8jjp6klH2Jz4bm3X/C9DRSUG9T7ISpKoaGfTG+ljW9c Josda/n2/AkVVKaoQJ0kEgYlGEfBU96331Oo7I2nOO9NKztjJvGU1TTJY+Q7f6BZlKt1 mxqMQMgh7K9sy7IqMiKxGosY/dBWC6ACmd3oU9GTblt3QSXQjFEfjsjINWHAbfFLEmzK 2Zb4olRKXKRprnnPEf3qDn3mBgZ0wj93Imf9NiNwcjvtwIRJXIAIrFcxM51Ys8EVGgsw BHkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dRNlK26J; 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=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z124-v6si3469042pgb.241.2018.05.01.11.49.09; Tue, 01 May 2018 11:49:24 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dRNlK26J; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756537AbeEASs7 (ORCPT + 99 others); Tue, 1 May 2018 14:48:59 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:40818 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756404AbeEASs5 (ORCPT ); Tue, 1 May 2018 14:48:57 -0400 Received: by mail-pf0-f196.google.com with SMTP id f189so9702029pfa.7; Tue, 01 May 2018 11:48:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=3E/XonocyJhzE7pGRqMlIvxn1X4S8a0UfdePiyX1sEc=; b=dRNlK26JpEpTf/fAf7HudTvt2dvs/PKAW9IzG4ybYIgi/oc2lSR0cinCvOKEIsQRfa 62kJ+eCyitN88AbooKBMSYI0jh+MP6C8nfatVAfQMScPti/7LRDLyG3NDXZS44iWEIQT WJA0e/imOMNQb1xRaAGh6ehx7Ru1drk4BYR/zb8xGNk+jmDA44y6XvVAWi4eB0Ijf3AO pFAa8XwPy7gylw+YY9WAPDhDy+GdfNXwgRB+ZyF63QPUKr99RnWiTmPT9aQKI/dJDrW+ Bx/1sWqjKZRmCnqgyRUMm/PILvZLB3FSqzbGIVfb4XlELlcjyXopbW/erD8kaYhaXaox FqyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=3E/XonocyJhzE7pGRqMlIvxn1X4S8a0UfdePiyX1sEc=; b=VGbnGKSLm4EF92fNWMAUzKXQ/La3TBxghAcD+W+UXEzGIkJxujs4+fsV4NnJdlnM40 VSzBHjUZue+dQU5bxUSko/XR6uKJNtU0uWfn2mVsk7HTecKH/ykNr94kjGCENkFk/3Ph UktBA2gtRtecmcyJYt5xWSDlrM+RPj9WkzdBdzfwKd9rGteWGIzjOZ0Kpk2PqP0j7Fwo rsVEaJqfapi/g1sbuJmuGVicfZuTX1oFNZqiHWjde6kaxQy4WYLv97GrNGtws5R+AT9Z ZTP7qQ+ZNmc8xgQsvXSw7tSRuIEIyr+Vt2PKYxMH3sQe+zb5CMDUdhPedSVQvq+JOQSF J+3g== X-Gm-Message-State: ALQs6tCzoOgAM0ohPY6U2HyOHr1DhLVLVDFPx0cRRikaZ2AwSV8oeIs/ fRIAQOyujJYLj7otN1+ADcY= X-Received: by 2002:a17:902:bd03:: with SMTP id p3-v6mr17258989pls.236.1525200536895; Tue, 01 May 2018 11:48:56 -0700 (PDT) Received: from dtor-ws ([2620:0:1000:1511:8de6:27a8:ed13:2ef5]) by smtp.gmail.com with ESMTPSA id q64sm17312683pfg.180.2018.05.01.11.48.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 01 May 2018 11:48:55 -0700 (PDT) Date: Tue, 1 May 2018 11:48:53 -0700 From: Dmitry Torokhov To: Javier Martinez Canillas Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Alexandre Belloni , Rob Herring , linux-input@vger.kernel.org, Nicolas Ferre , Nick Dyer , Mark Rutland , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] Input: atmel_mxt_ts - add missing compatible strings to OF device table Message-ID: <20180501184853.GB52077@dtor-ws> References: <20180410095340.24074-1-javierm@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180410095340.24074-1-javierm@redhat.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? > > - 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 > Thanks. -- Dmitry