From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.12 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796299018; b=eo1yDPwpIt5FTYhiyEAKqAvjC04+M3pBBJGGUVAxxdTjLPbXOHYSSQRoULiK+mfay+eU sMQwBhJ/jV4m1rFbDb850Dd2pIzSL5iKL6IId9CzLp/dWk2VhZ1u0fMzS4xT/6r2k/Tgi t9F3LNjh87N8SyP9p48Z2MYZ2+yKWRlJ95rpO9z+uhsHt2uEUH7r4CuunY+JLkJuJgAwM K5jaUvVMmKU8A3Elo8CoprwP/8Y6PhWV6k7AVqEcqarbASHQx6hfgktJK8JEkaS7Z38Ah wT0GbEZQiWK+42X6Hnag0khOwrOJygznDQM9PT3RNKS0ZQwZrc8JlB1m9TRe9LHe04Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796299018; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:Content-Transfer-Encoding:In-Reply-To: Organization; bh=hzPasc2rXiM9MSLBDLV3A9voHfmNxEuO6FbCi6+yYOg=; b=cRBDqrH8LnvSI18g9M3FeE8U2yZxsqhF/h3i2hCq4yMdgmVHBVsU+gaojRpPgGoLgok2 XsO2PyW8kGjwSkxKMS9/TT8/oyAwT2FaBIL+WHjgwnEVoiBFMGnJhMavrKP84lmUPEWkI Meh8dmBZcrgPZeutSkyGc0XaEkgGQ6FG1CUmZN+oP4QrQ/k1wge/vb52MSLgkSOTfPKok msSKLCocqKNZTAthYHi4yk+hCoLInFVF1gdmDCvn0TxLTXYfdWUW10/50T3iax9pePPCe EGU9wqNd3RntwTogQlTQRAyvekJuwOPz//AXYUHi/avQOEpm/GuPT9cJDRCO4StIv8w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=M7ia9oaQ; arc=none smtp.remote-ip=192.198.163.12 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7C607606A322; Thu, 3 Dec 2026 11:56:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7C607606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=M7ia9oaQ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796299018; x=1827835018; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=hzPasc2rXiM9MSLBDLV3A9voHfmNxEuO6FbCi6+yYOg=; b=M7ia9oaQLPySFTKIRvMXwabs0TUXCL7DQXK6usIG4ZUOKyA69kAhaS+f uu/TK0gywPZXYfyrBS1T8w58VI69Hr1AR5DWkARA3E3zmn1UC2mP8Bd/G reQKBTbY6DL/J/dReFaS3Lhyn/JajoIzGovK3QEMTW5Z9Cx0nTC9chunh U0p5UAlEhxAsN1OFJfRYWw6IXD5Jlj69d8YM39EJgqKlLXSpAW2n/eyRS 4sMg0RoawwRk+0gbGB/nL0VVWTBZeSactW6V9G8z3jN++G9ExGK7+XFex BGe6lJEOaHbBA7z5voypNxcX6at9KuXZdBDYBh/P10AzSrLHMzi0zoSvy w==; X-CSE-ConnectionGUID: lPjXqb2UTGu1Gdw1YSAnOQ== X-CSE-MsgGUID: +H71n+jzQNWaUlxp7L/1rg== X-IronPort-AV: E=McAfee;i="6800,10657,11984"; a="5158142" X-IronPort-AV: E=Sophos;i="6.27,248,1787036400"; d="scan'208";a="5158142" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 03:54:42 -0800 X-CSE-ConnectionGUID: qUHK/4YoQRK3eiJlAxGFdw== X-CSE-MsgGUID: NFnTOQ/LREuKJz4f97gH+Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,248,1787036400"; d="scan'208";a="13928375" Received: from inaky-mobl1.amr.corp.intel.com (HELO localhost) ([10.245.244.115]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 03:54:39 -0800 Date: Thu, 3 Dec 2026 13:54:36 +0200 From: Andy Shevchenko To: Nuno =?iso-8859-1?Q?S=E1?= Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux@analog.com, Michael Hennerich , Jonathan Cameron , David Lechner , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Arnd Bergmann , stable@vger.kernel.org, Joshua Crofts Subject: Re: [PATCH v2 01/11] iio: adc: ad7887: fix on-chip reference enable logic Message-ID: References: <20261202-iio-adi-legacy-platdata-v2-0-0fd64abe73f4@analog.com> <20261202-iio-adi-legacy-platdata-v2-1-0fd64abe73f4@analog.com> X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20261202-iio-adi-legacy-platdata-v2-1-0fd64abe73f4@analog.com> Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo On Wed, Dec 02, 2026 at 05:05:33PM +0000, Nuno Sá wrote: > The REF bit in the control register disables the on-chip 2.5 V > reference when set. Before commit 5483b8d5015b ("iio: adc: ad7887: > invert/rework external ref logic"), the driver set it when an external > reference was used. That commit replaced the use_onchip_ref platform > data flag with the presence of the vref regulator, but kept the > condition as is. As a result, the bit is now set when there is no > external reference, so the on-chip reference gets disabled exactly > when the driver relies on it, and is left enabled when an external > reference is supplied. > > Only disable the on-chip reference when a vref regulator is present. Reviewed-by: Andy Shevchenko -- With Best Regards, Andy Shevchenko