From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8DAC71D5ADD; Tue, 18 Feb 2025 20:25:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739910308; cv=none; b=bB2EH71GXSNERCVzerX5wOC5MxV1vZf5dmIuEjBZNwjaCVGOcYN8GOIng8khToQlj8sAmuJXwvtS4LCLx5p4unWYXOzRUBkodu5VwaoVV1gIGR5K6lzbC/6sVKMPtPL9k47rTJ6SCzPqz0rK+ojmOCQHQYd+y0Ge+NjTkGG3eiM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739910308; c=relaxed/simple; bh=hFob7bxHRcHxLkN9QNBdeCaNlo2qqutivrb+jRA90ss=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Yevxm8QbpDrUCidRKe0VjEiPnlxrPOoMVbYgY5O84KgoQsP+X+SLPqINcl+zCSUGn9LjqqmmKKMoWhkdAXOVQIVEgkqCx4UUWpAEIfNbnUgvdZ3iZY7QIff3dYw+UTHNlDhoc52CydTbu9ffDDQP1Ip5ZSiVW89wZ7z5DBzbOtY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QyVG9I6C; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QyVG9I6C" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77A45C4CEE8; Tue, 18 Feb 2025 20:25:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1739910308; bh=hFob7bxHRcHxLkN9QNBdeCaNlo2qqutivrb+jRA90ss=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QyVG9I6CzpFDFMPIO/VEQ3aG90lPDmGXOy9wC0gMurqomkhVKSjRKlDYtBQoI87gB lgKo9257wZ3tDqzM22nFRX2L1IkTuKl0kqeNTLCabNvVTFl//JjMKqMnAOfg5xXLCn /Y0funPBLjIrhkZJ+MvWXRe54IizGqydIXfVqxzFf8AmK1vXreaiqp8CJPFZuHLjQ+ 2KgjNAHZe54rwy6gKnC4RL31xfFuhoGoUjvk3kks+I/Nl9xc9pbDvi87x/IM1Cp87p gpd0Kz9B9wLYgyc1jq81bJHvO1fEocnNze1nchUVA5LJ7mcjDE9NBJ0LGHHySmeaJB 6Vx5WQp4WBUgw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: "Chia-Lin Kao (AceLan)" , Srinivas Pandruvada , Jiri Kosina , Sasha Levin , jikos@kernel.org, bentiss@kernel.org, linux-input@vger.kernel.org Subject: [PATCH AUTOSEL 6.13 04/31] HID: ignore non-functional sensor in HP 5MP Camera Date: Tue, 18 Feb 2025 15:24:24 -0500 Message-Id: <20250218202455.3592096-4-sashal@kernel.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250218202455.3592096-1-sashal@kernel.org> References: <20250218202455.3592096-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.13.3 Content-Transfer-Encoding: 8bit From: "Chia-Lin Kao (AceLan)" [ Upstream commit 363236d709e75610b628c2a4337ccbe42e454b6d ] The HP 5MP Camera (USB ID 0408:5473) reports a HID sensor interface that is not actually implemented. Attempting to access this non-functional sensor via iio_info causes system hangs as runtime PM tries to wake up an unresponsive sensor. [453] hid-sensor-hub 0003:0408:5473.0003: Report latency attributes: ffffffff:ffffffff [453] hid-sensor-hub 0003:0408:5473.0003: common attributes: 5:1, 2:1, 3:1 ffffffff:ffffffff Add this device to the HID ignore list since the sensor interface is non-functional by design and should not be exposed to userspace. Signed-off-by: Chia-Lin Kao (AceLan) Acked-by: Srinivas Pandruvada Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin --- drivers/hid/hid-ids.h | 1 + drivers/hid/hid-quirks.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index d1d479ca50a21..43a6f1d243a62 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -1093,6 +1093,7 @@ #define USB_DEVICE_ID_QUANTA_OPTICAL_TOUCH_3001 0x3001 #define USB_DEVICE_ID_QUANTA_OPTICAL_TOUCH_3003 0x3003 #define USB_DEVICE_ID_QUANTA_OPTICAL_TOUCH_3008 0x3008 +#define USB_DEVICE_ID_QUANTA_HP_5MP_CAMERA_5473 0x5473 #define I2C_VENDOR_ID_RAYDIUM 0x2386 #define I2C_PRODUCT_ID_RAYDIUM_4B33 0x4b33 diff --git a/drivers/hid/hid-quirks.c b/drivers/hid/hid-quirks.c index e0bbf0c6345d6..5d7a418ccdbec 100644 --- a/drivers/hid/hid-quirks.c +++ b/drivers/hid/hid-quirks.c @@ -891,6 +891,7 @@ static const struct hid_device_id hid_ignore_list[] = { { HID_USB_DEVICE(USB_VENDOR_ID_SYNAPTICS, USB_DEVICE_ID_SYNAPTICS_DPAD) }, #endif { HID_USB_DEVICE(USB_VENDOR_ID_YEALINK, USB_DEVICE_ID_YEALINK_P1K_P4K_B2K) }, + { HID_USB_DEVICE(USB_VENDOR_ID_QUANTA, USB_DEVICE_ID_QUANTA_HP_5MP_CAMERA_5473) }, { } }; -- 2.39.5