Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp145842ybc; Mon, 18 Nov 2019 22:09:25 -0800 (PST) X-Google-Smtp-Source: APXvYqy/eEW6ciCvd+mqI4DJAvBkTKyyIcQP6UiQyNN53seIDTKJfziTyVNcfTv1NE4IvSi5DYWm X-Received: by 2002:a17:906:938d:: with SMTP id l13mr32859340ejx.74.1574143764721; Mon, 18 Nov 2019 22:09:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574143764; cv=none; d=google.com; s=arc-20160816; b=Y0WJ48aL7lR7bC3G/goExUcs0nQOzxn2+LMM1Gy95pKSC+P/vTlq4b1FUA9p1YOx0e /MEmAHauNw/jwkH3c4dJuvYgRKHskjMu9Yx8Wbjsib9tvGbmd+p92oP29upk2Wfac9Rs fMgcQrA7WQC3ZFO4OHzPYslRhibWuntFUJD0/FlwvpT43KVBKo0EAx/qhEE7pKMOTncu 3tb2grPQ9BGo3kBePr4A0Y04GGz1nPPVCV2Rl2vpbvFdkAVO31DCWKlLG8xAmwJ7OmlF CbD5UgMCI/qyLeCboUTbfQk1gKz5rsS4v0ZFXlR69L8GNud0puYsYGqkN3qXIuwsKgxR 9YRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=jusLe6eRW9S01oAaldUJb/F5NSqPDxkFugLOtbNZF6k=; b=Y5NiRCDaYN3o+RQfsvwTXu3AWUoQ07rQkRzeFPJhD4IrnJx3YgTjzpP77Kyl+RIDFT Uh1Q46H/GDIDvMslVlkMcERSHsOtmANlGBdiKdPo8VlymVx+qnY9t37VguS3BJNgSOHu +kpTGJPVdWM4X3JaWki4sDM0jaG4URz07cf7JJ2MfTzJvxPb0c3AJCQtj+r1CzFxa40t r/dtrJi+COPXQp1WQFJLgDXuEaikSFNDj9OHJ46w1sfeZpSutp9h42g82JBa1C+at0cw 0FvBPfrbrL+xmqcYGKDNTm99kfvzvd8WG23nJzxhYsgLc8+CvlgG8eH/GEezd60qdhl4 ascQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l24si13647994edw.352.2019.11.18.22.09.00; Mon, 18 Nov 2019 22:09:24 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729660AbfKSFe0 (ORCPT + 99 others); Tue, 19 Nov 2019 00:34:26 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:52534 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729643AbfKSFeY (ORCPT ); Tue, 19 Nov 2019 00:34:24 -0500 Received: from mail-pg1-f198.google.com ([209.85.215.198]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iWw9e-00070O-Cz for linux-kernel@vger.kernel.org; Tue, 19 Nov 2019 05:34:22 +0000 Received: by mail-pg1-f198.google.com with SMTP id x22so11321918pgh.19 for ; Mon, 18 Nov 2019 21:34:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=jusLe6eRW9S01oAaldUJb/F5NSqPDxkFugLOtbNZF6k=; b=VqBIvRcIeJSbdLqezQc6l/Nyv9pkD3T0Xp6ZdHyOor1M/hkK6pnoByRAXyY6bqwKqm 88U1Fl+Cg4ftwfvWbccSm/KmbawZlbEP1sHYJu06rNCk/mov3HE6VgzaTAVX7T83nUMn zaObCMsb59kkFGnk5P0tlQBdu0Jshl0ZpPrZSO87Q5PPAymy1Yr0vV7E96FQCoRXhdzo R/hVJErhZa4aCSeF/nQn4KvoZKe9+gUk3X2fH0UGYgQvYlbKIHSNkOmjC4uE3oGJehY/ Mm72SO7We+Poos5+0Qg8O5w9lIVRqzzTG7Z6lstNZup0eOrqSEWbfjqkzequJdDxCjEs 3AGA== X-Gm-Message-State: APjAAAUvmOiaJ6tKfsAKX6vHC2LhIeUIqWgugKLqsGT3szYEqnGZ611k /Jfg/9PaOMIsxy6UbgIzI5GrHwcuvjNOS+lOZTrWdvhaNQS0DZWFW03atfBnI/ZduXvT8Odj5Bu hlJ655hpwDjlC+eC2keQfjrAbb6NTRffE5AD5ptkLpg== X-Received: by 2002:a17:90a:6505:: with SMTP id i5mr3838069pjj.36.1574141660900; Mon, 18 Nov 2019 21:34:20 -0800 (PST) X-Received: by 2002:a17:90a:6505:: with SMTP id i5mr3838043pjj.36.1574141660626; Mon, 18 Nov 2019 21:34:20 -0800 (PST) Received: from 2001-b011-380f-3c42-d02c-da56-2d00-ce2a.dynamic-ip6.hinet.net (2001-b011-380f-3c42-d02c-da56-2d00-ce2a.dynamic-ip6.hinet.net. [2001:b011:380f:3c42:d02c:da56:2d00:ce2a]) by smtp.gmail.com with ESMTPSA id e8sm22516084pga.17.2019.11.18.21.34.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Nov 2019 21:34:20 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3601.0.10\)) Subject: Re: [PATCH 1/2] Input: synaptics-rmi4 - clear irqs before set irqs From: Kai-Heng Feng In-Reply-To: <189fc7c3-d0f7-a25e-9d4d-446b095e853f@canonical.com> Date: Tue, 19 Nov 2019 13:34:14 +0800 Cc: Aaron Ma , "open list:HID CORE LAYER" , Kernel development list , Cheiny@synaptics.com, aduggan@synaptics.com, Benjamin Tissoires Content-Transfer-Encoding: 7bit Message-Id: References: <20190220164200.31044-1-aaron.ma@canonical.com> <20190609165551.GB90002@dtor-ws> <7da443d0-f433-c5a5-5194-707362eb2ee5@canonical.com> <20190611173545.GE143729@dtor-ws> <189fc7c3-d0f7-a25e-9d4d-446b095e853f@canonical.com> To: Dmitry Torokhov X-Mailer: Apple Mail (2.3601.0.10) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dmitry, > On Jun 14, 2019, at 12:26, Aaron Ma wrote: > > On 6/12/19 1:35 AM, Dmitry Torokhov wrote: >> On Tue, Jun 11, 2019 at 12:55:58AM +0800, Aaron Ma wrote: >>> On 6/10/19 12:55 AM, Dmitry Torokhov wrote: >>>> Hi Aaron, >>>> >>>> On Wed, Feb 20, 2019 at 05:41:59PM +0100, Aaron Ma wrote: >>>>> rmi4 got spam data after S3 resume on some ThinkPads. >>>>> Then TrackPoint lost when be detected by psmouse. >>>>> Clear irqs status before set irqs will make TrackPoint back. >>>> Could you please give me an idea as to what this spam data is? >>>> >>> It should be some data 0 during suspend/resume. >>> Actually I don't know how these data 0 is produced. >>> Not all synaptics touchpads have this issue. >>> >>>> In F03 probe we clear all pending data before enabling the function, >>> Yes we did, but not after resume. >> Yes, I understand that. The question I was asking: if we add code >> consuming all pending data to f03->suspend(), similarly to what we are >> doing at probe time, will it fix the issue with trackstick losing >> synchronization and attempting disconnect? >> > > I just do some test via adding code in suspend or resume. > But they didn't work out. > >>>> maybe the same needs to be done on resume, instead of changing the way >>>> we handle IRQ bits? >>> This patch is supposed to clear irq status like it in fn probe. Not >>> changing IRQ bits. >> What I meant is changing how we enable IRQ bits. I would really prefer >> we did not lose IRQ state for other functions when we enable interrupts >> for given function. >> > > Not only F03 with problem, F12 too which is touchpad . > User verified this patch fixes problem of F12 too. > Clear IRQ status before enable IRQ should be safe. > > Or we can add code before enable IRQ in F03/F12. Users reported that patch [1/2] alone can solve the issue. Do we need more information before making this fix merged? Kai-Heng > > Thanks, > Aaron > >> Thanks. >> >> -- Dmitry