From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9C49AC4360C for ; Sun, 6 Oct 2019 17:23:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6790020862 for ; Sun, 6 Oct 2019 17:23:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570382609; bh=Qdk2g6rFXA19O83ksX68LoEMe9e94G5/RP8eW++x/4U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=K4oTrGqIpuGLTChM+EhIE9w3qgKN/jnqm63iGA45SyenZQ31ilR6dnw7AyxNTNFCZ LNI1rE48rYpLzjrYhotcDWdxyEr9azE1SCgjha0tOhTHjkz5VDIzJuYeQlnCBV8mue mi8457DWFXFQJoQNknjnrjRTOdbzVQSfKi1XjH3Q= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727601AbfJFRX2 (ORCPT ); Sun, 6 Oct 2019 13:23:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:47976 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727231AbfJFRX1 (ORCPT ); Sun, 6 Oct 2019 13:23:27 -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 71A1E2077B; Sun, 6 Oct 2019 17:23:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570382606; bh=Qdk2g6rFXA19O83ksX68LoEMe9e94G5/RP8eW++x/4U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TM6ej8mD6Uv9OTK2YWFZID6LiGyGwf/Us2rMqLxrAzgFqA/ggXfvBSoX9nZbHjnsC bpBKehACAtmKy/fRLXsF0ALFvToibzKeUWLq4s1VO9EnsSXv+NMgwpD96L5su+Jy5j Aay9vUbY26K7c/kaQjn5ez0+KNLAjPEO73VWlS2k= 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.9 20/47] mfd: intel-lpss: Remove D3cold delay Date: Sun, 6 Oct 2019 19:21:07 +0200 Message-Id: <20191006172017.950996167@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191006172016.873463083@linuxfoundation.org> References: <20191006172016.873463083@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 9ff243970e93e..5b41111e62fd1 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); -- 2.20.1