From patchwork Fri Sep 1 01:27:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Torokhov X-Patchwork-Id: 9933247 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id ACFDE6016C for ; Fri, 1 Sep 2017 01:27:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9DE8627D29 for ; Fri, 1 Sep 2017 01:27:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9282F27E71; Fri, 1 Sep 2017 01:27:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E339127D29 for ; Fri, 1 Sep 2017 01:27:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751310AbdIAB1n (ORCPT ); Thu, 31 Aug 2017 21:27:43 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:38456 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751109AbdIAB1m (ORCPT ); Thu, 31 Aug 2017 21:27:42 -0400 Received: by mail-pg0-f68.google.com with SMTP id t3so777710pgt.5; Thu, 31 Aug 2017 18:27:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=nL507Mt9/Pg4BPd1mEs0m3V5eIjOpxYjAbjlB2SAuPo=; b=Cgh5eWnbsocvyjnExjq81povdXalM8dFQmDsLC2qbvUB1W+gQDVhrxR4AiiAeZ2KEU 1dAY19Gi+ucOojH/JO+9FC7hIWMD/atS3XrxcOv2iWRi/GOqC1G6Bzdsz67uE106SL6y jnEV3ChMTqZb752xG/HpA0PKuGkTK0Due6l4nPmZ51IbUb/BpRmrAmBMoHrPMG6gz9fk qQx+TtIhV9CDBw1oFu7UpHXoesqjbzG2qO/1IAjOXqMSE7m93NOg8nf7/zTfl51ddmXR fdP+jn0a9rTvwsLrLO8qkRYhR/NkWDqJ1WOkBstJyoJWSAJX1xrap4XlvcRssD6C9L+w 2JFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=nL507Mt9/Pg4BPd1mEs0m3V5eIjOpxYjAbjlB2SAuPo=; b=EN8IO7ilaVkII3ufa+bycE29yy/qL0eZ6iOkwXAsJQZk9Il+2n0/xuhvJmoncFkIDv 6Lw1UPAm2YaUSfE1AJCAQmJO36GtT02kFfb1hUeZUm69kfp6MPrKjVBDph5dOaYQKhdF ASpsadk4lLuSaVJVIPwZiVGKdxsA8y1CkH4KMaz+Nc7b24amqQGGSZ6lc+x6KuwTIRGu LpTaGeSw8S2HEf4ocdK2O6nFNQhNIklTEed42LpqEbwjoHFzlV0oUNCrz2LDyP7rEBq7 AWsuYZgkhcIdE2VLnfB72A7ove7E6PEiHERsGALr/SZzOApBYbdXHflsw7nyZPHvVfR5 W5Vw== X-Gm-Message-State: AHPjjUic9IZlzri/F5FsMZs/wbj9SmUl0R0m8BqDuNcJOCSFC3N4A14y o9QyUoQdjspfdzkVUVs= X-Google-Smtp-Source: ADKCNb5uk9kqqo/rSEIzPvctPCCF9FIqCRxI/ak1iof+rkz4O9cn9aOrcSUFI2j0Nms4xOfdUeIJrA== X-Received: by 10.98.215.22 with SMTP id b22mr409706pfh.157.1504229260897; Thu, 31 Aug 2017 18:27:40 -0700 (PDT) Received: from dtor-ws ([2620:0:1000:1611:a502:75bb:f183:4bb7]) by smtp.gmail.com with ESMTPSA id l22sm987152pfg.175.2017.08.31.18.27.40 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 31 Aug 2017 18:27:40 -0700 (PDT) Date: Thu, 31 Aug 2017 18:27:38 -0700 From: Dmitry Torokhov To: linux-input@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Anton Volkov Subject: [PATCH] Input: ucb1400_ts - fix suspend and resume handling Message-ID: <20170901012738.GA1286@dtor-ws> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Instead of stopping the touchscreen we were starting it in suspend, and disabling it in resume. Fixes: c899afedf168 ("Input: ucb1400_ts - convert to threaded IRQ") Reported-by: Anton Volkov Signed-off-by: Dmitry Torokhov --- drivers/input/touchscreen/ucb1400_ts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/ucb1400_ts.c b/drivers/input/touchscreen/ucb1400_ts.c index c1e23cfc6155..1a86cbd9326f 100644 --- a/drivers/input/touchscreen/ucb1400_ts.c +++ b/drivers/input/touchscreen/ucb1400_ts.c @@ -414,7 +414,7 @@ static int __maybe_unused ucb1400_ts_suspend(struct device *dev) mutex_lock(&idev->mutex); if (idev->users) - ucb1400_ts_start(ucb); + ucb1400_ts_stop(ucb); mutex_unlock(&idev->mutex); return 0; @@ -428,7 +428,7 @@ static int __maybe_unused ucb1400_ts_resume(struct device *dev) mutex_lock(&idev->mutex); if (idev->users) - ucb1400_ts_stop(ucb); + ucb1400_ts_start(ucb); mutex_unlock(&idev->mutex); return 0;