Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1057987rwi; Mon, 31 Oct 2022 10:39:05 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7O7vV95SgWsqSdlEraE4MY4v6tuefHC//r9vDTA2ft6XLASyJe4JxXoCBuV3IROPkxyEkW X-Received: by 2002:a17:902:e810:b0:186:e9ff:4ec2 with SMTP id u16-20020a170902e81000b00186e9ff4ec2mr14925120plg.26.1667237945642; Mon, 31 Oct 2022 10:39:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667237945; cv=none; d=google.com; s=arc-20160816; b=RZxQu6mXHYkL9+DTs0+UC0LH9raM9AwWKCuRYhCdr34mcicqLNEUmXlCrjGUkytCq7 9mJFB93EqAzGi/Rv0YrA+4I3uH7xo0cf/KO4v4vNuJqyv5S96BC/lvNaEEoiDXUOH6dn jnOPY8hscnUzkOy7pJY1fYN6Vz6zwveD18aWjBrPpqdLJiL8cgC6tyfQhUm9enJptSgR DDmYiCPc48iQgW7l4O07mHFxBXrx694GkHP0Rf3lnpy1EUYz9KAqME54I0nyWyWjyx9s p8Gu5F3PqV7l1Gb9+zHzokDei47cp4+tda4kqTHnpYoZ6iHUCkG+KeWgYgTBo5VWpQ+Z PMwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=jE0r47h9qJ8NHholshbS03wYcceCKm/HmG88++HxoKo=; b=H/d0qUOfIaHd8OtP3i2ODBlo8C/qilUsSXdgXsafqdOz0oYzSURb68kNVWgtc8Jjnr 2Cs6ewv7P1wVBz1kXtbjQR5s429Zi+G2zee+w4DnfflDWRO6aEaRdav0LhuuDdsubink /jnpnEpDe7m/fl6Q7Ftq2e+gKBgd7asr0d58zdo+SKMjfpRUAdj8EylPok51qagTo1/d oXWPy5IdJxUmTjY0FIrjf/OPN/mRWbSDEutq3KLQ6ygERU1B8LtRQ2EwFX4Ls1YmFZAb HjKQ9HiKpkrzCGZWrL+57vNlkAiJuHIcyq090Hnbow7w/8Ec37Ztdzh2LUunKALqJxXZ Nd+Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k14-20020a170902ce0e00b00178431e112asi9841786plg.449.2022.10.31.10.38.52; Mon, 31 Oct 2022 10:39:05 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231922AbiJaRM6 convert rfc822-to-8bit (ORCPT + 98 others); Mon, 31 Oct 2022 13:12:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231437AbiJaRM4 (ORCPT ); Mon, 31 Oct 2022 13:12:56 -0400 Received: from mail.inka.de (mail.inka.de [IPv6:2a04:c9c7:0:1073:217:a4ff:fe3b:e77c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 966E112D0E; Mon, 31 Oct 2022 10:12:54 -0700 (PDT) Received: from mail3.berkhan-weisser.de ([2a03:4000:54:b9a::4]) by mail.inka.de with esmtpsa id 1opYLE-003szj-4W; Mon, 31 Oct 2022 18:12:52 +0100 Received: from 127.0.0.1 (helo=localhost.localdomain) by mail3.berkhan-weisser.de with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2) (envelope-from ) id 1opYLE-003e4Z-8i; Mon, 31 Oct 2022 18:12:51 +0100 Message-ID: Subject: Re: [PATCH v3 10/12] HID: ft260: wake up device from power saving mode From: Enrik Berkhan To: Michael Zaidman , jikos@kernel.org Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-i2c@vger.kernel.org, germain.hebert@ca.abb.com Date: Mon, 31 Oct 2022 18:12:51 +0100 In-Reply-To: <20221030203403.4637-11-michael.zaidman@gmail.com> References: <20221030203403.4637-1-michael.zaidman@gmail.com> <20221030203403.4637-11-michael.zaidman@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.44.4-0ubuntu1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham 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 Michael, On Sun, 2022-10-30 at 22:34 +0200, Michael Zaidman wrote: > The FT260 can enter a power saving mode after being idle for longer than > 5 seconds. > > When being woken up from power saving mode by an I2C write request, it > looks like a possible NACK will not be correctly reported back. As a > workaround, the driver will request an I2C status report before starting > the next I2C transfer if the FT260 has been idle for longer than 4800ms. Unfortunately, I have found issues with this patch as it is. When I tested from an installation running in KVM, I saw missed NACKs again. A possible fix seems to be to send the extra status request after the output report triggering the write. See https://github.com/MichaelZaidman/hid-ft260/pull/7. Cheers, Enrik