Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp676133rwj; Sat, 17 Dec 2022 15:32:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf7tQKTsi/IKM/Jpgn8FvlzdCBtoX+VTY+PII5G5Nky1sJaJdqvs+Fx5D2GgbYjPrPmUzIYA X-Received: by 2002:a17:906:4315:b0:7c0:bc68:757e with SMTP id j21-20020a170906431500b007c0bc68757emr31798259ejm.39.1671319964066; Sat, 17 Dec 2022 15:32:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671319964; cv=none; d=google.com; s=arc-20160816; b=Xju2wpN6e/X6sP5rUXoRoW+ln5WDCWh9vLQxgdeJhAhC7wYMWXwHp+Md24Gt4Mn1My g2bh7BdsAFJKI1nP3GRtNcPMcup5d/U0q5/ghjQqm8BmX+JCr/djIqUSuN05l6HVAyOm NqHI4cWMNPGI2U4V/Sw1iEatJ/0hh3gEsOv6djhTgziWwXLkUblCuxbYI/O+ueMgY4h5 PaBAPTKONZew0UCW56YKeQo23459SMKZ4eY7t5SKUaAKTuYFaFVNkYo7fXhDg4zFXynr JPKmiDIP+SiRVfnHRkFzCQ29iJw/KqNw/1P6c5xjMq3CVJxViBoBOKDdU8VOlRUH+VKD 4CXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=VXdDjaKjNgqzgz5N9G89jtZt4Zpl7V9U1dIBQVr4Qfs=; b=istO8NOCzrQSB53qeJzoe4OKvs85L6feZCuBeDTnqIzee4iRiHBWZCgS1iVlushRi8 kP1gzr0TZh9PCNAxoAMM1CS0Eww57hO6RybodYhgtYOEUpbfndxA0H5GnJin+9nkyYqA CJk0LolbkwfPogj9gcx7GBZsmXH9ilPFafEU4N4x1CnOVxnDSM15koRd78BUqrfmCS7T TlKjpUQWKvJQY6wwGovCvs7/h0vBNGbKwKtdc33gDgA34q5HToEaYMKrY5uL+EAsCiDT MucDeo7o18QdzpfXYmq99PmPbH9BFyrUTHJAD75ioaNExE455uQllqP4BNRKk+XzPqgU F0yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20220719 header.b=Fz6ggJX6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id vj13-20020a170907d48d00b007c1247d65a8si5344459ejc.687.2022.12.17.15.32.23; Sat, 17 Dec 2022 15:32:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@kemnade.info header.s=20220719 header.b=Fz6ggJX6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229667AbiLQWNn (ORCPT + 70 others); Sat, 17 Dec 2022 17:13:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229587AbiLQWNl (ORCPT ); Sat, 17 Dec 2022 17:13:41 -0500 Received: from mail.andi.de1.cc (mail.andi.de1.cc [IPv6:2a01:238:4321:8900:456f:ecd6:43e:202c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1707DF5BF; Sat, 17 Dec 2022 14:13:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20220719; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=VXdDjaKjNgqzgz5N9G89jtZt4Zpl7V9U1dIBQVr4Qfs=; b=Fz6ggJX6gJBiW/Dws/3FR1gu5N Ne7LxDyxOEsqcniNGPvLW2TJHn9JiX821s6vX2vBr12EuMUBHJzm4SW93LvmWeFPm7KyHZgCOg4+b yDbs0H2b/fEOarQkKWtJffpGhl3Z7SuN1Uu/SWtSp4f2oZlMxJaX5hT8gHEPJAo9nmAu1HIeieraK wnF9pu/ss6koQxUnEEL7Izc468bP2N7z94A8ApcNa4zaJEw8cE6VToUjLeoc5GymO9BfJUuXF5SmC VO9RUyoXjqVozyW6jMVXocysf0Cfg/1Yrzq8b9ZcLHY1ezqTN7RrMGA/mu8t7MPj1DlSdUFL2JJKZ 9O08/5GA==; Received: from p200300ccff28b2001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:ff28:b200:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1p6fQk-0001Pw-6c; Sat, 17 Dec 2022 23:13:18 +0100 Received: from andi by aktux with local (Exim 4.94.2) (envelope-from ) id 1p6fQj-002obI-Ec; Sat, 17 Dec 2022 23:13:17 +0100 From: Andreas Kemnade To: jic23@kernel.org, lars@metafoo.de, andreas@kemnade.info, paul@crapouillou.net, jiasheng@iscas.ac.cn, oleksandr.kozaruk@ti.com, gg@slimlogic.co.uk, balajitk@ti.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: kernel test robot , Julia Lawall Subject: [PATCH] iio:adc:twl6030: Enable measurement of VAC Date: Sat, 17 Dec 2022 23:13:05 +0100 Message-Id: <20221217221305.671117-1-andreas@kemnade.info> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.0 (-) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VAC needs to be wired up to produce proper measurements, without this change only near zero values are reported. Reported-by: kernel test robot Reported-by: Julia Lawall Fixes: 1696f36482e7 ("iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver") Signed-off-by: Andreas Kemnade --- drivers/iio/adc/twl6030-gpadc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/twl6030-gpadc.c b/drivers/iio/adc/twl6030-gpadc.c index 40438e5b4970..32873fb5f367 100644 --- a/drivers/iio/adc/twl6030-gpadc.c +++ b/drivers/iio/adc/twl6030-gpadc.c @@ -952,7 +952,7 @@ static int twl6030_gpadc_probe(struct platform_device *pdev) } ret = twl_i2c_write_u8(TWL6030_MODULE_ID0, - VBAT_MEAS | BB_MEAS | BB_MEAS, + VBAT_MEAS | BB_MEAS | VAC_MEAS, TWL6030_MISC1); if (ret < 0) { dev_err(dev, "failed to wire up inputs\n"); -- 2.30.2