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 A69AD36C58F for ; Tue, 7 Apr 2026 15:26:52 +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=1775575612; cv=none; b=HakNpK9jqrGBwZjp40E9Arj3BLlrcfOMH3Ve7kP8Ss7ZxAhtN/XIa3lJUlPeygHYPyTYDSvmRFrJyFM3RzeCpjdmHc2wn/jQhkITIoUpWmJLo+Mj2j9+gGfpPhGHEmOTuGktUJ6f+6GO9PIjLaUXEJa2owF+PnT8T9qal8nDFAI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775575612; c=relaxed/simple; bh=9aedZ27bXsLyFlEjI5A79Y9/IFeUqgfBbRNxgJvLUcE=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=Jr4Uc6wHNgKL2x0p/BAf3wNPHhQ+sQ0jeSl9mmuweke8dgydG1og0n03Ibo2u7ZLze7f/PdUyCBxArEPDJOm0hUIpQETNZ5DqjvxuvcWjuuOe5y0ytNue6W4OLr5AvFzw/HGuKTgn1ewLqSHvy+qAqj8wk1C2D+YYsQdxu0UAo0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=TSsGKwBO; 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="TSsGKwBO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77B42C116C6; Tue, 7 Apr 2026 15:26:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1775575610; bh=9aedZ27bXsLyFlEjI5A79Y9/IFeUqgfBbRNxgJvLUcE=; h=Subject:To:Cc:From:Date:From; b=TSsGKwBO7yNFG2icCIRecDU+2BsI4GforbvquwKfRZg5N82wVNCkM0oEupBtrBRFI f8gKykhuJUv12+lUPqiYCGEIlyl1YJOq6q0+E98AlwnR2Nn9QnYt9bvxAJ0Dwvmwsi Exhr980xMU4RUze15srOCvc0k0bncCSM7nBvTOt4= Subject: FAILED: patch "[PATCH] iio: adc: aspeed: clear reference voltage bits before" failed to apply to 6.1-stable tree To: billy_tsai@aspeedtech.com,Jonathan.Cameron@huawei.com,Stable@vger.kernel.org Cc: From: Date: Tue, 07 Apr 2026 17:23:37 +0200 Message-ID: <2026040737-spokesman-blinking-3674@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 The patch below does not apply to the 6.1-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.1.y git checkout FETCH_HEAD git cherry-pick -x 7cf2f6ed8e7a3bf481ef70b6b4a2edb8abfa5c57 # git commit -s git send-email --to '' --in-reply-to '2026040737-spokesman-blinking-3674@gregkh' --subject-prefix 'PATCH 6.1.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 7cf2f6ed8e7a3bf481ef70b6b4a2edb8abfa5c57 Mon Sep 17 00:00:00 2001 From: Billy Tsai Date: Tue, 3 Mar 2026 10:38:26 +0800 Subject: [PATCH] iio: adc: aspeed: clear reference voltage bits before configuring vref Ensures the reference voltage bits are cleared in the ADC engine control register before configuring the voltage reference. This avoids potential misconfigurations caused by residual bits. Fixes: 1b5ceb55fec2 ("iio: adc: aspeed: Support ast2600 adc.") Signed-off-by: Billy Tsai Cc: Signed-off-by: Jonathan Cameron diff --git a/drivers/iio/adc/aspeed_adc.c b/drivers/iio/adc/aspeed_adc.c index 4be44c524b4d..83a9885b9ae4 100644 --- a/drivers/iio/adc/aspeed_adc.c +++ b/drivers/iio/adc/aspeed_adc.c @@ -415,6 +415,7 @@ static int aspeed_adc_vref_config(struct iio_dev *indio_dev) } adc_engine_control_reg_val = readl(data->base + ASPEED_REG_ENGINE_CONTROL); + adc_engine_control_reg_val &= ~ASPEED_ADC_REF_VOLTAGE; ret = devm_regulator_get_enable_read_voltage(data->dev, "vref"); if (ret < 0 && ret != -ENODEV)