Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1188381ybc; Tue, 12 Nov 2019 16:07:50 -0800 (PST) X-Google-Smtp-Source: APXvYqz3+qjytl60w70KYSF48yLLO0dBWhNAY/5h6MTypXWkJo3LkX2kNg8agmxLYQIhmrDNNvTj X-Received: by 2002:a17:906:74d7:: with SMTP id z23mr46544ejl.1.1573603670055; Tue, 12 Nov 2019 16:07:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573603670; cv=none; d=google.com; s=arc-20160816; b=cDwHm7RCbwOFFDeXORBJRwssGOmIzKQZGdxSycKQWOnLDT3418/RsENjVfmktkWN2G ODc79+paBoe3wOpYFbqutAV0JmR7NcktNpPj2DnZhDyGcOSJyKJFyAoYwxAaq6yqSZxO g9VfRBpgiJDNxe8abq1jRjCfZ9rkh/cmNO75a6KRDbni6lPw+u+3NebB4LYAF5Qen3Ug k5r5n2A0x7m7Rx8aQ21S/acEEXiOxb8n0baeczdOL0i9UUpU+UIdoPAwQoffzf9G4x9K /91FmWxJr1+cK2e/yTeQiY+mTg81HerAeeI1uvPa1MouCyF4g+1lRZB5HtYFrhQlrpud HedQ== 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; bh=qxixb8eOG9f0Waj85Ii66sBcrPEL1SwYM8/OBShmzIU=; b=irWruAUqNwfQmXwqQRXWuVjV+kqc/20XPhVpbjEF0lYy8137jbl3nw9TzK1FDV72Ml 3qR+oYypyT8Rp+X9Vscia1aKsvQ+eRDeW3WxNaU0T+lav+samDjnA3v8XTDnX2DdHO8L T+sWwLwMxfDsjwsqZLPO5tXNjWWvf6ep773Dstc6y/sFBaZXwmrs1gWQs5YFnqRMw7ef MQR8Q7UA1oC8NgXuDIoBSvMiuyyTJ/aicu1T9w8e249WuULutQYBmOTTV0pGAGS6l3E/ 7FuA0K/Kmsf/UH6sykWGqzjcwd7WmB+3uFv1Y/yScOYWtwzq6jX9v8Uc2Da6DAV49XzV UO5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GwbkzzmF; 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 z65si109996ede.388.2019.11.12.16.07.24; Tue, 12 Nov 2019 16:07:50 -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=@gmail.com header.s=20161025 header.b=GwbkzzmF; 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 S1726960AbfKMAGj (ORCPT + 99 others); Tue, 12 Nov 2019 19:06:39 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:45866 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726912AbfKMAGj (ORCPT ); Tue, 12 Nov 2019 19:06:39 -0500 Received: by mail-pf1-f195.google.com with SMTP id z4so250983pfn.12; Tue, 12 Nov 2019 16:06:38 -0800 (PST) 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=qxixb8eOG9f0Waj85Ii66sBcrPEL1SwYM8/OBShmzIU=; b=GwbkzzmFd/3KSzse4oSzV8spTmS1Hq9MSJ+MjSnZA+AyJwybaLEigvuHFIEfbiXS6d 4+JC3LJHQDNqaajASUJnO1Wh8OxVOD/XO4MCWVkbGFCQIT7yI8nSIHGUX9NNWmiXLOpQ x1E3HuSPQU5I02PNA4Ljijlq2jYzndkSPc4wTal6/uxy/vUphPQIu+RNEgVdNRhPdJFp UMrT5zav/9u1Ad/hyZOdqet3bZQLmSaXoKjKzrC3Z+vvaj9Ztv1OpNcI6TBFgismEQbH D3n0QrVc6HbfkwIa+xnASGfiH/p7C47ueeJMXISnDok9va38S99za/nX9YNPE/INcKvh oJcA== 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=qxixb8eOG9f0Waj85Ii66sBcrPEL1SwYM8/OBShmzIU=; b=dyaP+rD7nB285rDe4pV3Z2c2nBJeR3Ec3m0JBgSQVuetgPSd59Bnvpib0clet8RM3i WRCD5kEBoApGS/6NL+ATRXxKN87v8xP5Tj3JzK0hAnWlb8W4ZuoDfRMrWRtZVGsdU5i0 djtXEFvPw1QUiPo/DFG7IspNf9Z9hmt1JCw+fzlvraUnUNlpM0NoEGIpdupI8V8xx3nf oWisXj5Q2cgdEP5p38mXm4x1RE588Cr6KaQ97aBr/KlXwfZr5lZuK/a7oVm9DcQLduIg uk0BnkyX2juzSLCNg/s5qqvJNxd2TCLSh/moriptZYz2mPuRH+r1erSlrUQmsfrGYg6O ++WQ== X-Gm-Message-State: APjAAAX/Fctsv7pi5XW6N379wtG8oILnHTZtVXzMyqbQ251Z6/KioTo6 h5HNiRNLhprPGSAfomQ5IEw= X-Received: by 2002:aa7:9f89:: with SMTP id z9mr755874pfr.123.1573603598329; Tue, 12 Nov 2019 16:06:38 -0800 (PST) Received: from dtor-ws ([2620:15c:202:201:3adc:b08c:7acc:b325]) by smtp.gmail.com with ESMTPSA id z10sm131918pgg.39.2019.11.12.16.06.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Nov 2019 16:06:37 -0800 (PST) Date: Tue, 12 Nov 2019 16:06:35 -0800 From: Dmitry Torokhov To: Sebastian Reichel Cc: Sven Van Asbroeck , Marek Vasut , Adam Ford , linux-kernel@vger.kernel.org, linux-input@vger.kernel.org Subject: Re: [PATCH v1 1/3] Input: ili210x - do not retrieve/print chip firmware version Message-ID: <20191113000635.GH13374@dtor-ws> References: <20191112164429.11225-1-TheSven73@gmail.com> <20191112233421.eh44mv6ji2tk6ki2@earth.universe> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191112233421.eh44mv6ji2tk6ki2@earth.universe> 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 On Wed, Nov 13, 2019 at 12:34:21AM +0100, Sebastian Reichel wrote: > Hi, > > On Tue, Nov 12, 2019 at 11:44:27AM -0500, Sven Van Asbroeck wrote: > > The driver's method to retrieve the firmware version on ili2117/ > > ili2118 chip flavours is incorrect. The firmware version register > > address and layout are wrong. > > > > The firmware version is not actually used anywhere inside or > > outside this driver. There is a dev_dbg() print, but that is > > only visible when the developer explicitly compiles in debug > > support. > > > > Don't make the code more complicated to preserve a feature that > > no-one is using. Remove all code associated with chip firmware > > version. > > > > Link: https://lore.kernel.org/lkml/20191111181657.GA57214@dtor-ws/ > > Cc: Marek Vasut > > Cc: Adam Ford > > Cc: > > Cc: linux-input@vger.kernel.org > > Tree: https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git/log/?h=next > > Signed-off-by: Sven Van Asbroeck > > --- > > The firmware version check does one relevant thing: It tests > the I2C communication, which tends to be useful for board > bringup and development boards (which often allow to disconnect > (touch-)screens). If/when this is needed I propose we add a separate "lite" xfer check, similar to what elants_i2c and many other drivers are doing. Thanks. -- Dmitry