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=1796497429; b=vHik/17XjRMjo2puxh+48yM4j6CEmU3LDmuWm6mA4JcFrzmawsmZ3TyEFda3oZHRzd8c 2Y60y+C6DyiPte92xfAHOdwEiJm1uOR8yyluoMt0NGmdWW66oZqP8YndedUKavOT6iL7l 5M4KNKH/lvjA2+6bHf44VHbGhGLvF/NEMvkVXieFhhMXXs46TDvtut2kBlhbyPMyDV06I 782Q3+guTZ9cqZWYmf2xXe2rnr+7M10ZS0yxGLfzX+aGWz5dQ5Gidd32TFhsxcQnC5QNW 9dq5KBTfXdLvDr/QZkcUZWOs1SXS8MWwuAiYUgKFJT72xu2ug9haYPvsoP2pSdDND+A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796497429; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=lCk8d6Zg8pozr47IVIsO9mzX/Vw3JRzroMdtHmY0iSM=; b=gS7HlUPJiCXhxi6LTL2srEmLUGZur2H+QqhDtqm7RN3TpD05SRcgKH3OsvpQinKalooT tzHWUhW2EMPG2CRqmoU6dOE8zwM5xNXMpx2QY/wx1UgJ1dhI7jcJPiQvvHpHjx39PHZsq QngRlu73n2mprHdBJ2ZwF0P9d3Xej/9EVncSA/63TTdGSxkife0a6AiZCGjd5is+Fihvt uu+0IQVpjvOj5OHcRf9+BapQuOtc7CEkRxbRDAPmHNUPjscS8B35irWg2Flx5b2VZ3q0H RABQZ+wc96ntZ/c14zvYhTxzHkQrq1laAsZ1gtDd7gMqCUOHy4q/qSKiM65nar4DNTw== 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=Nx7VZbNG; 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 7C940606A31F for ; Sat, 5 Dec 2026 19:03:49 +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=Nx7VZbNG Received: by smtp.kernel.org (Postfix) with ESMTPSA id E84EE1F00936; Sat, 5 Dec 2026 19:03:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796497429; bh=lCk8d6Zg8pozr47IVIsO9mzX/Vw3JRzroMdtHmY0iSM=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=Nx7VZbNG/N44prWBCItCh2XCPtopCK2C1DwVuv1PvFIF/6mSb1H8bTpH9z+fyhedb jiRPysrNA1aWC8sTpwc/Mqy/4rJreiE6eZ+98h4QjHTqfa1+3etX+QVMwXRx7mAFBr /GO4fnLiTix1OO5aYYkgNqNtTfI6lUkjZGolSIiHwNQmipLBmzumHcmPheIgh9DZ3D h2BlAyu5g7uINL0SYILC45wg5b63n7X/IxabdENLQlPN/WREXhQdBUPTxj6KeeRRQf jD3hR0K5N/BViDkD3AkPBbHyv1TnrK3cygChbxdxUt3XDjpXgs+g7OlUyU3PHDz/k4 2Imn0yQUYfsKg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v7 03/13] HID: haptic, multitouch: Check haptic prerequisite properly Reply-To: sashiko-reviews@lists.linux.dev To: "Rong Zhang" Cc: linux-input@vger.kernel.org, dmitry.torokhov@gmail.com In-Reply-To: <20261206-hid-haptic-kmod-v7-3-3eea47035836@rong.moe> References: <20261206-hid-haptic-kmod-v7-0-3eea47035836@rong.moe> <20261206-hid-haptic-kmod-v7-3-3eea47035836@rong.moe> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 19:03:48 +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: haptic: commit message misstates is_haptic_touchpad and pressure checks -- commit 6712e64226c13489743efd6a2bae216176bd137f Author: Rong Zhang HID: haptic, multitouch: Check haptic prerequisite properly This commit caches the first valid HID_DG_TOUCHPAD input device during pressure unit validation, rejects mismatched pressure annotations or duplicate touchpad devices, and restricts haptic setup and runtime callbacks to that device. > Reject annotation mismatches and duplicated HID_DG_TOUCHPAD input > devices to address the first issue. The annotation mismatch check only > compares unit, logical_minimum, and physical_minimum to adhere to the > previous intent as much as possible. [ ... ] > With these, the td->is_haptic_touchpad is converted into a one-way > (false =3D> true) flipping manner. The MT_CLS check is also removed in > favor of the prerequisite checks. [Severity: Low] Are these two descriptions in the commit message accurate? td->is_haptic_touchpad still flips from true back to false when a later HID_DG_TIPPRESSURE usage is rejected in hid_haptic_check_pressure_unit(), or when hid_haptic_input_configured() returns non-zero in mt_input_configured() (such as a touchpad without haptic trigger reports). In addition, hid_haptic_check_pressure_unit() compares haptic->force_resolution against input_abs_get_res(hi->input, ABS_MT_PRESSURE), not just unit, logical_minimum, and physical_minimum. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261206-hid-haptic= -kmod-v7-0-3eea47035836@rong.moe?part=3D3