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 1FD76374E6D for ; Sun, 29 Mar 2026 13:18:19 +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=1774790300; cv=none; b=B0MEhWf/x3keqVeyv89YKROJJXyKUqMuDBZD2olQVts4tFKktd+YsyRVqmfg7BPT9Z+Oqywa9lOoAvm8AEbA6r0R9Kg/FaloDgOQWo3gsrA9eSqOdXv+KupfCkbEZWFFy/+289p7B5W4T3gGKdV0SFPxnP0rCRW3c+gonzW+wTc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774790300; c=relaxed/simple; bh=y2P83wKRehTdey/wXhXQhHXFV2PIJpY9vSNo4cPkzg8=; h=Subject:To:From:Date:Message-ID:MIME-Version:Content-Type; b=k8fqP3H6BUrPzExgzRzVL5rH2QoafbHhciI5Nougqv9TFl2gOVCPH6lElXgxSqvHyvNOw0gL1FztWZIEgaylaG5OxAW853tJ9FDGrp/KgxnnOm2S6Ow0zd6b4NXiCqWNnWhnzWMLgK7QSjiyjUQXxId/6oXi93Mz1lsqIso/Dgo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RdLkBT5y; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="RdLkBT5y" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5EEAAC2BCB1; Sun, 29 Mar 2026 13:18:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774790299; bh=y2P83wKRehTdey/wXhXQhHXFV2PIJpY9vSNo4cPkzg8=; h=Subject:To:From:Date:From; b=RdLkBT5yWW06i0orGMpRUy/uXPgaxgOuWglE7QmmG+X1pbpf3DW2MAqZxqTaJ7iN4 fCEde0ZSKkc12VqF5GmlWTlai3aL8qCkpnQ8XaHILiVo5wjkhawye4FUMLRGuoCD9u NYmijF6CFiSZxYz6V1v2shuubRsQ+pcnP4tTso28= Subject: patch "iio: adc: ade9000: fix wrong return type in streaming push" added to char-misc-linus To: giorgitchankvetadze1997@gmail.com,Jonathan.Cameron@huawei.com,Stable@vger.kernel.org,antoniu.miclaus@analog.com From: Date: Sun, 29 Mar 2026 14:50:09 +0200 Message-ID: <2026032909-upload-krypton-86b7@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit This is a note to let you know that I've just added the patch titled iio: adc: ade9000: fix wrong return type in streaming push to my char-misc git tree which can be found at git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git in the char-misc-linus branch. The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.) The patch will hopefully also be merged in Linus's tree for the next -rc kernel release. If you have any questions about this process, please let me know. >From 57b207e38d414a27fda9fff638a0d3e7ef16b917 Mon Sep 17 00:00:00 2001 From: Giorgi Tchankvetadze Date: Tue, 24 Feb 2026 17:23:55 +0400 Subject: iio: adc: ade9000: fix wrong return type in streaming push The else branch of ade9000_iio_push_streaming() incorrectly returns IRQ_HANDLED on regmap_write failure. This function returns int (0 on success, negative errno on failure), so IRQ_HANDLED (1) would be misinterpreted as a non-error by callers. Return ret instead, consistent with every other error path in the function. Fixes: 81de7b4619fc ("iio: adc: add ade9000 support") Signed-off-by: Giorgi Tchankvetadze Reviewed-by: Antoniu Miclaus Cc: Signed-off-by: Jonathan Cameron --- drivers/iio/adc/ade9000.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/ade9000.c b/drivers/iio/adc/ade9000.c index 945a159e5de6..1abbfdfcd554 100644 --- a/drivers/iio/adc/ade9000.c +++ b/drivers/iio/adc/ade9000.c @@ -787,7 +787,7 @@ static int ade9000_iio_push_streaming(struct iio_dev *indio_dev) ADE9000_MIDDLE_PAGE_BIT); if (ret) { dev_err_ratelimited(dev, "IRQ0 WFB write fail"); - return IRQ_HANDLED; + return ret; } ade9000_configure_scan(indio_dev, ADE9000_REG_WF_BUFF); -- 2.53.0