From nobody Sun Feb 8 00:38:54 2026 Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) (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 E0760359F8F for ; Wed, 21 Jan 2026 06:41:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768977663; cv=none; b=mypl06HhARdSYuOQiNEr/3iSwHmv9/h+TKJ3oQfeWvVcGNRcaofKlbmfIR3TcIKxQykwDSALA7pyuHeMoRX8Kg73ItcRbOu60CDAaTphKhzm8VDgjwNqigOPC+M83Ds+kfTy0I+rVifZcZv2NAL/DrMnACI0oQkBvuMKuL4eoCk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768977663; c=relaxed/simple; bh=0VwuN9/IjqODQZh9DgW6KWamSmxw251Z9dlyrHTtyUk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CnOGlsugeFp4Ed7S5ZJC/Acow756WsL6naLq0n3futnVRzBbAUBCJq68ffmWqVNXVUuE7IjUvJ0AlKr6rB8g+S+YGi61StRx52a10tsu+Ecc4SNdb2Xf1N+nNhMu54Z0PFYJOS50C2uvK/ZA/4drfBGHzF9drUE34uwpELqxDPs= 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=PZzmT6Vv; arc=none smtp.client-ip=209.85.210.178 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="PZzmT6Vv" Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-81e93c5961cso5105900b3a.0 for ; Tue, 20 Jan 2026 22:41:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768977661; x=1769582461; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=mkqmypmkTIuPWsY5B5pc0P3WmdN0p6dQtsQrpbKtq3k=; b=PZzmT6VvkW6SabKT1DHfyulMWAENwq/B2k1U+ijWGlu3ihENu6V/Aq8kT4j1/O0D3j 7KcWMrniJMRd3zN4wpDK6EIaltDhDCw17p3qR28BWR/F/f77R7nJSrf1EF1o22ZWGXyp kGF2KI8iLV38EDrS1uih+0J15MvpO2Yirpf8djQ1tS6xRWN90HDnFhbTwtnEpUdyOyHx ps3v+kr0kWSuZztljpb7PtHZarLpBZV3nAdu81QNjY2am6qxXJwAzttqMxj3aPBWPPSe kNFa06QlxmpvTLWoV71cGe1n+VzopXG1VH8+G3YUV41Aj5HrLqdRcfR3bjchxAhARbo9 weUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768977661; x=1769582461; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=mkqmypmkTIuPWsY5B5pc0P3WmdN0p6dQtsQrpbKtq3k=; b=HbO+a4/LfH8rCJe5upWLZOq7iJF3Exel5Wd9Qy/lxGCISIPDaR+obR2duaO8b309lU A/bQbw+Xc1v4/QUefaewuAhFooQIK4MQAJzXqe6pJzXs7ciXfdNeWdebD5ToyCjlXMdJ Idc6S7SxwMrPfc/qtbHenkxKZA9oodYgYD/p2tcrNBlbluPh8Kz+raPEa66GAtMhjhq0 wYf327CQ6SBjIkIBcdxF8LVtrkiIcNw7oaPdDAUbCw4L02isr9CXT5KhFFbkCigzspWi KxTlY8VDlgVbtMgvbKabf0mx6nQKKDhoYXKy3/+62Jw942o8yOFMt+vyvAgEkRJxViH0 RlQg== X-Forwarded-Encrypted: i=1; AJvYcCUz0Bm902Hlr5sOIdI0ctkV6efLzJQG9LK6OL04CjmHoZPt3wZDSR+XfAIoOiG7qSTjAutr7bzR0accPV4=@vger.kernel.org X-Gm-Message-State: AOJu0YwilkV7l5XpriYqc5lwhI709zrE8XqztEJypCuKoiVaxBNZVvKT SGF88hUcM3skPpg8rA/29rTsFxXJN5KuyrNioKLLeLfZQif34t+nSmYQ X-Gm-Gg: AZuq6aKRiG8+B7hCjsL/dH1H6+Y9C+Uwat1RJkyL4c+QhsH/A2aMDh1xNZoBZVx4AiM xdyuYmAKBI2+14oqZ45RP1FLnBKn8KizgtWQN1ZO7mErRBOURiui13Mf1ptxO+cONC9Q546EKWH oBObXs8nQVa/jNTetO2qQsX74rS0WojGiuXQ3sHZr7xHih+KEcwjU/2x/fiTnPYTcsD/OrkYFYG 2v/B/kraeJLW4jIeWjKbgbTSTspU1TsDh5owuEhdr3gYO5nC+oJdRYdIu8GZ0NXi4nbb/UrqbhI 9dRdirMzhQbdN6GCRdScPonmASjJqUPT8gL0wdKkTyqc56U+eDtQfIl3ddu+XsPDz4EIaKscbp3 GWKbmrewVLRebhiQQmmkmbxARRMeHzf9qFJIJuIfr9crXN5OSYCLKFULuiVZtGK+KPno/Q/GzJx oGGlCG2EeBzsL9okoiurUt1B/lP6s0w3g/sDBDAKcY X-Received: by 2002:a05:6a00:244d:b0:81e:2bca:d133 with SMTP id d2e1a72fcca58-81fe87dcc5emr4313356b3a.24.1768977661233; Tue, 20 Jan 2026 22:41:01 -0800 (PST) Received: from localhost.localdomain ([121.190.139.95]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-81fa10bda5csm13898092b3a.19.2026.01.20.22.40.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jan 2026 22:41:00 -0800 (PST) From: Minseong Kim To: Dmitry Torokhov Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Minseong Kim Subject: [PATCH v2] Input: synaptics_i2c - guard polling restart in resume Date: Wed, 21 Jan 2026 15:37:38 +0900 Message-ID: <20260121063738.799967-1-ii4gsp@gmail.com> X-Mailer: git-send-email 2.48.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" synaptics_i2c_resume() restarts delayed work unconditionally, even when the input device is not opened. Guard the polling restart by taking the input device mutex and checking input_device_enabled() before re-queuing the delayed work. Fixes: eef3e4cab72ea ("Input: add driver for Synaptics I2C touchpad") Cc: stable@vger.kernel.org Signed-off-by: Minseong Kim --- drivers/input/mouse/synaptics_i2c.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/input/mouse/synaptics_i2c.c b/drivers/input/mouse/syna= ptics_i2c.c index a0d707e47d93..fc65e28c1b31 100644 --- a/drivers/input/mouse/synaptics_i2c.c +++ b/drivers/input/mouse/synaptics_i2c.c @@ -615,13 +615,17 @@ static int synaptics_i2c_resume(struct device *dev) int ret; struct i2c_client *client =3D to_i2c_client(dev); struct synaptics_i2c *touch =3D i2c_get_clientdata(client); + struct input_dev *input =3D touch->input; =20 ret =3D synaptics_i2c_reset_config(client); if (ret) return ret; =20 - mod_delayed_work(system_wq, &touch->dwork, + mutex_lock(&input->mutex); + if (input_device_enabled(input)) + mod_delayed_work(system_wq, &touch->dwork, msecs_to_jiffies(NO_DATA_SLEEP_MSECS)); + mutex_unlock(&input->mutex); =20 return 0; } --=20 2.48.1