From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dl1-f41.google.com (mail-dl1-f41.google.com [74.125.82.41]) (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 AED5F299A8A for ; Thu, 12 Feb 2026 06:31:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770877870; cv=none; b=VDU5l29eSy+R2DiN+ERpL9anPxka9jYvsK70NXWTjfvB+DA0RH9bDB9l3JpQDX+bIK4LpbvtirIU9pQz3GbzRi4n7oFG38IO+PlCkkI+22XuB6d/oL3+m6s8HVPaY6KlyB5az8CdumZ0BkCKmezdj0dHNhs2ZMYQpelDkj6rPeI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770877870; c=relaxed/simple; bh=gmRI7aghapLbKpiwYhR02SrobhJ6b11shwU9mxBB3GY=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=peoGmSf6LMh6iUXa7qipfzU/PBuzb7Eqmp9vzpwL/Sxin8WDyY9ad80zEFVBGUWjwGQj6z9HDS3qs16PAvGKDOoFqECqtG1M8xxsM6t12p4T8uJ1ETPpLXnULouIOUEjgaEW/rajTgxMQEDQK3BZBHJum3xJrukzTuk5UFqPxlc= 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=b2c1TuA6; arc=none smtp.client-ip=74.125.82.41 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="b2c1TuA6" Received: by mail-dl1-f41.google.com with SMTP id a92af1059eb24-127337e3870so3394c88.2 for ; Wed, 11 Feb 2026 22:31:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770877868; x=1771482668; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=ZFMRcGyf1te/AxGGubeG1NiPmJvyIrPnnKleI39yt2g=; b=b2c1TuA6aL+Ya1T0iyfTn6jUTfdgm7aKOYyUFnvDLymeQYcHlYCIdTGAO6fBMEttGL lh7Nfn2SkF80lC9C5uk2bqKkq9gjXrstZtcY4KxoVpaIR606MYqGtnc6VQwLNsH8XrNN gE+SZecIvAYyw6EnJE1THhIWaEW+SBUdw28Xag/chJ7Wd/fr8wtiVROG/4JL6Lsln5Zv Hmy2RuwV2E0L9w2cGDlDWVWcZEQ8D4GYFUzXdCFWjxka+Fja288GLV3yD6fzRxEf3N+1 KeYWekb491w2ZygRpTeEZvueOpLfplqlga5z45t8LlnYX0ajOUi3zda5I9QSA2l9eek4 GwCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770877868; x=1771482668; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ZFMRcGyf1te/AxGGubeG1NiPmJvyIrPnnKleI39yt2g=; b=Sod3jpKtYV/pXXd//ke/SeuLKlO2E5sM2oj5r+iv3/WG05GRo9sQ7uP1wESIf6pbcD wIGPy3QalVv2LhpEKseWtQEpHODRDz3iz+76jJRxJC0qHu5tshiCIT3BYbiLkDxYu8GL adnSqFMcIYn32O21qA/jCWd+peA9sSg4Wo17iotwhF2w80fFH0oUYSifJelQqqOgzEpe YncmsJEQ7jsK8OnuzHHXj8hgdftNdm6Ylfd4knziyAgxNCx4jMJpTmALWhtRyAsaPlIG auYJXSs3WnV7bQ5zeRmpzPg2F8loAmQT8F5Zkgpiayhy0qo1of+iWUljtu3554XAKZuH p+BA== X-Forwarded-Encrypted: i=1; AJvYcCUJxe2GRkuYv7ypt+0LkQpiUuTQli5ZI824t3x/J4JB0rVEWAa1A6IuYM+KzrCDVbRDF3klU2RYe+pCDJI=@vger.kernel.org X-Gm-Message-State: AOJu0YxI8GfxNFYMhaw0wlCDhcge9Sj1xi6juvoxsNmY7r6N+QdCkpnl UZ9VV3x5/Nufxt2ZhL5gLoAqX6QkzK4n4OdWdNkMJoQFW6auL0cRRhoCAXQaPJM6Z1k= X-Gm-Gg: AZuq6aIKuDs7ywq9vcnXiKB/mPjJ7ZCBXvRd5FCYnCmraOG6CVQgcRSZJi9BFZNJSUO VrfEdeE/Q6DMvrf484qz2aklvsue5EkSzek2VW0NHirXJi6UfRuFBLhlrMQTJtC6B2K0qV/Q6GS AbIB57dn+rMoyj8ZYEEzHuA7AMZEN9VE2i3tUfQ8lQMsTx2xVxPxSLEPgwmrXtWcZJYZFGo4fYy NihESmkU7tU0SAsXIqEJcFB1Fj9Z9HplcftwlLAHhf0sznkpKuqZfyJjWYT2jo2jTCvDiX36aJI T+oLxFrJHP8MxZypdpAVfhdFucpMuGAEl+0pO/QOJOn2PSqUbL357SyahBfg/IQq/nMd79GrpSj 5ycU0g1n6RvIB3z53LlBIoOh9ScziOKjqXAKRsLtDGuiGmDrVFYoqV4UOtIWfjYCeotoyGBS6UB II2462InfIOWJyLA800FqEegKvLfz3PJaw3JpWIEvGPHuxEEc73g/tTcM= X-Received: by 2002:a05:7022:6993:b0:11e:3e9:3e89 with SMTP id a92af1059eb24-1272f79a6d3mr419258c88.7.1770877867704; Wed, 11 Feb 2026 22:31:07 -0800 (PST) Received: from [127.0.1.1] ([45.32.86.188]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1272a6f29dasm4313870c88.12.2026.02.11.22.31.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Feb 2026 22:31:07 -0800 (PST) From: Yasin Lee Subject: [PATCH v2 0/4] iio: proximity: hx9023s: firmware property, safety fixes Date: Thu, 12 Feb 2026 14:26:51 +0800 Message-Id: <20260212-upstream-20260219-v2-0-2b28fce5d09e@gmail.com> 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="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAKtyjWkC/32NQQ6CMBBFr0JmbU1bESwr72FYjHSASYSSFhsN6 d2tuHf5XvLf3yCQZwrQFBt4ihzYzRn0oYBuxHkgwTYzaKkrqaURzyWsnnASP6OMwBr7yhq8nNF C3i2een7tzVubeeSwOv/eL6L62n+1qIQU+l7auqSTNFZdhwn5cezcBG1K6QMCwXjrsgAAAA== X-Change-ID: 20260209-upstream-20260219-a7af6d9a85ad To: Jonathan Cameron , David Lechner , =?utf-8?q?Nuno_S=C3=A1?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , yasin.lee.x@outlook.com Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Yasin Lee X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=2298; i=yasin.lee.x@gmail.com; h=from:subject:message-id; bh=gmRI7aghapLbKpiwYhR02SrobhJ6b11shwU9mxBB3GY=; b=owGbwMvMwCEYyfeRr6Zs90zG02pJDJm9xXPUF85IDVN3ztpe9flrlplTxqkn0VN3WHr0qW089 tHx/a9LHaUsDIIcDLJiiixnXr9hzVd9uCf4t2sGzBxWJpAhDFycAjCRGHWG//7317rzemRLOgSe uOx/T5h92bvWZ7f4HJJ9IzxVPy9b6crwT2FX3p0e9UNvz/H8ml30Y1PNXYP0TI8I6TkXTm7PCt5 wxAYA X-Developer-Key: i=yasin.lee.x@gmail.com; a=openpgp; fpr=CCEBEC056F25E1BC53FB4568590EF10E7C76BB99 Hi, This series contains a set of small fixes and improvements for the hx9023s proximity sensor driver. The changes include: - Fixing a potential out-of-bounds access when copying firmware data. - Avoiding a division-by-zero case when the sampling frequency is unspecified. - Allowing the firmware file name to be specified via firmware-name property, along with the corresponding DT binding update. All changes are independent but related to robustness and platform support, and are grouped together for easier review. Tested on a DT-based platform with firmware loading enabled. Thanks for your time and review. Best regards, Yasin Lee Signed-off-by: Yasin Lee --- Changes in v2: - Patch 1: Added Fixes tag - Patch 2: - Added Fixes tag - Changed conditional logic to positive style (val || val2) as suggested - Patch 3 (dt-bindings): - Removed redundant description. - This patch now comes before driver implementation (documentation first) - Patch 4 (driver): - Fixed variable declaration order (reverse xmas tree) - Split declaration and assignment for fw_name - Removed unnecessary error checking for device_property_read_string() - Simplified to: fw_name = "hx9023s.bin"; device_property_read_string(...); - Patch 5: Temporarily dropped (ACPI support) - Will resubmit separately once TYHX vendor ID is officially registered with UEFI Forum - Need to provide verified DSDT evidence - Link to v1: https://lore.kernel.org/r/20260209-upstream-20260219-v1-0-2b4d74e309d1@gmail.com --- Yasin Lee (4): iio: proximity: hx9023s: fix out-of-bounds access when copying firmware iio: proximity: hx9023s: Protect against division by zero in set_samp_freq dt-bindings: iio: proximity: hx9023s: support firmware-name property iio: proximity: hx9023s: support firmware-name property .../devicetree/bindings/iio/proximity/tyhx,hx9023s.yaml | 4 ++++ drivers/iio/proximity/hx9023s.c | 14 ++++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) --- base-commit: c8bfb63c902678228a0a265e22a5f55404988a43 change-id: 20260209-upstream-20260219-a7af6d9a85ad Best regards, -- Yasin Lee