Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp551599ybb; Wed, 25 Mar 2020 05:14:05 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs/Sn6bTX1gc5ysmXbSrPESXF2Sj9v1Fk032qUYFXr/WxVcWOt6kctzTSvGbT+bLpSx0kO1 X-Received: by 2002:a9d:7b4d:: with SMTP id f13mr2282202oto.216.1585138444989; Wed, 25 Mar 2020 05:14:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585138444; cv=none; d=google.com; s=arc-20160816; b=MAVigOpjYG0NjOQUC2vTd9/jKgJf8Et69fNPTk8G5WgriMERKzyeD+Xgm6jzJExvCo 7v7pRzcfEUNdvW/C6SlnT3NBn8yuwJvo9/3+X0/GhZTrieLkRYM8uoM0dwiTneLQ/9R5 gkLHU+GzaD9tHh7wTsRT/A9ZPCAP5Ifons5gUMw2VQal8ABO8DyY15d/quOGxnLZYThj bp/jJT2z+Qz8+uansnWP616UcfaH26DhdjUqtzR7b57glM4bZyA8DjpXn0aLrQrZRsIL Go4UETGWZvDNnbBeEgIXYEdpuBUMLclTUFVRl4U+gcNYpW8sg7rh6WSX1dBwiBDCrmF7 jSzQ== 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=YAUPMwLENfCbhJ3SHraSZ1FGROtyRqz9BKXbQmilyxc=; b=UOQchephuJXCDsmcA+sM6vAdwRvpebp+qO+pqUjm3aZSJNrQolMYPcdU3AN/QECmb0 buwsVNeX+KChP50/2srTDfnfZKhd+IAGpiML8fmy0xtsxZIN0Po8uIubMzAwtclNNPJA KSESWpnxYv1SesBS41ize6AEG3L78cbAnuFXkLwSUHfIIQdbedTxL++ZwRA8Pz9CXVmb g8TR9sE0Cny5zL8GAT0vjB5Q36Tlp/3DJfVe5v7z9lYPnU5/5HbHKoJ6miRL3BJ6bwV7 uIpVvP6iSvgqR36G+Fr48xeJA9UFfEwP4qhHxBT/FSukytLVM0LuDhTvPYtjPXo92fyJ e1Tw== 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 145si11430145oie.185.2020.03.25.05.13.51; Wed, 25 Mar 2020 05:14:04 -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 S1727406AbgCYMN2 (ORCPT + 99 others); Wed, 25 Mar 2020 08:13:28 -0400 Received: from esa1.mentor.iphmx.com ([68.232.129.153]:55231 "EHLO esa1.mentor.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726969AbgCYMN2 (ORCPT ); Wed, 25 Mar 2020 08:13:28 -0400 IronPort-SDR: 4NntKNMwAeFnkYAEAgljL50YrhiRHC/zhuOgrCjV2tZkC+lrX3TKdHnlhtJqtm71nfd58YAQAi G7o1pbcefvMSwUwiBPzFWrjUR83wgI2jLuOSJfeUdFqsFQdrIpV+BNEUT/zVRrAfd3mN7vAyK4 SkoqnB9fD12VEQFOjxwMG9D757kVXzXwG8oKbdgzsVNWYYtgivN0fPmLlfGE8RYQesL2blgyjU mSpymhsvFRVYsDTaUFLUN27JenaDZs9rrC718eG2Gh9UVXyVMyOuz9P5wU1vFEnQSKxsi5c+EE K4Q= X-IronPort-AV: E=Sophos;i="5.72,304,1580803200"; d="scan'208";a="49056887" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa1.mentor.iphmx.com with ESMTP; 25 Mar 2020 04:13:27 -0800 IronPort-SDR: sqayK+8xJmiqpMUYpqK7uCRGuIZVkfrcbZpQzhMac03DRzoGluwB440yfTj6j1I99kH4GP4qZ1 vKl52/R5wRnC+ZaEiBVh0eKSgdSFnIRf6LscdNryW0cVuT4CsEj2iVl0GblZbga4dVhsJzLyPB wJ2HCQnAZe3FX2BqdhKXQry3b+k6Deah8AKPYksbF00XB6KYwleg0PqzXrGZxOSfCxtsMFzMXK xXoBycU8W4Z5fFIUj3xtrXUDjO3gW81CgkuakO+wAVOgcY60w7b2EL9YNwj40I1i2eqrXrmECz g1Q= Subject: Re: [PATCH v7 00/48] atmel_mxt_ts misc To: Dmitry Osipenko , , , , , , CC: , , , References: <20200212084218.32344-1-jiada_wang@mentor.com> <89e4bb0b-b2eb-0b67-4307-fb2af914b1c0@mentor.com> <5d8fdfc1-cc95-59db-b83e-87bb16ea79e8@gmail.com> From: "Wang, Jiada" Message-ID: <4d39b644-7fcb-427e-7110-c61fb36122f5@mentor.com> Date: Wed, 25 Mar 2020 21:13:09 +0900 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <5d8fdfc1-cc95-59db-b83e-87bb16ea79e8@gmail.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-ClientProxiedBy: svr-orw-mbx-08.mgc.mentorg.com (147.34.90.208) To svr-orw-mbx-01.mgc.mentorg.com (147.34.90.201) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dmitry On 2020/03/24 23:54, Dmitry Osipenko wrote: > 23.03.2020 05:25, Wang, Jiada пишет: >> Hello Dmitry >> >> On 2020/03/21 0:53, Dmitry Osipenko wrote: >>> Hello Jiada, >>> >>> 20.03.2020 06:37, Wang, Jiada пишет: >>>> Hello Dmitry >>>> >>>> I have submitted v8 patch-set to address your comments towards v7 >>>> patch-set, >>>> most of checkpatch warnings and errors have been addressed, >>>> >>>> But I didn't update for following two types of warnings >>>> since I want to keep consistency with legacy code >>>> >>>> WARNING: DEVICE_ATTR unusual permissions '0600' used >>>> #290: FILE: drivers/input/touchscreen/atmel_mxt_ts.c:3761: >>>> +static DEVICE_ATTR(debug_v2_enable, 0600, NULL, >>> >>> What will happen if you'll use 0644? Will an empty line be returned or >>> driver will crash? >>> >> debug_v2_enable doesn't have .show callback implemented, so after change >> permission to 644, read of it results in an I/O error, >> >> for other 0600 permission interfaces (t38_data, t25 and debug_enable) >> added in this series, >> change to 644 can return expected information when read. >> >> Do you think it's better to change debug_v2_enable to 0200, >> and others to 0644? > > Since the debug_enable has mxt_debug_enable_show(), the same should be > done for debug_v2_enable, for consistency. > > The permissions should be 0644 for everything that is read/write. > > The 0200 should be used for everything that is root-only and write-only. Thanks for your comments and suggestion in another email, I will submit v9 patch-set to address these warnings Thanks, Jiada >