Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757988AbcJYAJT (ORCPT ); Mon, 24 Oct 2016 20:09:19 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:33388 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754157AbcJYAJQ (ORCPT ); Mon, 24 Oct 2016 20:09:16 -0400 Date: Mon, 24 Oct 2016 17:09:13 -0700 From: Dmitry Torokhov To: Andrew Duggan Cc: Nick Dyer , Christopher Heiny , Guenter Roeck , Chris Healy , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] Input: synaptics-rmi4 - allow number of PDT pages to be specified Message-ID: <20161025000913.GD15034@dtor-ws> References: <1477349722-26635-1-git-send-email-nick@shmanahar.org> <20161024233941.GB9026@dtor-ws> <67e70b31-292d-b0ff-0598-7b71e1dcff35@synaptics.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <67e70b31-292d-b0ff-0598-7b71e1dcff35@synaptics.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1279 Lines: 28 On Mon, Oct 24, 2016 at 05:03:30PM -0700, Andrew Duggan wrote: > On 10/24/2016 04:39 PM, Dmitry Torokhov wrote: > >On Mon, Oct 24, 2016 at 11:55:22PM +0100, Nick Dyer wrote: > >>We have encountered some RMI4 firmwares where there are blank pages in between > >>PDT pages which contain functions. Add a device tree property which can be set > >>to force reading the first N pages. > >Cann we get updated firmware instead? This seems like violation of RMI > >protocol. Or, if it is allowed by the protocol, can we avoid DT > >parameter and keep scanning until the end? > > It is a violation of the RMI4 spec and we found at least one other > device with misconfigured firmware, so this problem extends beyond > just a single device. We are adding steps to our verification > process to make sure we catch these misconfigurations in the future. > But, I'm not sure we can guarantee that a device with this issue > didn't go into production. > > I like Guenter's suggestion of requiring two empty pages to stop > scanning. If we did that for all devices it would add one extra read > to the PDT scan, but we would avoid us having to maintain a list of > devices or set additional parameters. OK, if that fixes broken firmware then that's what I would prefer. Thanks. -- Dmitry