Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp3397292ybp; Sun, 6 Oct 2019 11:02:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqw7WIM/FemzNpi7gyQihl7Q2Q/kE09ZbZ3EJBtwrFFttZ+0hL/lH+8qlJ4CS4Rhlg7QFXp9 X-Received: by 2002:a17:906:f19a:: with SMTP id gs26mr20357582ejb.298.1570384954408; Sun, 06 Oct 2019 11:02:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570384954; cv=none; d=google.com; s=arc-20160816; b=z9aDzYdmsBk6K0QepJRGnm2NFftNKBc7a8N4F6iS+3ZkKcc+NvZJ4+0A84O5ckh+U6 8mnIIxYkkSxTq/x1t9FuapupBgfcyP4/lDvncpuqrUaLGnxb+EQRs/t+o250fnk0FCIJ x6BUpYr7BWc0uWnwMk86OMi/dcYc2E+YyNIlj7LJtHDvDjHu4rgjNLJBfXs/Y2/GBEkc vcuJpd1ZDxq5XTEVE6eRS5MUhjChZ47Xr4dO5X2NXge+cir6NlaTr/tI+BhZawP26wcL 3ED1yT4Swqh5h1jbUGmVIfDIw4IoVVpsd+r2HipmXx29+Frk5F9YXnbGxDiH/yklr/CF v+3Q== 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=v2CglS8Ibvi3VRVHanWlwzORXf0PiwGf2qcgDCwF4/s=; b=FfX+aRKXIHYcQYkv/rfDibHfjejI/0yB+TUlh3Tsm4kNQ4NtlAd9Ui2w4KKNmUuF0m OV0LqwlgNLhcBN1dmCh3skothKKvxf8Qkoi9yKkEkIhpUmCiE8/jNVk6MMP1DNVqV5bl kuczsxsELaXL4GsPPzZ3wVFJ1/9hqiktziaXxnC3CObTIntOZsixp0bPH4O8yc9b7Xtf +YSioCKI0ynArudXHNmKo5hcgh79yHvQ1nkh3Q6j4WEBJZGDELByLl8acnMt/5ePr72L wu3QvA1r+Y/kwqLcrQLnyS7Uq2mkAe5hzJnPXUkfWAZDMyRN0CGnTVD1sD+C4fp6fCI6 pI6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Dg0mhO4x; 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 y2si5782074ejw.308.2019.10.06.11.02.10; Sun, 06 Oct 2019 11:02:34 -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=Dg0mhO4x; 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 S1728843AbfJFR7u (ORCPT + 99 others); Sun, 6 Oct 2019 13:59:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:55888 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727178AbfJFRaD (ORCPT ); Sun, 6 Oct 2019 13:30:03 -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 72AA1217F9; Sun, 6 Oct 2019 17:30:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570383003; bh=S20uy8P4PRf/bzXgHQAXj8lKXo82Ek27pjMYweAOWz8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Dg0mhO4x7QDzFqvBqabDVh/ubP/wlqPgf0VPrMymA1vRoN7FkfBB18MleiqmNsYaJ AvzbGJhFkcC9Z45vr/UffYEK/89PNLXayhreftotU/BTwMTqFURvrRrfrb37GYpRQO 2Ezve8UpZqcXxqRY7OXCALp+CHoINKPOgziNyA6A= 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 4.19 051/106] mfd: intel-lpss: Remove D3cold delay Date: Sun, 6 Oct 2019 19:20:57 +0200 Message-Id: <20191006171144.979713490@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191006171124.641144086@linuxfoundation.org> References: <20191006171124.641144086@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 0e5282fc14675..c37c8bb860685 100644 --- a/drivers/mfd/intel-lpss-pci.c +++ b/drivers/mfd/intel-lpss-pci.c @@ -39,6 +39,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