Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp3400125ybp; Sun, 6 Oct 2019 11:05:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqz5DUM7xZW1Lx2ucLjE9haBs3Oj8ccgN95PkZ373vGQ8/1urCcGIUCwiowqioAoQM2BPpRG X-Received: by 2002:a17:906:90d4:: with SMTP id v20mr21072568ejw.189.1570385129747; Sun, 06 Oct 2019 11:05:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570385129; cv=none; d=google.com; s=arc-20160816; b=hv6WQUqOqBZNERp9S9BY9IvKE1Pkq9WCerD30nlnfPZdryJkwwAXTnPvJ8dL18oCSv PzoNZreEulsrdMemAhDc+p8sL0da3Kdc8nrrOwY0c+aGfH8LJaS2AFTHd/VnYnhfW91z rUGjCjVm9UUq9edYpV7EFD/Pl5sJ+uPsudtWcUBQ6rKXFk7scClN3nIx90JBGmfNVhZS Gxpdyee1QRmWdZGIOCSavu8ARML/ph77k9MDaacaVoTys1KvZSVBn5Ja+GOkWCtW7C9I QTjuQyATgn29MMWVlN97uMfgw1jrB8SXqhGAA4g6EDGj2xhX3tz+AVwa67lNsO5KKw/0 JplA== 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=CxAdOF6DAui4yZ5hCsg//7gsKT2j9mEuYuHpaEF6eGA=; b=wzS2TXWSIdCFQ5IJehHiiTXxeWwE8GZ0LJRkJGx1FkoqUIbeiDsnT13t3HUxtIsW0L doQNgPlEDH1WHYan8VPnv8eOBUwcFmQGyaUoL06XTq/Wq2MMk9nRtw/oIMAwqfzPyxTq 0Pe4bkezdYWnMM50bXcgenVLlNQmsUXAlio9xqd4bYBf/eARF/LdnzXPF4BwBqfNE6vd 4kNmTvQLVdAa7aH9KP44RCIULrGErt7PlnrzoB41YilZgokegJoJ5Baig+z/5k1BZORU s1iWQDIpFVCOWHjeQkT1UljTSSkj7XJM3v+ddnw8ekEhlbZKWelIULks48AapeDJ1cxz eG6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KEJYmD7d; 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 w18si7299078eda.445.2019.10.06.11.05.06; Sun, 06 Oct 2019 11:05: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=KEJYmD7d; 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 S1727631AbfJFSCK (ORCPT + 99 others); Sun, 6 Oct 2019 14:02:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:51174 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728192AbfJFR0I (ORCPT ); Sun, 6 Oct 2019 13:26:08 -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 341862070B; Sun, 6 Oct 2019 17:26:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570382767; bh=hErGe3uINxLsS7mNQ/P8aL8IKEVdLi6IrfKsbRzA1YA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KEJYmD7dAk95W2PJQxZbsyeNAmGQhJbl4EpMkuDIUNimAF2ICq115XqppTswWpyd8 qTyCgH/f8Tzvj6zCy4A6K3HhyrFf856ruCSXqynaLvK8yTDqvvM1hcUL0E3njbgFSu Eh/+6fxS0adHUTHEp35aG84bhAk926bgxCUlFcCI= 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.14 31/68] mfd: intel-lpss: Remove D3cold delay Date: Sun, 6 Oct 2019 19:21:07 +0200 Message-Id: <20191006171121.869544173@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191006171108.150129403@linuxfoundation.org> References: <20191006171108.150129403@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 d9ae983095c54..2b7e8eeaa59e9 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