Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756529AbcDGWu7 (ORCPT ); Thu, 7 Apr 2016 18:50:59 -0400 Received: from mail-yw0-f193.google.com ([209.85.161.193]:36259 "EHLO mail-yw0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751895AbcDGWu5 (ORCPT ); Thu, 7 Apr 2016 18:50:57 -0400 From: Tom Rini To: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Olof Johansson , Nick Dyer , Dmitry Torokhov , Henrik Rydberg Subject: [PATCH] Revert "Input: atmel_mxt_ts - disable interrupt for 50ms after reset" Date: Thu, 7 Apr 2016 18:52:25 -0400 Message-Id: <1460069545-10322-1-git-send-email-trini@konsulko.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1302 Lines: 42 This reverts commit 885f3fb9fa1f9e185e8a4e905157087495734349 due to this change breaking the touchpad on the Chromebook Pixel 2015 on resume from sleep or warm resets. Cc: Olof Johansson Cc: Nick Dyer Cc: Dmitry Torokhov Cc: Henrik Rydberg Signed-off-by: Tom Rini --- drivers/input/touchscreen/atmel_mxt_ts.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 2160512..9b92b60 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c @@ -1098,9 +1098,7 @@ static int mxt_soft_reset(struct mxt_data *data) struct device *dev = &data->client->dev; int ret = 0; - dev_info(dev, "Resetting device\n"); - - disable_irq(data->irq); + dev_info(dev, "Resetting chip\n"); reinit_completion(&data->reset_completion); @@ -1108,11 +1106,6 @@ static int mxt_soft_reset(struct mxt_data *data) if (ret) return ret; - /* Ignore CHG line for 100ms after reset */ - msleep(100); - - enable_irq(data->irq); - ret = mxt_wait_for_completion(data, &data->reset_completion, MXT_RESET_TIMEOUT); if (ret) -- 1.7.9.5