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 1981D280A5A for ; Sun, 29 Mar 2026 13:19:15 +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=1774790356; cv=none; b=jeLrhZ6IlLwWyL8M+3RqMcq8RmzPFgmczJKD0iCXi0iJOcXB1+avRrR9V8iWzTb1Sh8C/PlzvR/byOphOJVoiU13JaAXrQtAY2BjLPRQg65l6HW8bTu1fErHrT3SfDoZ65EwUTuyjo1rSP5YAbfMsoaAb/1Yavgg8d1qAMEgfSw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774790356; c=relaxed/simple; bh=7z4sjbOy41GC51XYKG1HqUvBm9OpBUGuUOZkBysrP9s=; h=Subject:To:From:Date:Message-ID:MIME-Version:Content-Type; b=WPVK4Rs6rD60pmVbaugD6Xm8K/Eb+GTXEAp4RmSwrAf8e6DrbU7d9wpN4NxC2/Rv/HR4QF2gW1AGbAToRaTcy35S2Hx57GjAHopEx5rMA5NW5M1sCW6zSwZQWY55y2nLl5JcmUIHQ1haaJkwTM36V4b1l5dj5YHYPDuxS5QuVL8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zu6zzyji; 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="zu6zzyji" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3C28BC116C6; Sun, 29 Mar 2026 13:19:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774790355; bh=7z4sjbOy41GC51XYKG1HqUvBm9OpBUGuUOZkBysrP9s=; h=Subject:To:From:Date:From; b=zu6zzyjiwHwDscSg5QlQKXIoBZH9MZyUmRt+uDRZm36PqY/G++zYATLVZ0yMT1FCF f86qGqP4x1QTVOrAecpQwBRx+C2ICeHymQ4rbjIYZSa5u0Gx1BN7auVqW6oxKLs7NH 74TxwN5hvRjov4GXk3M2tbIfVW7quWgFtPe5btMI= Subject: patch "iio: adc: ti-ads1119: Reinit completion before" added to char-misc-linus To: ustc.gu@gmail.com,Jonathan.Cameron@huawei.com,Stable@vger.kernel.org,francesco.dolcini@toradex.com From: Date: Sun, 29 Mar 2026 14:50:16 +0200 Message-ID: <2026032916-laxative-florist-481d@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: ti-ads1119: Reinit completion before 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 2f168094177f8553a36046afce139001801ca917 Mon Sep 17 00:00:00 2001 From: Felix Gu Date: Tue, 3 Mar 2026 21:47:33 +0800 Subject: iio: adc: ti-ads1119: Reinit completion before wait_for_completion_timeout() The completion is not reinit before wait_for_completion_timeout(), so wait_for_completion_timeout() will return immediately after the first successful completion. Fixes: a9306887eba4 ("iio: adc: ti-ads1119: Add driver") Signed-off-by: Felix Gu Reviewed-by: Francesco Dolcini Cc: Signed-off-by: Jonathan Cameron --- drivers/iio/adc/ti-ads1119.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/iio/adc/ti-ads1119.c b/drivers/iio/adc/ti-ads1119.c index 7f771c7023b8..79be71b4de96 100644 --- a/drivers/iio/adc/ti-ads1119.c +++ b/drivers/iio/adc/ti-ads1119.c @@ -280,6 +280,9 @@ static int ads1119_single_conversion(struct ads1119_state *st, if (ret) goto pdown; + if (st->client->irq) + reinit_completion(&st->completion); + ret = i2c_smbus_write_byte(st->client, ADS1119_CMD_START_SYNC); if (ret) goto pdown; -- 2.53.0