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 383F43D9DAF; Wed, 8 Apr 2026 18:46:54 +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=1775674015; cv=none; b=S2fB/pJgunBtSLYSDKVuwH4SKkNFW/WDxg9vAnwKczge6GiTF0iAFG+ISNyQZK7AlB5SmIchF3ZNRuFjppUVXkEsVtLA8Ykv3CCfBwT1TuR5ldrRRWuetSlIz6YjFhSXDXuAY1mDXevjMdSI4gwKtXWjlmEnBcY7umgmC+5X4g4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775674015; c=relaxed/simple; bh=wXlXnYW5TLfe1s5J+nBCNeZr3A74r1CqQOwStTYAzVo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hpaYuLcNXpvVhVaeQlnTGvf0ZTLfvaH68PTB+CYF/o4Mxx85nh9s86QQmiPgTDfVoztGMgmnuWm8kYYG5dY+KH5Yqg9gF+BvAcxbdrKtekPPNUE/67i/mRrdiWu4TLr7B89WiYWadad+GAMV3E5H+S0sM43BmlOUwp+jdoRQ+lE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=et6jYthj; 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="et6jYthj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83C64C19421; Wed, 8 Apr 2026 18:46:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1775674014; bh=wXlXnYW5TLfe1s5J+nBCNeZr3A74r1CqQOwStTYAzVo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=et6jYthjr2V58s+xRW+JXy+FRlWQnNco79TKudFp5S0tCbcB1A3+aKZInNjdnW62t dxwDHQ+y3oKeMra2o070ZC0KQnvqvkZbpYvWBIVwQqTkRGy9vUV6ZQyHgM7mhihqnt ROAVNymRTn45pTi5xa6gdoROzOWo5asADRQBrcXQ= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Billy Tsai , Stable@vger.kernel.org, Jonathan Cameron Subject: [PATCH 6.12 148/242] iio: adc: aspeed: clear reference voltage bits before configuring vref Date: Wed, 8 Apr 2026 20:03:08 +0200 Message-ID: <20260408175932.631869535@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260408175927.064985309@linuxfoundation.org> References: <20260408175927.064985309@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Billy Tsai commit 7cf2f6ed8e7a3bf481ef70b6b4a2edb8abfa5c57 upstream. 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 Signed-off-by: Greg Kroah-Hartman --- drivers/iio/adc/aspeed_adc.c | 1 + 1 file changed, 1 insertion(+) --- 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 } 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)