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=1796385862; b=dbYgsD9VabbX92vhwF1dT4LN9eo8qTaMpKwoC5qKHDN389SEMxZxh5o1d2juTvrUzC+C /9Hm8f8LdvPXlii4bj0hDSNngftvGeb9a10ObnavtRbSfRNDstDHn2VQdOkeXu3li0Gs2 EuWlWeVFVB0aMqW8DxHa41K1MoFY1U0v/EBgb3KSYkxV6KsxBK3Gqt0M0cN3KO58dQOj5 zHj5JzrwPGm+8XCs4PNEuRY67T29QbIyhQ6osqAF2TEKzi1vLeHNo6AmnSA/00A3Ok48j wQtq2w63E8z+Nh9SN1rNGWLdI/WT7f1fpvP5fCxEsPnlnnOhn8BGrGoH+snaoX5RwrQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796385862; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=VkLXn8EdUHKXZIn4CUKW0E3uSzGR4hShYwpcEXOvmEI=; b=cC1IONwYPY/t9YljUrO3ztpM7jI42kvJLXhn/MgCEf4XelAVC0cSvdlysUfplUzFdcfd gdyxt/cYSBvfGUisv8ys430rxDrpjHc6e7x9x1iOBLoi05nvu/BrRvTUa4M4sJXtBgEkl bZmm9aoKancRoJgCR3VZCLNaGTg6TG/viDdS4EY54PvBrp0KkBAMIppfwBESE99evu9D8 S0xWd2WIUMhhJBO2CgavcpZqDYHK3ykgOMVYE523ZGu1hGICSILCNoe6phDzg7kN7MHS1 BC11AKnMo0Fln4rYWVPALA8H810xBUQX4fRqNXvGRxoZyJxXb7wEUyaW1PgVDBmw7VA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=GXH61PIo; 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 29F2C606A322; Fri, 4 Dec 2026 12:04:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=GXH61PIo Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99EC21F000C2; Fri, 4 Dec 2026 12:04:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796385862; bh=VkLXn8EdUHKXZIn4CUKW0E3uSzGR4hShYwpcEXOvmEI=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=GXH61PIopDvV/U840xawqYBxgtHu5Xuo7+mht7M+tORnhZI707xEyyZ4zJFTlMl0j 7JNANVNr/9YAHKuTTbfGXenyhQEBnpvgmMqktXTdPgI0jg/zGIBbKLTXIOUfI+hF2R kKUq5Ibj1eeB9jkvpW/a+xu8Wahs+YwHgXD1ArGs= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Nikhil Gautam , Joshua Crofts , Matt Ranostay , Jonathan Cameron Subject: [PATCH 6.6 0682/1167] iio: atlas-ezo: Fix humidity channel read support Date: Fri, 4 Dec 2026 19:01:49 +0900 Message-ID: <20261204100719.827601095@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100702.047403948@linuxfoundation.org> References: <20261204100702.047403948@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Nikhil Gautam commit 0cb3fc8987038a26ac0f581bfa26b16daf6ca6a7 upstream. The atlas_ezo_read_raw() function rejects channels that are not of type IIO_CONCENTRATION, preventing the relative humidity channel from reading raw and scale values. Remove the early channel type check to allow both concentration and relative humidity channels to reach the mask-specific handling. Fixes: dc3ebfcaa51f ("iio: chemical: atlas-ezo-sensor: add humidity sensor support") Signed-off-by: Nikhil Gautam Reviewed-by: Joshua Crofts Reviewed-by: Matt Ranostay Cc: stable@vger.kernel.org Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- drivers/iio/chemical/atlas-ezo-sensor.c | 3 --- 1 file changed, 3 deletions(-) --- a/drivers/iio/chemical/atlas-ezo-sensor.c +++ b/drivers/iio/chemical/atlas-ezo-sensor.c @@ -117,9 +117,6 @@ static int atlas_ezo_read_raw(struct iio struct atlas_ezo_data *data = iio_priv(indio_dev); struct i2c_client *client = data->client; - if (chan->type != IIO_CONCENTRATION) - return -EINVAL; - switch (mask) { case IIO_CHAN_INFO_RAW: { int ret;