From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f176.google.com (mail-dy1-f176.google.com [74.125.82.176]) (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 264B036213D for ; Fri, 13 Feb 2026 15:21:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770996120; cv=none; b=dWPqJb86wA1wbZdgIzBASE7ceR7qmqUPqKgbKTse7iXc0rcFdnRMl0Ir7iXiA6o3K2ISmH7KTBYzbctQuIbCNRV6voSxbEtsJu6PvZR4vlTjwFo9Jwzq35FCSR4ejwwbREPr7RcX6N+kUZBQHsGRS3IYuNIAnII83RWpcpy5gYk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770996120; c=relaxed/simple; bh=uydvb3LqyX9bVJlykw6NIMEUAdvxhC/xs5cOSq50KTk=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=Z9LEpiI38RprUd7rMryIOD0/VAGA861bzSyfZDIMfMZ69upIPTNkqV3zZy9i+s56h/exWj8TpjDpkC0xkU3t1vvTMEraSSLDjcOFWRSg+AcN7/h//sMNXQjP71nKPAkawAz2c+rS3aF9y5MBTRtWwWUnd799aiDRXp/wnDAhutk= 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=R6tuS2og; arc=none smtp.client-ip=74.125.82.176 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="R6tuS2og" Received: by mail-dy1-f176.google.com with SMTP id 5a478bee46e88-2b867142b07so69668eec.0 for ; Fri, 13 Feb 2026 07:21:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770996118; x=1771600918; 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=FtiEbL14aQUzb7T6n5oR3XhpTAebmhHLOd3OCZt0J6g=; b=R6tuS2ogYnlRH6I8UHOEKas0TU1hUtEXZwQ7hXbPGYUmHb3mHZ2+Mfmg38FmYxAUgj SumPCJlceAMX/ymiARxcO/QXBypKEoBw+1eK/2ddju+gKpXW5dVkQADnuR3NNnLF8Iqe hRbwd6vHm+fb6FlnmnPexM7il+eR8lC1yWNmT2t818tzsyJPV5CI7xkUhAUiVY+tOjJE 8z1EcmWh4e+8sT94j9TKDQ+5K+6AFStjJwT2/kc+T9G0gHdLIBj8JJXuv48x57e/UJNr 35WSc95ezlr1Fqc84EEtGIfHcaSm8kTO04WuNoF7LQ18W8qdGfc6LY5oSZ3jGlQZgInu U0bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770996118; x=1771600918; 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=FtiEbL14aQUzb7T6n5oR3XhpTAebmhHLOd3OCZt0J6g=; b=uzKUI2OYavABXI5hAY49q5e3t9j+MNPIh3ND8owyOHDShVE2RdBa+gIODEplmQoDm2 NSTBrMGEWdyc5/vOLvhhH3bA08JuvJ39aGOOJE54ubA41XSxUZO6iUu7a6jw/uoD0Af/ +vnee38nayBdjTIe2Q1EcjI5mHzKRufslX8kkP4w6Ndewdapse08Gt/vCE90nUsultI6 jK0WPFNGoeqetr4SCDhyh8a5EFZJDYC3V5g7vmrIQBEDsH9e/oDH7IkKUFMKs/RpkUjO SzqnLpM6zf6idThWSGvuLB/ELCLVDhDRck6u8BuCG2oejvMTw2Kq5tydh7QdAIFmdgrP 2JjA== X-Forwarded-Encrypted: i=1; AJvYcCWgIS/lJNrFt4QW1u9FkIY6Ga53JRO/6EMsSDK+SrDn/BYH4/o928aXrybcGIk5jpEQhkZBzt4KLwMBSYM=@vger.kernel.org X-Gm-Message-State: AOJu0Yxfb/Bc2KlxbIJyJmVPwc/2g+n5yIbRlMpJ3BTin0TqdJy0e0hx Wq38rdPdESLryyjoOOZE5h06IY3Gkit34g+38/mJK+AxNir+/oxpJlCC X-Gm-Gg: AZuq6aKT3wb2ifE6jzw60++dMRin3/3unvdOtI+VfD6z3qqXITKaHbti9tiJ+CfTh3k 2Wq3i5za4C6lOBdosqUGm2+nvwOiTJnuYTJ31471NRwGz+CzYB6A6re3sEVdSo0+eGfm+LqGbNr u8kCoH0Sz65+8p8fS4vTgDbhC9PtBRoQC67/601r7tdolDg3CPwqtq9Sgk6nO1XFoIVnSsT9Qbz C66c+YGLrYTJnZd1zU0cLw1XodmALP81ToBLQ2yOVZfMXS1YeIxjt2zKljf1KaL3fcpmG4QVUbj aGGI1gq7Pmcl5b+ZmceEtT6BJb3g9zPav68z9lx1v5NcHqtkIYU/NdZCQjMPwiGDeqqmuu+TUdt OrkSHQ1t6QqG/uS6e6GUMYKbgKQz7R2ZX70q5N97cQtqIN2ESiga86b+32mcYgdbmo3AGNekZhW s/QBB5qK1SnWQ2G2XCAH5/cc/02/3FKN2GCBDu8PagdqNZZ0IwXJGkaoQ= X-Received: by 2002:a05:7300:324c:b0:2ba:6f02:2939 with SMTP id 5a478bee46e88-2baba0131d1mr569132eec.1.1770996118050; Fri, 13 Feb 2026 07:21:58 -0800 (PST) Received: from [127.0.1.1] ([45.32.86.188]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2ba9dcd01d1sm6755006eec.17.2026.02.13.07.21.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Feb 2026 07:21:57 -0800 (PST) From: Yasin Lee Subject: [PATCH v3 0/4] iio: proximity: hx9023s: firmware property, safety fixes Date: Fri, 13 Feb 2026 23:14:42 +0800 Message-Id: <20260213-upstream-20260219-v3-0-df9371d29f5c@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=H4sIAOI/j2kC/33Nuw7CMAyF4VdBmQlK3GuYeA/EYBq3tUQvSkoEq vrupGXpgBj/I/nzLDw5Ji/Oh1k4Cux56GMkx4OoWuwbkmxjC1CQK1BGPkc/OcJOfhdtJBZY59Z gmaEV8W50VPNrM6+32C37aXDv7UXQ6/pPC1oqCffUFiklylh9aTrkx6kaOrFqAXaChl8CbAKUd UWZVYb2wrIsH9YcFeL0AAAA 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 , Andy Shevchenko X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=2699; i=yasin.lee.x@gmail.com; h=from:subject:message-id; bh=uydvb3LqyX9bVJlykw6NIMEUAdvxhC/xs5cOSq50KTk=; b=owGbwMvMwCEYyfeRr6Zs90zG02pJDJn9jq2cPcyWZS7ipybMNvE0l/GIOKcnUqW24e73tGyn0 6tl7lzqKGVhEORgkBVTZDnz+g1rvurDPcG/XTNg5rAygQxh4OIUgIl8m8DwP6P4rMGXmexssa7e JqdyJux9nyDVMnfHp2V5lR4uhf35+owMt3y70g1SDvMENk8/Jsaz82R2N3/OV8b+RVMvvxRZ823 vHgA= 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 assignment order for __counted_by. - 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 v3: - Patch 1: Refined the commit message to accurately describe the __counted_by requirement. - Patch 2: Updated the zero-check logic to if (!val && !val2) as suggested by Andy. - Patch 3: Enhanced the commit message to explain the necessity of the firmware-name property. - Patch 4: Collected Andy's Reviewed-by tag. - Link to v2: https://lore.kernel.org/r/20260212-upstream-20260219-v2-0-2b28fce5d09e@gmail.com 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 assignment order for __counted_by 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 | 11 ++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) --- base-commit: c8bfb63c902678228a0a265e22a5f55404988a43 change-id: 20260209-upstream-20260219-a7af6d9a85ad Best regards, -- Yasin Lee