Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp774890rwj; Fri, 23 Dec 2022 07:57:57 -0800 (PST) X-Google-Smtp-Source: AMrXdXsxiwWrO783pWVY6MY4BpWwVr5Qz0gISq1AbaB6aiLlxRuyAv65HcZ3JqTim3RO2NLWNcXF X-Received: by 2002:a17:90a:e392:b0:219:f9d9:c82e with SMTP id b18-20020a17090ae39200b00219f9d9c82emr11607923pjz.42.1671811077388; Fri, 23 Dec 2022 07:57:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671811077; cv=none; d=google.com; s=arc-20160816; b=0ueHwdzMwbtwrmMCY4K7lyumpVrEDkdm2N6yCHZ7npP1ORo0I6E+8llCz8Mpd5W4fx BVkNipRzpeMZo2JtQSIP5lGiqx4s+BoVTPDmam6RLZ4RJa5P6TxOs+cmYT/BxH9G9ph7 zmk5fG961SiZbh6SASMsCGQDSlWYOcc4DtWO0oskNPUjvSu0lk2pes61p8kxmnoFgH3V oBu9vUZu9/HmqwKFccuNNZxoUzncm7XFRMNIwt07Q1OZVdV2QQXcaXomGO8YCrjKJeCD T6fAz6hpIdTC45gRRlhE0nWAZMcP/euU8X1SFMuG64kwxDrSN9/Sq9XwnT0OGjKpEQE0 CmIQ== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=qGdvS7jBqaCkFciudPl88eU4HmVtb7iIHvhW7kq98Sc=; b=C4Zej80m5QftQaizEeJWBaxi1eF+DaWFYqr4wE7RRj54FdHdbWz4sMh3i4bNb4UAsz n6AevyPocsS2IplyagfmI+vSEWsMd+L9MHfzM9ARIDXp3SYWxnhSH1wiaWC6xmLl3Ixd ZeKLMDcadLeVnWtCZJDNMQnrkxOyuJc7e43BC19IA2DRGCD+fHSaI5uvKcYQDGjFzRlA 4BF5AToGQXKjBv3z8MvCK4sbEblfm9yzsPxvqmSWvZ8SAhGLh5QAAZwbweYFK2lohcSr drPGYFVXZar55jY2VDmXH01rG+ISY65WFFFr3ZomFnmmprOwLz9oVFr4cr9IGm7inErZ ccLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l1XRUTa2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lx14-20020a17090b4b0e00b0021bc843908esi8213496pjb.119.2022.12.23.07.57.49; Fri, 23 Dec 2022 07:57:57 -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=pass header.i=@kernel.org header.s=k20201202 header.b=l1XRUTa2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236466AbiLWPsz (ORCPT + 65 others); Fri, 23 Dec 2022 10:48:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236205AbiLWPsx (ORCPT ); Fri, 23 Dec 2022 10:48:53 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E490930F40; Fri, 23 Dec 2022 07:48:52 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8228461221; Fri, 23 Dec 2022 15:48:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C985FC433F0; Fri, 23 Dec 2022 15:48:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671810531; bh=uDdlMtPBoNlyiwxUajCYBTLiiIYPz+lZctiEtYYrPqo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=l1XRUTa2A3U3SY1HMy/7J7VzlLcJ7qr+pUjt4egi3potOh/1ksa65BknI7s+ISdSY KR3BvHDwUR+yEz8ow3a6MoW2a+RfIb5SimtDkjo8qZWD9WVvmmHW+5/JC3+1dkjbFK IIVCQn0mjoT9UY5UnkXHYV0677RYED/X13PXeZtM4V+J5jUd2yjFQAeHpcvuBdWHJc FXjuEg5N83GDQOXiWtipkt8fqpNLYsd1M8Lgsbn/IvBEXGQuO3AdZVsoujQ3tAyy9j OIHoixikAx7Dawbiq7r7p6V99D+JXV3Obo4e4w04hGOdKv4cH2xRbhvG82EltGBdCz VMuGxxiL6fkEA== Date: Fri, 23 Dec 2022 16:02:00 +0000 From: Jonathan Cameron To: Andreas Kemnade Cc: lars@metafoo.de, 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, kernel test robot , Julia Lawall Subject: Re: [PATCH] iio:adc:twl6030: Enable measurement of VAC Message-ID: <20221223160200.1ae6df91@jic23-huawei> In-Reply-To: <20221217221305.671117-1-andreas@kemnade.info> References: <20221217221305.671117-1-andreas@kemnade.info> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.35; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On Sat, 17 Dec 2022 23:13:05 +0100 Andreas Kemnade wrote: > 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 Applied to the fixes-togreg branch of iio.git. Thanks, Jonathan > --- > 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");