Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp838670lqt; Thu, 6 Jun 2024 23:06:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUZjYCgfLXlaCKBUKqudp2kgRpE5JbNzq3HRKcQXVL15UugGZg06lLk4AnVxDytlpRaPvtqWU7zs4XKL865AdmaT4sH4mKNnNAWKR4fBw== X-Google-Smtp-Source: AGHT+IF8u0KUkmdqqse62aQqQN2brUNLgoyuXjJzQnURpqvBwhfuvyRTF/WqqEuh30OodWlxPbeY X-Received: by 2002:a05:6a20:3944:b0:1b2:a8e3:4a22 with SMTP id adf61e73a8af0-1b2f9ac18e0mr1908357637.34.1717740407500; Thu, 06 Jun 2024 23:06:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717740407; cv=pass; d=google.com; s=arc-20160816; b=KqVzw4+wiL5JITij+l2HXfNbsrY4CrhTo45Kuo8jeQc6Yx2Co8QD4LR4j1gpgAyXve TJFzmNlaEcQJShqeZEmZiLkkNRYQrBjEmDQTZwX4/ZEMD3CK50lfA7TsfdBxCQMmOrn/ wcCYnIYg0l6XYMtNK5q8yRktLYvZa+jdcVR0kCLqQZRAdssNbl6Lcj9Ix/vS29r2QXlA Xf0R4TfekMA5vogZRZiV7K9mnHja5jjWAemLMNNIjNrcf04fOpxTfeBzHxEn/kwOIZNE AJGy30wRCrwPvjKdVBrmbWwF7lnpWsa186IEEuzl2OSMl6a87F/8vwQxQ+Hln9nG4DtJ XOTw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=13ye3x6bqI5GuYJbXMnGhJMerrpc/q1sn8LzmUGBC40=; fh=yyIUpvAAakPfhJzt4din3dc1YNxixbuCwOcz2cxAMTs=; b=J2cUSfkeDNz9SbqKz/IlM1mUPS+7KT2F5QB2C0dixvAx9BBLYobnh1cCPHrEf96gae dCGY0aiYzMUOkFMu70hfhLyKKJzmzHeFXd3R9aAdu/feDerK98l0SpoXS+wNi9nAPa1K 4j9XuT2ArhKUcukTmTKoPkPIe7OekkhjZ1ZopdYspwDjjERvYc2DOJd269u+GQVtToRV 9D02J//g8LRLBVATbGpX84eK4MpSa+FR3mcC7XAiBAZyAzHo1LsJb3wT5Omma7p+AJjx nlitdeN8IoDs1eKKFCMECjheQKvRJOtmIvjhCAGIxqCiyNILiJgIfLqvBjukRuyqWxqv No5A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="m5uC/7nJ"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-205435-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205435-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c2806bd668si149605a91.98.2024.06.06.23.06.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 23:06:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205435-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="m5uC/7nJ"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-205435-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205435-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 8E5DCB24115 for ; Fri, 7 Jun 2024 06:03:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ADF9914F123; Fri, 7 Jun 2024 06:02:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="m5uC/7nJ" Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A042B10A24; Fri, 7 Jun 2024 06:02:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717740173; cv=none; b=fIQxgA+tVdTbmnXoIntvMGzM07HfMpaaWY2nCU0Fe5eWMePWJxBVyVAuixs3OSyS4Pzyas5zLWUAAaAwWC6Hi/0sNq+Y420SDBCTqDYidjHD3nTx/Iyb2zMVl1P7JhRSkFhCEtlrRRmot6BebyQVyAHVYSpvDH29LAGpkH9T+G4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717740173; c=relaxed/simple; bh=EujP3PnbV6FqVzZC96xOFn3xGF4iV3+dsvDRjo3amGw=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=Ex03IAbt3Oy2di5nii45CJ6eim2oJnTPqnpYqCIDir7bPSomn1qe3WFUqYjGYzQ8s6oFRYBwXIR8Rx+tK1qejS4S3olOP2P04Jr7dWv5oRs9He9H8OOeuScd2CI2TUHF4c3mz6rD8o4mesD4rllCsOhriHwIE8MG1TYCaKHlf+0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=m5uC/7nJ; arc=none smtp.client-ip=209.85.214.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-1f68834bfdfso13750605ad.3; Thu, 06 Jun 2024 23:02:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717740171; x=1718344971; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=13ye3x6bqI5GuYJbXMnGhJMerrpc/q1sn8LzmUGBC40=; b=m5uC/7nJ+doIJTwo9AhZKUP0NkQ7F9oxV29s/XAFCvb1m1dUCWLP8/WbR8lYNYD+pX WOdlgfLzN7tPU6DNyMXKGvFQYPUZMMl/w//GVLoChvcgdO1F9bTVwnQOTM6OBbWHAgsi oBiQP6ovErmNUiIX89ux8DpX1rArZkJuc+QC77AzNBqxGYGUqG2k7HqbbmjKqiuM5t2d 7I+HN0Xk0ERDG5h1/+R7wD++CVNuy43tBmG6cdQMa6Cfi4+jMUUBD4393nfEfODacZ/l svq9mxF6Hx0zKjHgzATsRuTaUmEUpTFqRxA9AH8T16J3fqaSBQo7FxTQ16mPbd6DfxPk HhRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717740171; x=1718344971; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=13ye3x6bqI5GuYJbXMnGhJMerrpc/q1sn8LzmUGBC40=; b=fU/oe4eBMFTJ79UbPw6PPvFwOStXU3aih3juUWVSQ8vVfwTOt4Fb5C+n9h5K3Xugsa S1qWnWMvKuQE4PbOhfGgYg7qSUrgvadADD1qfGyl/ahAk/nuIH3KPSo0BGy3VGGgRfdN lJNwmrcDvv/kUaboRsZgC2cYsgagxIBbTUwhj4k9mYdDA3KiE7aMjTbmYUOrDM2zDcEn +mlisqIV1+KKvJGLLQRz5LpFeOrKRyVbACVTaiz6W3hy0cTTbd5HA0dXZ02yilkGnZGo 0bOmfLMfeRhh6B06+3xxJIqIfAjQZHhWbG7B9RtbAZoQkIvcgiiu4Vr+8Y4gkN2JbszI oitQ== X-Forwarded-Encrypted: i=1; AJvYcCUGtGQmaFGE9XM6F5isdnCOFVXNy5vUYSw6H00ejoyK2ukRv0XEi/u4XdSWVWivELzo0aszL6yWhosZT80APRUlY4FVMYVBqV17ZGnJ X-Gm-Message-State: AOJu0YxIKaSmJknPYk6yUTp3Xc+shzks2wPjo/X1p3XcJ2IJn+4UwY0+ h9d3LBRl9mfKKWCwIpBCcyksg7rmZ4cYQk38BlCQR28phauYp+iKxdWuOQ== X-Received: by 2002:a17:903:2345:b0:1f6:74f3:ac0a with SMTP id d9443c01a7336-1f6d03d6ef3mr18466585ad.64.1717740171329; Thu, 06 Jun 2024 23:02:51 -0700 (PDT) Received: from google.com ([2620:15c:9d:2:b8e9:3447:a54a:310b]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f6bd7d2cb8sm26009695ad.140.2024.06.06.23.02.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 23:02:50 -0700 (PDT) Date: Thu, 6 Jun 2024 23:02:48 -0700 From: Dmitry Torokhov To: linux-input@vger.kernel.org Cc: jingle.wu@emc.com.tw, josh.chen@emc.com.tw, Phoenix Huang , linux-kernel@vger.kernel.org Subject: [PATCH] Input: elan_i2c - do not leave interrupt disabled on suspend failure Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Make sure interrupts are not left disabled when we fail to suspend the touch controller. Fixes: 6696777c6506 ("Input: add driver for Elan I2C/SMbus touchpad") Signed-off-by: Dmitry Torokhov --- drivers/input/mouse/elan_i2c_core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/input/mouse/elan_i2c_core.c b/drivers/input/mouse/elan_i2c_core.c index c2aec5c360b3..ce96513b34f6 100644 --- a/drivers/input/mouse/elan_i2c_core.c +++ b/drivers/input/mouse/elan_i2c_core.c @@ -1356,6 +1356,8 @@ static int elan_suspend(struct device *dev) } err: + if (ret) + enable_irq(client->irq); mutex_unlock(&data->sysfs_mutex); return ret; } -- 2.45.2.505.gda0bf45e8d-goog -- Dmitry