From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796263875; b=opNTtiNB9yOwR8l1B6nndAGhXhnVLdfqTIFI5YoGapaM5LAAt5zy2lMCFCnXjZvdd7f/ od3PQAlltLuNhliAKMVSjSLj1yev9k29CnQGmOM+vGarBWOk6e1yW/uahAhakbV94OSf3 If7M7v6lbi17K3z8US/lrh4C0Bcsl2/IbGYOXwqoG96u1jKFiwtkHfo2KnTl2lFvTgqcP XHAnUYANQvx8W3dbQrW2qHshWLGkoS0XB+fOQGO731HmXmo3RE0C5tTKvLFa339cLyd+/ 4Pd2I5gDoeg2LDnwVEeQCFv9bO5TvYelf7FLcT8ueggW9Y3r3sBgxlkZ4rrkEB2uNJA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796263875; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=xq8tdO/w6yak3y4P2N/bpnHZW/IVCF8wTQlTlYCOZbc=; b=U1f0bp6Oj9qaExDigePwNVCvcpmOmSeU0x/8sT/GxsdxqUuw65ofTLZ1a4DVJy102j7f k42Xj7Rw4uvZRPCXRCKn++9TH8fnICtfStSwBNnQm3rGjsTxBWCuMD9NxHrtf4w5goLeb fKtwRk8J3yQRtkxfVxFnNDrtSs+lB+PKRogc6wqwgMWWSRX5sSUl23MhF7mu1l9O1CXPr tj8pwGJPpO7GB8gZJW+Qw0krFyu1ajIONi3Mi8rZeuQFG4pikHdD5HrpbfehKEsW7BcjA 7uvxUeQDED883GIobUdF4ikGZ8saHK+l8tzu/ffvEJp8v2RJxD8Z6v9Z9F3UsNMWBrg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=XK8o819m; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A7675606A322 for ; Thu, 3 Dec 2026 02:11:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=XK8o819m Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11A071F00896; Thu, 3 Dec 2026 02:11:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796263875; bh=xq8tdO/w6yak3y4P2N/bpnHZW/IVCF8wTQlTlYCOZbc=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=XK8o819m/t0YRvPa3fbyZTLPA2wdvY+pGtp+fpnINdJ85IwsLLmsP2tOzcEDdBUqy d4VTFoykYP+lpxrTJACuFZJlZJz0bH3YSf5gw6YKOrxRzaXs7yKXBrtia5z3LWEKJv /gE529tO4U3r3spcXU5pQ2m2DurDGG+EqOPROZL/T9LKNGAkKpTObDRyQOqsz69S9K moGz6n39wpbrm8Ou7pTuOy1AhAUqPAGHiODfQTptJQczXJIa1FN9ml+uWYx+F0zsAX 2iHkMT05swciWAwzlTeq/3f/r5EMgreFcAPKCLXwht6eMbUDqYZnLmYHdhX7DZa/Jl FPFR1fOwC9Neg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v11 1/6] HID: intel-thc-hid: intel-thc: expose the port operations IPTS needs Reply-To: sashiko-reviews@lists.linux.dev To: "Emfox Zhou" Cc: linux-input@vger.kernel.org, dmitry.torokhov@gmail.com In-Reply-To: <20261203020433.2631656-1-emfox@debian.org> References: <20261203020433.2631656-1-emfox@debian.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 02:11:14 +0000 X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] HID: intel-thc: thc_port_reset() misnamed for Touch IC reset operation -- commit a15fdd771faccc457564c8d773289aea962cca03 Author: Emfox Zhou HID: intel-thc-hid: intel-thc: expose the port operations IPTS needs This commit adds and exports thc_port_supported() and thc_port_reset() so clients can check the port capability bit and drive the touch controller reset pin via THC_M_PRT_CONTROL. > diff --git a/drivers/hid/intel-thc-hid/intel-thc/intel-thc-dev.c b/driver= s/hid/intel-thc-hid/intel-thc/intel-thc-dev.c > index 03d3b60b35cf1..c7d4959153e94 100644 > --- a/drivers/hid/intel-thc-hid/intel-thc/intel-thc-dev.c > +++ b/drivers/hid/intel-thc-hid/intel-thc/intel-thc-dev.c > @@ -1111,6 +1111,64 @@ int thc_port_select(struct thc_device *dev, enum t= hc_port_type port_type) [ ... ] > +/** > + * thc_port_reset - Drive the reset line of the touch IC > + * > + * @dev: the pointer of THC private device context > + * @hold: keep the touch IC in reset instead of releasing it > + * > + * The reset bit of the port control register drives the reset pin of the > + * touch IC: zero asserts the reset, one releases it. Firmware may leave > + * the pin released, so a start asserts it and then lets it go rather th= an > + * assume it was held. > + * > + * Return: 0 on success, other error codes on failed > + */ > +int thc_port_reset(struct thc_device *dev, bool hold) > +{ > + int ret; > + > + /* DEVRST: 0 asserts the reset, 1 releases it. */ > + ret =3D regmap_write_bits(dev->thc_regmap, THC_M_PRT_CONTROL_OFFSET, > + THC_M_PRT_CONTROL_DEVRST, 0); > + if (ret || hold) > + return ret; > + > + usleep_range(1000, 2000); > + > + return regmap_write_bits(dev->thc_regmap, THC_M_PRT_CONTROL_OFFSET, > + THC_M_PRT_CONTROL_DEVRST, > + THC_M_PRT_CONTROL_DEVRST); > +} > +EXPORT_SYMBOL_NS_GPL(thc_port_reset, "INTEL_THC"); [Severity: Low] As reported by Xu, Even on v10 [1], should thc_port_reset() be named thc_tic_reset() instead? THC_M_PRT_CONTROL_DEVRST drives the external Touch IC (TIC) reset pin rather than resetting the THC port itself (which has its own soft-reset bit THC_M_PRT_CONTROL_TSFTRST), and existing Touch IC helpers in this file use the thc_tic_ prefix (thc_tic_pio_read(), thc_tic_pio_write(), thc_tic_pio_write_and_read()). [1] https://lore.kernel.org/r/SJ0PR11MB7704E6861DD87DC5483395B5F44C2@SJ0PR1= 1MB7704.namprd11.prod.outlook.com --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/cover.1796215044.gi= t.emfox@debian.org?part=3D1