Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp2575039pxb; Sun, 5 Sep 2021 23:52:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3Y5qXRisaK8qtq8mDjGsR/v3aprpgA+okgjTyqfdty2YhaL+H6knz2voUX+V43165pQsj X-Received: by 2002:a17:906:e51:: with SMTP id q17mr12327105eji.76.1630911155350; Sun, 05 Sep 2021 23:52:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630911155; cv=none; d=google.com; s=arc-20160816; b=kKjwmF7xRtmOQzTj5HCZ0pPQHLAnpEvcHsrvr+RGRg7ynd6SZ/O9loTaqS7ro3mdTx 8I+hDXPQNGHCZWblUOhJEMwu/TtMB555yV+7VFvaHGnLL1cRiBIMiFNGd2SBTZzEipMV Or5NmnGz2ipYpAqu0ox8J9V1/dDGhHvCXu22TkR4VSBpe4yzbEWDSCpc6GDvk9+I8BSm Ixym13qOrtvRTOTpAc359WosFKvZqltC/IX8kGrXiZ0xiNeH2suwojy2NlCstsnoQq4U rODR4Pkti8YhJwEt2LpYkazA7GtJZoA74ixYHQklihZUTDEhTwz+yMVsayj+BAHip+M2 ifkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=9GuREYptFuha+sMo+wsO0toHph3mb3Nm8TQtzgwyhvk=; b=TZCWBr1PHlkr5KekXJB4RlFAc8lAdQjyDrnsR6NcyeBQekrzFSI993kDqr98w5Ccqd 7e50UTzBx5tCRmqRoUTr33uCDC2fcfjI4bsfmFQPvyOe6cHyKlVIHJJTyx13qh4hN0BO XmWpa/eaQob9jTdKoiOF04VbN3Jny/ccVTgyldgLWfqDp+AwQkK/x2vWgMmymzOgmGHa vFVUlVaioenEJw1W5/RezC95UffT0gS87j8fFLQGFmc3q+70q/xcIqXBvYA7JPl9AGwv A7GZWECFU3a3IyNGOxcws5BHS1hMxEPd5i62xohWvbZ0v/2iPnIQDxBhgalAYpCineH2 HvXA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w10si8180451ejv.170.2021.09.05.23.52.11; Sun, 05 Sep 2021 23:52:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S239689AbhIFGuy (ORCPT + 99 others); Mon, 6 Sep 2021 02:50:54 -0400 Received: from mx0a-00128a01.pphosted.com ([148.163.135.77]:9234 "EHLO mx0a-00128a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233156AbhIFGux (ORCPT ); Mon, 6 Sep 2021 02:50:53 -0400 Received: from pps.filterd (m0167088.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.16.1.2/8.16.0.43) with SMTP id 185Lt4FW026199; Mon, 6 Sep 2021 02:49:48 -0400 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com with ESMTP id 3aw2wh9x6f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 06 Sep 2021 02:49:46 -0400 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 1866njGV024688 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 6 Sep 2021 02:49:45 -0400 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) 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.858.5; Mon, 6 Sep 2021 02:49:44 -0400 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.858.5 via Frontend Transport; Mon, 6 Sep 2021 02:49:44 -0400 Received: from localhost.localdomain ([10.48.65.12]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 1866nhgI010164; Mon, 6 Sep 2021 02:49:43 -0400 From: To: , CC: Subject: [PATCH v2 0/3] iio: adc: Fix flags in sigma-delta drivers Date: Mon, 6 Sep 2021 09:56:27 +0300 Message-ID: <20210906065630.16325-1-alexandru.tachici@analog.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: 6bXk80JpVpc4Kf_DgzhuSPsCdKpKN7_f X-Proofpoint-GUID: 6bXk80JpVpc4Kf_DgzhuSPsCdKpKN7_f X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.391,FMLib:17.0.607.475 definitions=2021-09-06_02,2021-09-03_01,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 bulkscore=0 mlxscore=0 suspectscore=0 clxscore=1011 priorityscore=1501 impostorscore=0 spamscore=0 mlxlogscore=999 adultscore=0 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2108310000 definitions=main-2109060043 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alexandru Tachici In Sigma-Delta devices the SDO line is also used as an interrupt. Leaving IRQ on level instead of falling might trigger a sample read when the IRQ is enabled, as the SDO line is already low. Not sure if SDO line will always imediately go high in ad_sd_buffer_postenable before the IRQ is enabled. Some sigma-delta drivers use wrong irq_flags specified in the ad_sigma_delta_info struct. Add the flags corresponding to the interrupt type specified in the data-sheets of each chip. Alexandru Tachici (3): iio: adc: ad7192: Add IRQ flag iio: adc: ad7780: Fix IRQ flag iio: adc: ad7793: Fix IRQ flag Changelog: - Changed commit messages drivers/iio/adc/ad7192.c | 1 + drivers/iio/adc/ad7780.c | 2 +- drivers/iio/adc/ad7793.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) -- 2.25.1