Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp676416ybi; Wed, 19 Jun 2019 06:07:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqzpK16y2qL+gy3wIIqDIxDOKrmgkk3DHRu0HZYewWC7q+z+tvXEFrfwjT8Gqo2QyH6k0Byt X-Received: by 2002:a17:90a:b903:: with SMTP id p3mr10884585pjr.79.1560949662180; Wed, 19 Jun 2019 06:07:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560949662; cv=none; d=google.com; s=arc-20160816; b=H9F+P6kuILRRM12RuerunvBb+w/kjTvp7vnLNIg1o9mOxWnRmTl1XAqmDygjWs7hQm bM9jKireTnjmWBqSH9NOvo8qETs7LZaJ2mhGqqYU3+dqz7lvYLhpmfDcbo2sZ1gLbVa0 PCkIy/7o/ZN6LCkb7eP+A6bHoSHMYBHZRLe1hO93Bbma/G1PUm/hzySuekyi2Z4wZ2DR o6/yOBGqNuQj7gbYJ1DZvuoZ9SiIOz3vTIpcMVyfdTSJDFuZi1SbssRtF9Pvesgq5J4B EJjHSyL66DlOnNxvsWaFulQkn2UNmzuAik6PaLGpBfoqE8F8FHz3U5MXqUtF7EelbPO2 jFDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:to :from:dkim-signature; bh=iujWyaLCp1yh3WAwepteDeXAm/rq9tWRC+STHY0lkfE=; b=TkaTRlp7Hjd2KYpY4fcjdTeiRDed28XO29o18WPH2pz9Aif1hOovZV0M1wrN3oz3Di F5IDexaDJ00Bj3kgoOjpTaa4tCx5p3yUtAM6ispkcDXWK0D1ZpOGbZk8nI/fO/2yhkuV FSt8uZRs9W36CFnMcWcNS5JbqAWlX7shrbHF3giFfbKNEevBFwz7gerCT3GPsbRVU0X+ vwRwf+/uivuAlQD9G15Dw6BOQ5hag3leJ5B11Osuqu+3mFwHB7Jvw782mk2zi/VfG7JN cfEUOwgIJkPP4AM87blxYkbaSuYzXJJsia4ihD0LnruVt3lie6N7bEOpIP47PKxphyJG fTIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=hp7o3lBc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g13si3098457pgr.577.2019.06.19.06.07.07; Wed, 19 Jun 2019 06:07:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=hp7o3lBc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731674AbfFSNEZ (ORCPT + 99 others); Wed, 19 Jun 2019 09:04:25 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:17258 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727076AbfFSNEZ (ORCPT ); Wed, 19 Jun 2019 09:04:25 -0400 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x5JCuBsW030426; Wed, 19 Jun 2019 15:03:55 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : subject : date : message-id : mime-version : content-type; s=STMicroelectronics; bh=iujWyaLCp1yh3WAwepteDeXAm/rq9tWRC+STHY0lkfE=; b=hp7o3lBcKOgc5RGR6SJ+PIyrZXgOU7T3o+HX1UMkMyTpkK+ytnl+N3MRTjcFsyiJkQKO UGqugdp+C01wkx+1FrgEeSXg1q1Fj25vZcVRvMdY9gTU5K5cxlnFdUlWFyCImGjiLBPl etpHvNb6rVL9Kb+53EIFxmph9mxqF2gdFq37zySslBHvHzLdsWaJ5K8uQ4Hbk0M6ymly 4T4JAbZOc+Rk8iCwqtCFVYNJQAQcLZcoqxdrPqjB2zP2lJSrWXr5RhvL+yzKn/8Wd4tO 4HDiVf9YfYPeL+n7tOGhm1bnGDCVLqq9KXv77ykG8sBzghJ49AnFwz6aHsPG/RzvIIew aA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2t781a3yxc-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 19 Jun 2019 15:03:55 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 3B49634; Wed, 19 Jun 2019 13:03:54 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas23.st.com [10.75.90.46]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 17F142831; Wed, 19 Jun 2019 13:03:54 +0000 (GMT) Received: from SAFEX1HUBCAS21.st.com (10.75.90.45) by SAFEX1HUBCAS23.st.com (10.75.90.46) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 19 Jun 2019 15:03:54 +0200 Received: from localhost (10.201.23.16) by Webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 19 Jun 2019 15:03:53 +0200 From: Olivier Moysan To: , , , , , , , , , , , , Subject: [PATCH 0/5] iio: adc: stm32-dfsdm: fix and improve output data managementiio: adc: stm32-dfsdm: fix and improve output data management Date: Wed, 19 Jun 2019 15:03:46 +0200 Message-ID: <1560949431-22948-1-git-send-email-olivier.moysan@st.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.201.23.16] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-06-19_07:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch-set provides some fixes and improvements regarding output data format for STM32 DFSDM. - Fix output data resolution and saturation management in continuous mode - Fix data type - Apply same processing on data in continuous and triggered mode - Add fast mode support to get better resolution for output data - Add a comment about 16 bits data transfers Olivier Moysan (5): iio: adc: stm32-dfsdm: fix output resolution iio: adc: stm32-dfsdm: fix data type iio: adc: stm32-dfsdm: manage data resolution in trigger mode iio: adc: stm32-dfsdm: add fast mode support iio: adc: stm32-dfsdm: add comment for 16 bits record drivers/iio/adc/stm32-dfsdm-adc.c | 233 +++++++++++++++++++++++++++++++------- drivers/iio/adc/stm32-dfsdm.h | 24 +++- 2 files changed, 208 insertions(+), 49 deletions(-) -- 2.7.4