Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2405317pxy; Tue, 3 Aug 2021 05:51:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJya8Kkqz9oBWQdGPafqPV3qD+7yY84PxYXWmBjql3VpJAFcRIoNYX3mM7qFUF7ycIf0ZR1h X-Received: by 2002:aa7:d691:: with SMTP id d17mr25539125edr.245.1627995105876; Tue, 03 Aug 2021 05:51:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627995105; cv=none; d=google.com; s=arc-20160816; b=NlAuesOIMDjV+dQAPzeYmK9sBzBb37xAXAurOy/AGT9hK6kbOpfQK0HOS5nwmzGbtn epL4Vj4RkLudaLXTD0SW9hBheJu+QW8Mluq461fUjitXnshjZy551qZQrrf3MjzwJG4H K1PwU2e8YXWwiRR0yq05B4bzU1BfOZvU+m9rTE+RaFc9Efhw1pIKU1MQnTAF6D7iTf4J DuoRRY/pIlC5O98O9QLjzvD/2jKGxjXEFTjMRltJrCHlw7QZC4GtYRhFApX5BLhJK/MO TWlFrJC5aAL6d2JcL1cLT2BJnA+ECsSjW67UzrrT6Mi7a/0mQX1uJ5B2t3F3v4wrpA9q WU0Q== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=GlgMnxTaVKfNfd/GR6WWz6B69WRv/PW2CcTP0AvBPFA=; b=D6QxmkrNDUSIUr/vOn6jvYslwwqzWC06tf85EnyIt6zHqflr/bIGLqHWjDwaTA45lC nXoR8IWx48WegBecGBFPC24L4MqTMwBNne+9F1tJ0K/1rQXm5+TFpiZHqjLCgxkIudge 7I9sJWmO0dgfGnS/oA0DOepGzs3EcAfBAVqzJxWhqs4fR8QZAE22WWeSV6iw35vcApfi si8/bKtLYty2/XStDQZrAPMgHfs9icLHMi3Icj/RG8WDEE+3fiQff4Nsj1UtR0vPKMgp v2Lz/9mRBeGy/wKCC86bftwSBhQxtkdkP0iqhR6B4FwTSEhXIv4H02mJAoz5zk9ZEtGT /gfA== 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=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b23si14119910edt.393.2021.08.03.05.51.21; Tue, 03 Aug 2021 05:51:45 -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=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236088AbhHCMsO (ORCPT + 99 others); Tue, 3 Aug 2021 08:48:14 -0400 Received: from frasgout.his.huawei.com ([185.176.79.56]:3571 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236174AbhHCMsI (ORCPT ); Tue, 3 Aug 2021 08:48:08 -0400 Received: from fraeml711-chm.china.huawei.com (unknown [172.18.147.207]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4GfF5Y6VPrz6GD1n; Tue, 3 Aug 2021 20:47:45 +0800 (CST) Received: from lhreml710-chm.china.huawei.com (10.201.108.61) by fraeml711-chm.china.huawei.com (10.206.15.60) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 3 Aug 2021 14:47:55 +0200 Received: from localhost (10.210.169.87) by lhreml710-chm.china.huawei.com (10.201.108.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 3 Aug 2021 13:47:55 +0100 Date: Tue, 3 Aug 2021 13:47:26 +0100 From: Jonathan Cameron To: CC: , , Subject: Re: [PATCH 0/3] iio: adc: Fix flags in sigma-delta drivers Message-ID: <20210803134726.000067f0@Huawei.com> In-Reply-To: <20210803091741.8924-1-alexandru.tachici@analog.com> References: <20210731150926.42a2da31@jic23-huawei> <20210803091741.8924-1-alexandru.tachici@analog.com> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.210.169.87] X-ClientProxiedBy: lhreml714-chm.china.huawei.com (10.201.108.65) To lhreml710-chm.china.huawei.com (10.201.108.61) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 3 Aug 2021 12:17:41 +0300 wrote: > 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. ok. That last bit sounds like a good justification. It might do the wrong thing on initial startup. Please resend with that in the patch descriptions for those you are modifying. For those where it is being introduced, we probably want to leave the interrupt type to firmware (i.e. patch 1) > > Also the datasheets seem to explicitly say the falling edge of the SDO > should be used as an interrupt. Reference? > > -Alexandru