Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2134556rwb; Fri, 12 Aug 2022 12:43:27 -0700 (PDT) X-Google-Smtp-Source: AA6agR65o/9O1GhTUZu+HHdrv64Nio+qr3iAQwnEHKyB39Opo2HvkHvUp1LEynSLzJD49NGMeUyT X-Received: by 2002:a17:907:2722:b0:731:2aeb:7942 with SMTP id d2-20020a170907272200b007312aeb7942mr3553381ejl.734.1660333407570; Fri, 12 Aug 2022 12:43:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660333407; cv=none; d=google.com; s=arc-20160816; b=c0ueYeH7iTUWJtGoY8ZJVypliuZA1t+Y6s1JTHFO3x645qeKy/UDvrSAsQkMwMr/Te uuqllR+G0if7kxxJlaa2jbUF6GnZv2HOF7AUBKHsLCG9R68fME8+IRTa642kSw8f+tWt JsUQ+cHeXqz3De8DYMqt1e113CWDMOHuCkIGV+RF9Roh59RsFZIjC2yrTLDPDilCFN6J 8zsDqY28nXJ687RDQcGjugSj0DN1FI8o4L7F6m0cm3b/hLk4p+YP1YYarMjhsYEB/oxZ USWHshzQqyWouch8dzFUcCn0VGZGm3Mi0/VnPnHzY6dZbNQNYdLQRPa4+76I6OosHwGI zcog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=IaNDAdEa8hgXhA9slqB1hEbULevRfy/CuIByo7fB7oY=; b=HpTL5Qo8J4TxTQZjB6WBDsLdjmBzDj0rfdzcaY2+sbX1E0LOxIdBt9Rd3Pyre8guQs XZnXyIglElgmkluynF1NyWQwc3M4u6DrKIc8sbMCAZcawELWa/rkQc7359Ds/f6dvYJ+ AE+d9tEwgV4fcqncd1l6qImEHkq++gjIhKePck5cVUE83odrH9O0iz5IdEooapK+JSB6 1KpL8a6mDDC5Wbvk5qYSU5Vu8Q2ANyIxGLC9q4L+fobIlk1U8De0CJDXInSZeR4dwj3B 8MZd4VrR8HmWYbxQZD4WlTSusYCwl5r2EgXNSFlBx+HmVjsyYKNdTpMhM5uJckpvH5fp 5KGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HLSm97rr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s1-20020a056402520100b0043c32b20a26si3239973edd.38.2022.08.12.12.43.00; Fri, 12 Aug 2022 12:43:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HLSm97rr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233957AbiHLT2g (ORCPT + 99 others); Fri, 12 Aug 2022 15:28:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238120AbiHLT2X (ORCPT ); Fri, 12 Aug 2022 15:28:23 -0400 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BB2EB08AC; Fri, 12 Aug 2022 12:28:23 -0700 (PDT) Received: by mail-pl1-x635.google.com with SMTP id p8so1536771plq.13; Fri, 12 Aug 2022 12:28:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc; bh=IaNDAdEa8hgXhA9slqB1hEbULevRfy/CuIByo7fB7oY=; b=HLSm97rrOLYJkzPX2w6QgFUDvZAlVyraM1Cdtc6CnudfXDGFGGSC6oP9jpu1K5FU9y jr9ifGkldw6NkuannS9dSFrNzyYUzifTOx83mmUeATi0/1yzcjnKoUJQQCYdGNPqITB7 B78KVzOFbVwHSu9HOeACSLpEpQsTA3KXkmMzCOga9JsEGadJfEjdsGuDIWWKtpKtpC58 YHRYgvxX5YcqeedHn1YHQZn6d0HqRABlOr7PbKRecywam6pic7QV9bsgLV4ZtlTXWhD+ uuMwPWLT+NK87kyzdj6ytGOTT1wIgnO3hcUJUPSnPx+5WpyUfpjxwww4ARJGRVw5Rn54 KQeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=IaNDAdEa8hgXhA9slqB1hEbULevRfy/CuIByo7fB7oY=; b=qBawCP+eRSHxWEx4HS0YIq6Qvpb2iN3ZOp9QYmIyTTOOthKFIZyh0jltqvnOlTi/Mh jx1s2L61MIAJ85iuSicrH6ZuzKzITOxmeLWT50mJ2HYFK6Dbk4zjUKyiW2duuS20JGgA 9t5URMsBefWoWszlVTVaPtCkZEXMsJvAlmfW3xKDSFgeCjJ4UJKAxlgtDZ6svw2sI+ie pG+W41Mr8PnzGnTGXSZnxUhszDW/Fxn9lElDLeZdbxuJepfvqZBz0Xns0K8Xe7N66Jwy XmyxjZmlp0mTIWq85yUIwNTC8dpWSB8Ste4XazxvPaYc1DpPMKZe1cnSVkc19TLbFCjQ HLTA== X-Gm-Message-State: ACgBeo2JMHSgehhkl9rYm3mx2LCGe/ABNmmAy+1h2YEBkk+nmigCyvLg UnqUX8if3KqSk58Ny7lrMtE= X-Received: by 2002:a17:902:d484:b0:171:3cbc:7c6 with SMTP id c4-20020a170902d48400b001713cbc07c6mr5423597plg.85.1660332502216; Fri, 12 Aug 2022 12:28:22 -0700 (PDT) Received: from google.com ([2620:15c:202:201:eb15:868d:43:d73a]) by smtp.gmail.com with ESMTPSA id b4-20020a6567c4000000b0040dd052ab11sm1691136pgs.58.2022.08.12.12.28.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Aug 2022 12:28:21 -0700 (PDT) Date: Fri, 12 Aug 2022 12:28:18 -0700 From: Dmitry Torokhov To: margeyang Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, hdegoede@redhat.com, benjamin.tissoires@redhat.com, marge.yang@tw.synaptics.com, derek.cheng@tw.synaptics.com, vincent.huang@tw.synaptics.com Subject: Re: [PATCH V2] Input: synaptics-rmi4 - filter incomplete relative packet. Message-ID: References: <1660293805-16053-1-git-send-email-marge.yang@synaptics.corp-partner.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1660293805-16053-1-git-send-email-marge.yang@synaptics.corp-partner.google.com> X-Spam-Status: No, score=1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,FSL_HELO_FAKE, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marge, On Fri, Aug 12, 2022 at 04:43:25PM +0800, margeyang wrote: > From: Marge Yang > > RMI4 F03 supports the Stick function, > it's designed to support relative packet. > This patch supports the following case. > When relative packet can't be reported completely, > it may miss one byte or two byte. > New Synaptics firmware will report PARITY error. > When timeout error or parity error happens, > RMI4 driver will sends 0xFE command and > ask FW to Re-send stick packet again. My understanding is that F03 is intended to be a pass-through mechanism for PS/2-compatible devices. In that spirit all protocol handling and validation should happen in psmouse driver that attaches to a serio port provided by F03. Historically we did not pay attention to parity and frame errors for PS/2 mice/touchpads (and for keyboards on x86) but we coudl add such code there. Do we actually observe this with RMI devices? Can RMI firmware handle this better instead? Thanks. -- Dmitry