Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp3381014ybp; Sun, 6 Oct 2019 10:40:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqyy7h9ezYBUaCUh42R596y8Dq0lPB3pHcvR7UzJjMkU43eSxqOeoOufuvRgagZ+F9Tg5aLJ X-Received: by 2002:a50:f391:: with SMTP id g17mr25170818edm.163.1570383629561; Sun, 06 Oct 2019 10:40:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570383629; cv=none; d=google.com; s=arc-20160816; b=LthruKoDvh25xxTl00rClldrLow2boY8MN79/gLdC4GYVFOfhuTkR1cGsTeeU5oSOO LPW5ucpZFJ29sHBNZfd69Okv+XIXeyDQ5zplcT+3Fo7zzGhWbocXrZVV8dh486xd0IDr s2quj6cCGejnmZMGNGU5ikV/1am5qGXI60egW+hE49jyIzTtDmev0JHPPuFy4vZzIuZN ecQk2zfi7kBbL8JK1OXNydEn/pXln8UdPiU7LGAAUP09emUk482QwbyWvV0foGXiYUoy RrfNYVhIS8Scj1dsYbOf+/AMw5WF+pWZX69d0br9Ir29cz91PZxGB9pCWaLkaIujv5jw Q2kA== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=C4lHC9+3I3YW5YN2ege1aIhqOPQT5AshMBFnFcjRvdE=; b=RO079Eat3iS+ZPYAmOn7HM58+amkuVpArdbpUiU3R5c7F0rWv+Pb50WCcPEKmg+mLe +W3Ap6Xn5JHNlZMI7Q55Lw3pH2ZF08sLhNVZ5dh3v4ICgRk+HPJWRuOoA98UbKy0Z7ns Ry1BUq3YTrCCW/9tbrahN1g4FVtB6qUCtXSnN7ycK3Hf2BTc7m7O68wR32zue6qnwhuO EalDuit52X6ivK/zRb+jYnQFosstYZdi94Gh8Io3GKxXVH3OWRmjKZAsFTSnya6U2gFj Dos6t8NZ7i26vqgqQku1gKLtz1qR+Yfwkzsq4KwrFJlk+UcvgN7I3udofxKa4d8NN/bQ 7G9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hUd+lxD4; 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 m1si5760129eji.86.2019.10.06.10.40.05; Sun, 06 Oct 2019 10:40:29 -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; dkim=pass header.i=@kernel.org header.s=default header.b=hUd+lxD4; 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 S1730350AbfJFRgt (ORCPT + 99 others); Sun, 6 Oct 2019 13:36:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:35666 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730339AbfJFRgt (ORCPT ); Sun, 6 Oct 2019 13:36:49 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DB3112053B; Sun, 6 Oct 2019 17:36:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570383408; bh=2r8AeKYGjMupGol4CtMYkDcX41Wu5e//UTgfixnBy/0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hUd+lxD4JzYJGyzFsZand6W/6W+zpMcjrxy1uYcS3yVcJELKDMl3/Fh6lXwf5a2+8 WvJQOGCF0BbyT8Izi4KNz73owNwOnBJN0rFBaYLYKQhifoiEJL2QnAhScAuww4PHhK gtr1zrrG0XRUz6N/O5s0ob2v0ndh4yr00AIW4QYM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kai-Heng Feng , Andy Shevchenko , Lee Jones , Sasha Levin Subject: [PATCH 5.2 094/137] mfd: intel-lpss: Remove D3cold delay Date: Sun, 6 Oct 2019 19:21:18 +0200 Message-Id: <20191006171216.696748415@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191006171209.403038733@linuxfoundation.org> References: <20191006171209.403038733@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kai-Heng Feng [ Upstream commit 76380a607ba0b28627c9b4b55cd47a079a59624b ] Goodix touchpad may drop its first couple input events when i2c-designware-platdrv and intel-lpss it connects to took too long to runtime resume from runtime suspended state. This issue happens becuase the touchpad has a rather small buffer to store up to 13 input events, so if the host doesn't read those events in time (i.e. runtime resume takes too long), events are dropped from the touchpad's buffer. The bottleneck is D3cold delay it waits when transitioning from D3cold to D0, hence remove the delay to make the resume faster. I've tested some systems with intel-lpss and haven't seen any regression. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=202683 Signed-off-by: Kai-Heng Feng Reviewed-by: Andy Shevchenko Signed-off-by: Lee Jones Signed-off-by: Sasha Levin --- drivers/mfd/intel-lpss-pci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mfd/intel-lpss-pci.c b/drivers/mfd/intel-lpss-pci.c index aed2c04479663..3c271b14e7c6c 100644 --- a/drivers/mfd/intel-lpss-pci.c +++ b/drivers/mfd/intel-lpss-pci.c @@ -35,6 +35,8 @@ static int intel_lpss_pci_probe(struct pci_dev *pdev, info->mem = &pdev->resource[0]; info->irq = pdev->irq; + pdev->d3cold_delay = 0; + /* Probably it is enough to set this for iDMA capable devices only */ pci_set_master(pdev); pci_try_set_mwi(pdev); -- 2.20.1