Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3628663ybt; Tue, 30 Jun 2020 07:38:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSWLFwlos2ktPMAyP8aQmT5MJ4jv24Y2n7UeFUyTk0QQb5JBAptvJDhVTtx99XVzE+JskA X-Received: by 2002:a17:906:f752:: with SMTP id jp18mr18389747ejb.538.1593527887776; Tue, 30 Jun 2020 07:38:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593527887; cv=none; d=google.com; s=arc-20160816; b=PO0SfSPImyQld4EritpZxx70c/ItE/3HtikF0tnxNcZZ0WNzcSUdGlN1kAfeYR8tBl igJiVonokNKKjEfidvsj1wKmKTNdjKI5ZIjzHvXxUyd/Iq/Q7UXv5H3trTCTiXhggYvx sfsQJpsbzvDq2nlqsSNUHGOkqZf8X0chuh2xV9qRDASe3RTuG0p/ZKEKY6XxZBzp1SjI jDa9p8v3Cw0r8OxNoHiDQ55kX/KT4jHFqazR/awTbCod298OIm/GtX8pXBUF+6cBayUE xp+tFWEDPtOaAsUvbon+hVSSMFBUwFEb+nnHgfbDT4C6wEQyv3pPBmms1jCH14Z3VUr+ GVxA== 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=sqCHMDFZYSpQUKJg97QLHUIiHhfcZV9asAGxYxcfgoE=; b=WmLZqam2VjQh/apCyRIOtCJ0Pzdig5XiAFSIT36zX0qItCXLK1BGFS+Wl23ZPeo1Ds s7rP+QW/grEizkxETsAONrEtii4U0dRfZdrZEZ+j15PLhJyoRK1VR0CltH/Mg6+T0qFP Mgs9e0U3MuTNi+qVPBetqjHEbADVkRuvPzQjSc/F7od5hqVJNG71RB0DFy0PC2OfTsSz B/XSSr5+2UIiaZ41voNHAoEkOqZHfzA6X39ssfhy+OikWxpwlSyXTIJC3nNZekY3ysnB vGq+D7F/Kehu9HcFi3ZRFFMp7R2o14bzhKMVjng4TZruQdLFfqxZ8mjVunl8KSS1z0pl E/wA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mb4si1864559ejb.173.2020.06.30.07.37.44; Tue, 30 Jun 2020 07:38:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388989AbgF3Oe6 (ORCPT + 99 others); Tue, 30 Jun 2020 10:34:58 -0400 Received: from esa1.mentor.iphmx.com ([68.232.129.153]:52161 "EHLO esa1.mentor.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728506AbgF3Oe5 (ORCPT ); Tue, 30 Jun 2020 10:34:57 -0400 IronPort-SDR: 4I8/vFeNRXlhMlEpZcVV1IeyDlqRUjfqjysrXpI7YQ5XXyO9VWifYDX94ejNZgEMi3nlA2bOZP tlzBO/U8sglH6xCY419aHZS7zFldDTB+xOsdr/Fa19ays6XxKwP4SVkndeyWwPB0CZoypsMNa5 4WGeC/oxe4E0L3C42NIuet3yIBcoCS9AQUmDOFUs29aTGbjuVwtGf3AYBHuV7p34ZRKWfubGkv pBvxG0xQfPO/Jiei0OjdekcDWhJw6DGo1hNp91P9PdBdz7T51e4qNZeYG1yOHe8gl8mqCFZEmL eJM= X-IronPort-AV: E=Sophos;i="5.75,297,1589270400"; d="scan'208";a="52594895" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa1.mentor.iphmx.com with ESMTP; 30 Jun 2020 06:34:56 -0800 IronPort-SDR: 32+6r2MiDOyHDFTHTPQkDXrsJFWUqG8DPXUk+FSjEtbVI5Qm35vjVue2739JLsK3TZLVdylCC7 37cx5Trcu9fgccn2fKHR42Zqwkhk7fhx6pZxz1RJbxgzysoMwpCO2mxSn4j6n1/3yzmHKyjWKY yz6yYuqYyhxxFXa0p6zMBUXX0caDPKEkPvkQPB77poZ7fFzqf1QPiTDzCc/R0oFn5VXb7EPp5B JmBUu67oQqQGcT8skdzg9FweWDJGJ0lQMRZEpqThqK/9myWMowCzXDumWvKkhBbsOEYrqlG2kJ xeE= Subject: Re: [PATCH v11 05/56] Input: atmel_mxt_ts - output status from T48 Noise Supression To: Dmitry Torokhov CC: , , , , , , , References: <20200508055656.96389-1-jiada_wang@mentor.com> <20200508055656.96389-6-jiada_wang@mentor.com> <20200511222347.GZ89269@dtor-ws> From: "Wang, Jiada" Message-ID: <448a6d77-56bd-a45a-2ccf-dee93f9fc5e8@mentor.com> Date: Tue, 30 Jun 2020 23:34:51 +0900 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20200511222347.GZ89269@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 Hello Dmitry On 2020/05/12 7:23, Dmitry Torokhov wrote: > On Thu, May 07, 2020 at 10:56:05PM -0700, Jiada Wang wrote: >> From: Nick Dyer >> >> This patch outputs status from T48 Noise Supression >> >> Signed-off-by: Nick Dyer >> Acked-by: Benson Leung >> Acked-by: Yufeng Shen >> (cherry picked from ndyer/linux/for-upstream commit 2895a6ff150a49f27a02938f8d262be238b296d8) >> Signed-off-by: George G. Davis >> Signed-off-by: Jiada Wang >> --- >> drivers/input/touchscreen/atmel_mxt_ts.c | 25 ++++++++++++++++++++++++ >> 1 file changed, 25 insertions(+) >> >> diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c >> index 7e6a66e3e1e0..a53985a7736f 100644 >> --- a/drivers/input/touchscreen/atmel_mxt_ts.c >> +++ b/drivers/input/touchscreen/atmel_mxt_ts.c >> @@ -324,6 +324,7 @@ struct mxt_data { >> u16 T18_address; >> u8 T19_reportid; >> u16 T44_address; >> + u8 T48_reportid; >> u8 T100_reportid_min; >> u8 T100_reportid_max; >> >> @@ -978,6 +979,24 @@ static void mxt_proc_t100_message(struct mxt_data *data, u8 *message) >> data->update_input = true; >> } >> >> +static int mxt_proc_t48_messages(struct mxt_data *data, u8 *msg) >> +{ >> + struct device *dev = &data->client->dev; >> + u8 status, state; >> + >> + status = msg[1]; >> + state = msg[4]; >> + >> + dev_dbg(dev, "T48 state %d status %02X %s%s%s%s%s\n", state, status, >> + status & 0x01 ? "FREQCHG " : "", >> + status & 0x02 ? "APXCHG " : "", >> + status & 0x04 ? "ALGOERR " : "", >> + status & 0x10 ? "STATCHG " : "", >> + status & 0x20 ? "NLVLCHG " : ""); > > Should we define symbolic names for these bits, like you did for T42 > in the next patch? will replace with symbolic names in next version Thanks, Jiada > > Thanks. >