Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5757097rwb; Tue, 22 Nov 2022 04:40:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf4HP/Dqad8ErIWKKAc702Z60RZUunJZQgWI3vot2/vVVzTYZ7wFgd2rauw1Z2LKsyI7xCpQ X-Received: by 2002:a17:902:f355:b0:17d:839:5a17 with SMTP id q21-20020a170902f35500b0017d08395a17mr3283227ple.62.1669120829570; Tue, 22 Nov 2022 04:40:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669120829; cv=none; d=google.com; s=arc-20160816; b=IUcqd85VaHsRZAU6mNKgzGWPMHv9QB/vqIjiCaEujQXSysgox6EqblFtfilxk1Lo3Z icoGLvoJ/5ViKTgVBOZzTir59s9jvD2jCsTKdjQ1Fa9sks/drGcQHLnORd0EsMSeF56A RrvQWc0NtA37PYhWDgQM8E970WRARs2E09nZyrDhSR4kZ/PVl4kUqvtTHHV/xInsattQ ISdSVyysTe1KyAHfhi8EbbF8Uhn/3bBpeGZVtiF3RAbxFeJwxHa7AKhXwaBGx3jJ6iCe tg3rZPdypCvm00P/WwQZE4gEKKvwx0YwHVIspQ4ThhqnIoCSvEWfMdcFhNereM+NwRs8 O7hg== 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; bh=rRAiMNoXT/olJsmKuRVktTCj1Ia3Iohf6aLMo3C+tgk=; b=o6Mz0JXY9lPyfPT/3RLCbXHvXSaw6gqzwWWW3faZHXj6HTszuidwUragv4MQo+ZFI2 zKQHBqyDh15Bl8G+x2KrJMmu2bu7sO7qxzTecNLD5KV2h35Wkn23c/vcDW1i9SwdnFlR ZlupSNte1zAYGcPGroMhjRJ4KNnA+dZtghsGFkQ59xRcrKoy7fz46Ffks0xylLmhSHF/ Gr81E6JnI3yNkCtMSURsardWeqLYmIelKSrnAZA4bTu7AhXF2E3PoGNBdzSwYFskD6XU w4Gmr51rBnh01xT99e1cW2pXLZIUDv5ul7ucqG3RSggB6E7F0nStM5M0yymbwpiec/uF 0SuA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z15-20020aa7888f000000b0050d80e4935fsi15320994pfe.256.2022.11.22.04.40.17; Tue, 22 Nov 2022 04:40:29 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232893AbiKVLsK (ORCPT + 90 others); Tue, 22 Nov 2022 06:48:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233237AbiKVLsC (ORCPT ); Tue, 22 Nov 2022 06:48:02 -0500 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EB6AA18E; Tue, 22 Nov 2022 03:47:59 -0800 (PST) Received: from pps.filterd (m0167088.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AMAo4Ln017071; Tue, 22 Nov 2022 06:47:49 -0500 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3m0q23jgu4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 22 Nov 2022 06:47:48 -0500 Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 2AMBllf1062165 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 22 Nov 2022 06:47:47 -0500 Received: from ASHBCASHYB4.ad.analog.com (10.64.17.132) by ASHBMBX8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Tue, 22 Nov 2022 06:47:47 -0500 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) by ASHBCASHYB4.ad.analog.com (10.64.17.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Tue, 22 Nov 2022 06:47:46 -0500 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server id 15.2.986.14 via Frontend Transport; Tue, 22 Nov 2022 06:47:46 -0500 Received: from IST-LT-39247.ad.analog.com (IST-LT-39247.ad.analog.com [10.25.16.21]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 2AMBlSmY000650; Tue, 22 Nov 2022 06:47:31 -0500 From: Ibrahim Tilki To: CC: Ibrahim Tilki , , , kernel test robot , "Julia Lawall" Subject: [PATCH] iio: adc: max11410: fix incomplete vref buffer mask Date: Tue, 22 Nov 2022 14:47:18 +0300 Message-ID: <20221122114718.17557-1-Ibrahim.Tilki@analog.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: U-_myB9KSHJ-YZHlOXOh2ch1FJgdSaC_ X-Proofpoint-ORIG-GUID: U-_myB9KSHJ-YZHlOXOh2ch1FJgdSaC_ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-22_06,2022-11-18_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 lowpriorityscore=0 spamscore=0 clxscore=1011 mlxscore=0 suspectscore=0 bulkscore=0 mlxlogscore=986 adultscore=0 malwarescore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211220086 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,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 VREFP bit was missing from channel configuration mask and VREFN bit was included twice instead which fails to enable positive reference buffer when requested by a channel. Channels that don't enable vrefp buffer were not affected. Reported-by: kernel test robot Reported-by: Julia Lawall Signed-off-by: Ibrahim Tilki --- drivers/iio/adc/max11410.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/max11410.c b/drivers/iio/adc/max11410.c index 8cd5663671..fdc9f03135 100644 --- a/drivers/iio/adc/max11410.c +++ b/drivers/iio/adc/max11410.c @@ -370,7 +370,7 @@ static int max11410_configure_channel(struct max11410_state *st, FIELD_PREP(MAX11410_CTRL_UNIPOLAR_BIT, cfg.bipolar ? 0 : 1); ret = regmap_update_bits(st->regmap, MAX11410_REG_CTRL, MAX11410_CTRL_REFSEL_MASK | - MAX11410_CTRL_VREFN_BUF_BIT | + MAX11410_CTRL_VREFP_BUF_BIT | MAX11410_CTRL_VREFN_BUF_BIT | MAX11410_CTRL_UNIPOLAR_BIT, regval); if (ret) -- 2.25.1