Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp128800ybx; Tue, 5 Nov 2019 21:02:19 -0800 (PST) X-Google-Smtp-Source: APXvYqzZDk7YBWYGCAE2NyxZm+tmsp9caPxfCV/W+5mK0m5933GfxzGrL7S0Bx2uQw0e9J1w9Dm3 X-Received: by 2002:a17:906:7691:: with SMTP id o17mr11004968ejm.323.1573016539656; Tue, 05 Nov 2019 21:02:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573016539; cv=none; d=google.com; s=arc-20160816; b=tLVK+PtJRuvw/ws8jC+7v68sD4nI+tAIEPT+qFadqNbbrtdskskCpxn+Ahdrb9NCLV sVFMaTk7kA8UVFDLKdRomU8PlON74bnxq1e4ANaP3cTBPTmATh1YATzujXeNDy+WGif2 tG210Dvetmg1BAx9x3oPvBlLb6X2fc+X5ZS93yalIEGtsi/MRwjDADmcMc1tFgysK0OP Ck95zFtKILc9bj6JdXa5QrFvyxrOtwDJppyfxQDLyXMMBIV4zFsWlgVM2t12nXcL1jFg vhPKBcqzD3q9zzHViJFVzhLQ+gENzbrR3mRi7LPhPQS9T4orTK4ojEMWFeS4MuBJg0oT oDPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:ironport-sdr:ironport-sdr; bh=O8u8ALgS4yQbEXZFcUuCPpjv6JpL9nvvEZqu5emnsRg=; b=aLlGX0HckDbgjCVfZGERceBdSL/VoxvknT0fZV90n57fWmqVleQwSegZ8xrB63IuxV +CZNy/h17BDJHmYRjVHPDE4CwcDGlU7hzDoFVxTgoGLzHHkOPHsTuOApNab6cV/tRrF/ obfgYQR174oOPu72lCIjZ8Is1G9v43Yf55OzG+7zH2yAXgBeFAa1pUS/iI3XoqZigvnV t9NMjq7hFeXUnt4YYgdvIh2sUd3D6eImBPy3IAmv9VjLqDh4POB4X3wtA0prUqTGADlH 8Jthx6hToLl/t0VdedAz4d5I1RLFXLhODbkQF789C+1VxNJInSJ2XCO4mxuNEWANiYBV 84qw== 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 j16si10926684eda.161.2019.11.05.21.01.56; Tue, 05 Nov 2019 21:02:19 -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; 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 S1725797AbfKFFBG (ORCPT + 99 others); Wed, 6 Nov 2019 00:01:06 -0500 Received: from esa4.mentor.iphmx.com ([68.232.137.252]:63027 "EHLO esa4.mentor.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725294AbfKFFBG (ORCPT ); Wed, 6 Nov 2019 00:01:06 -0500 IronPort-SDR: LEjyBz/hShNhraoTai+ddYuiJnC1TtvDitH1geiFEYqBgSNnPJ5yyTpNes34b20w6BzO/ESa4Q Q1jxx0EeFreH/4yyQPN8VINzeXOuowgWy4zeF5O/d0OPcrCQwwVzZ8vrKBK5hNWMpvgmjQs4Cu jYLLgiedWyxri+t4QZU7bAtwAoJhuTk4C2pl/gxfMbXWZu3x/ZhMR6r7eKcBdjXbykUrVwh+X/ 4r0BP/x4V+UipLocTcCfUhdJdo2tRZu9aFpsSLYkQjwKEs8+R1Z74YrfqMO4vQRhV7Fu6rx2/5 WNg= X-IronPort-AV: E=Sophos;i="5.68,272,1569312000"; d="scan'208";a="42941235" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa4.mentor.iphmx.com with ESMTP; 05 Nov 2019 21:01:05 -0800 IronPort-SDR: DEnSIc8sTnkLz5TFHo1a55qhTvAGt9UxuO2A7jtmFGllmL/3TK6ahhHsxD4lub43mEv+fXH8zN OOSQ6QW3Os9QirBX6VSMORtYK80kVPhsmuQ+9XuZ1xJOATJZudosND+xPWiMnNXIkrHWZ2bwWX ZiOyKXf4fsSyTRvgBvKEJS3heEX/xY3QBHmOMKPEdKuOGUflVjVL2i+wxbBVOsiCqwb7Ksgpnj OUUgA3ETpDGQKv5egt0aij8PYaqRTkjVw4j9WFtWx8izFGqJytzZJ7fXQLa7UVkfvFIsEWmWtW JII= Subject: Re: [PATCH v4 01/48] Input: introduce input_mt_report_slot_inactive To: Dmitry Torokhov , Henrik Rydberg CC: , , , , , References: <20191029072010.8492-1-jiada_wang@mentor.com> <20191029072010.8492-2-jiada_wang@mentor.com> <20191030232311.GK57214@dtor-ws> From: Jiada Wang Message-ID: Date: Wed, 6 Nov 2019 14:00:55 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191030232311.GK57214@dtor-ws> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SVR-ORW-MBX-06.mgc.mentorg.com (147.34.90.206) To svr-orw-mbx-03.mgc.mentorg.com (147.34.90.203) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dmitry thanks for your comment, I will update accordingly in v5 patch-set Thanks, Jiada On 2019/10/31 8:23, Dmitry Torokhov wrote: > On Tue, Oct 29, 2019 at 06:13:09PM +0100, Henrik Rydberg wrote: >> Hi Jiada, >> >>> input_mt_report_slot_state() ignores the tool when the slot is closed. >>> which has caused a bit of confusion. >>> This patch introduces input_mt_report_slot_inactive() to report slot >>> inactive state. >>> replaces all input_mt_report_slot_state() with >>> input_mt_report_slot_inactive() in case of close of slot. >>> >>> Signed-off-by: Jiada Wang >> >> NACK on this one. >> >> We already discussed this patch and the potentially changed behavior to >> existing setups stemming from ignoring the MT state. >> >> On the upside, what I can see this patch does exactly no difference to the >> cases where the MT state is set, so it can be safely dropped without >> affecting the rest of the patch series. > > I guess Jiada's concern that we are forcing to pass tool type even > though we end up ignoring it intervally, which confuses users of the API > as they might not know what tool to specify. > > How about we do: > > static inline void input_mt_report_slot_inactive(struct input_dev *dev) > { > input_mt_report_slot_state(dev, 0, false); > } > > This should not change any behavior. > > Thanks. >