Message ID | 20221122114718.17557-1-Ibrahim.Tilki@analog.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2158726wrr; Tue, 22 Nov 2022 04:04:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf4RQcZEW58vEOopMD5ThAXMetMG58ErxO4YmLNNUvTQJ97mMZCRKaSNl4tK2dwdmRadvDBQ X-Received: by 2002:a17:902:ec01:b0:188:b8cf:83f with SMTP id l1-20020a170902ec0100b00188b8cf083fmr6228797pld.134.1669118679635; Tue, 22 Nov 2022 04:04:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669118679; cv=none; d=google.com; s=arc-20160816; b=ZWP5CchvWzf/jU6rFTLj4hVZ9NedupMdmRL3Uxjwl+kUsg04Rzqr6Jxu4I4ZDu5ois 8BUYM8DiNTGcae+djK195hMmYnNS3hT2w9SfJYDmzL+RnhKaBHNI7rlFJigbC5ZLDH2n bcj/JO/gT+imyzcDE3UuOZJoaNBzniQ6IiQD5QdquQV48ZLn9vGUSLCdAtzyJ230hZsn pNcJQ//9i4oZwrzcvuFUUz7ayeWHBIKG/IP33kp2RkqTmhmtDJwa/oMFUB87kwu91FrW Bh0InrkN7e3HMpI92/N3Kf/4AC7Oy79BgbEQGnJ3cLqQcS/xrq90Fmcsp0tSjKyJocZ/ hLGQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l6-20020a170903120600b0017f7fa141f2si15944207plh.583.2022.11.22.04.04.01; Tue, 22 Nov 2022 04:04:39 -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 <rfc822;cjcooper78@gmail.com> + 99 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <Ibrahim.Tilki@analog.com> To: <jic23@kernel.org> CC: Ibrahim Tilki <Ibrahim.Tilki@analog.com>, <linux-iio@vger.kernel.org>, <linux-kernel@vger.kernel.org>, kernel test robot <lkp@intel.com>, "Julia Lawall" <julia.lawall@lip6.fr> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750197788694507552?= X-GMAIL-MSGID: =?utf-8?q?1750197788694507552?= |
Series |
iio: adc: max11410: fix incomplete vref buffer mask
|
|
Commit Message
Tilki, Ibrahim
Nov. 22, 2022, 11:47 a.m. UTC
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 <lkp@intel.com>
Reported-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Ibrahim Tilki <Ibrahim.Tilki@analog.com>
---
drivers/iio/adc/max11410.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Tue, 22 Nov 2022 14:47:18 +0300 Ibrahim Tilki <Ibrahim.Tilki@analog.com> wrote: > 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 <lkp@intel.com> > Reported-by: Julia Lawall <julia.lawall@lip6.fr> > Signed-off-by: Ibrahim Tilki <Ibrahim.Tilki@analog.com> Applied and I added a fixes tag (given I've just rebased for a broken fixes tag I'm glad you didn't as it would have been wrong anyway!) Thanks, Jonathan > --- > 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)
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)