Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5023756rwb; Sun, 4 Dec 2022 12:48:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf4sHMfTTfBORbVH8j3EsNE6NR/hgdFzq8gpuwfR1kyY74K/q5G09/VWDvR6MPLcMsLagDT5 X-Received: by 2002:a63:db0a:0:b0:459:35b1:1396 with SMTP id e10-20020a63db0a000000b0045935b11396mr56896245pgg.593.1670186899176; Sun, 04 Dec 2022 12:48:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670186899; cv=none; d=google.com; s=arc-20160816; b=P9Q7PuBCTC53a2XaylCbUiAhs7k5pZRfjDaCO2iq+icJhFf2VR9KDtDRYJcAQCKKe9 LT90mB9D/ei9KFViGsoetfVLfRxA9vydUP1Nz0cj0mWzYOFS2112uhkc3VrT6UQIcqYL HuPAnnEPeQAn1b3Kw04HoQL+qk3i8JTl8mUecesW2mJvMYO1sXjlEzJb2G5J70mXtc2R HuWz0bPrnnFlpVKFRd3s2bzthBkzTweSV568bgQRGKHhGcBkGi5RLsdjTMEhl8xGBuc/ LcU1MeFQFyNvTucGHu9z0SucxeQFnzO9bhoXutrPrqO7WdMpprBnwo8yQ3/b9aUy0fZs BXAw== 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=TyfDaMtztYYPDEYsKXqy11jDzU7U54F8h/OzVMIpyZE=; b=DjyAGjubhQr7JhrWG90y9M7GNW/QlCtMc5x53IXji6j0ES8I7SETp5LstZEwohkagF 43jCIDjbwY3R1J8XttEVGqLnpoawjgJe70L7A2P1VszzKgIRKWHSN8E/MPdiW+qyAwLG FmWDeVFfbH0jVpvMjtXX33rEMpBLhWZBEDlAPjIx1kWM6FFSbnuhbvAoXQazsHKhBNbl lv8ryvT5sLe2nQKIMMRI7wGBxdr7DlmKeYbjjV4KVCtBy5Z4KVQd9BlTZzhC9hXNXq9O 4WhPbxLvBnij+2mL8R5G00RbpIxf99dzNlF1YIdSiXLAGw96vEyTROOylI042YPKU8Az QUmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20220719 header.b=7eoC48YI; 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 w63-20020a638242000000b00478b9ebd687si1460407pgd.836.2022.12.04.12.48.08; Sun, 04 Dec 2022 12:48:19 -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=7eoC48YI; 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 S230343AbiLDU2R (ORCPT + 82 others); Sun, 4 Dec 2022 15:28:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230246AbiLDU2L (ORCPT ); Sun, 4 Dec 2022 15:28:11 -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 147039FF2; Sun, 4 Dec 2022 12:28:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20220719; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=TyfDaMtztYYPDEYsKXqy11jDzU7U54F8h/OzVMIpyZE=; b=7eoC48YIZb45uRCaZy7TQ5X/cJ VMllGdkx3FCzCmYNQtNAQ//E9FpeArRJS1XnH9dHUWgcRMU3kdMfGBUJ/5VaygVaolS3olie8G2+v 95RrobXhrThMgAYcucx8bMi/Jc907r6Wv1rA82rzmRQIa/mZoMBtqjpuJnxq9+VKEs/ANX77gIhfd GE4taFDPbV0Oq4tBW+y7/YKz5nQ9PTKcwwwT30Nm8DKjSEhEUH7X62by8DNAvIb2zxpbAsDJyubJX YoAbxHLACQecZKmTtZvM9uq4beZE9p5HIzaOTodi/ZTTiXGXij36b7yhp3IJm6yA7Kei9ZAX/3/GS yE9k7cFw==; Received: from p200300ccff4496001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:ff44:9600: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 1p1vaa-0007YB-JF; Sun, 04 Dec 2022 21:27:52 +0100 Date: Sun, 4 Dec 2022 21:27:51 +0100 From: Andreas Kemnade To: Jonathan Cameron Cc: lars@metafoo.de, jiasheng@iscas.ac.cn, paul@crapouillou.net, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Tony Lindgren Subject: Re: [PATCH] iio:adc:twl6030: Enable measurements of VUSB, VBAT and others Message-ID: <20221204212751.2de52084@aktux> In-Reply-To: <20221204154152.5f7948b9@jic23-huawei> References: <20221201181635.3522962-1-andreas@kemnade.info> <20221204154152.5f7948b9@jic23-huawei> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Sun, 4 Dec 2022 15:41:52 +0000 Jonathan Cameron wrote: > On Thu, 1 Dec 2022 19:16:35 +0100 > Andreas Kemnade wrote: > > > Some inputs need to be wired up to produce proper measurements, > > without this change only near zero values are reported. > > > > Signed-off-by: Andreas Kemnade > > Sounds like a fix to me. If so, Fixes tag? seems to be there since the beginning, to it would be Fixes: 1696f36482e70 ("iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver") I think it was just not used with the charger (which is not in mainline yet), so it was probably ignored. > > Anything in here we should be turning off again if the driver is removed > or toggling on suspend? If not, other than the space below this looks fine to me. > I would consider that as configuration, comparing with the nearest relative twl4030, there a similar bit is set in the probe() without disabling it in the remove(). But I think we should set TWL6030_GPADCR in remove() as we do in suspend(), but that is another fix. Regards, Andreas