Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp345486pxv; Thu, 15 Jul 2021 05:46:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSvQ+o8ewNcSt7I+Tiqe921h4fHWxoa6TBgcNErXD2zQY2t5dbIw44cNcAPSofqdwsyU6g X-Received: by 2002:a6b:d00b:: with SMTP id x11mr3044961ioa.167.1626353185631; Thu, 15 Jul 2021 05:46:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626353185; cv=none; d=google.com; s=arc-20160816; b=IaGPgC9NjffI5po74RkPJCbW7BFwZLmCGUXScOtZ4EtJC7bPkT+8OdBiYB7ribvLxh u/5rUz19+T6v2BD32zyf3qBMGBomo6IYORx28fOCbRY7I6Kw9ACBS8ShRicBxKxSQU58 8HCSuu0mOUGPi0CP6EgRZDDtAgnbdM/DLoIM5fVNESqkWqU3eD0qu2yJWGal/sCw2m6b Zw8oi4wH9UMtaharP72tfGCpWMf7lkfRWdpfUlfJ/ADpv6cuVlgVGA/8SuzGR0d9wqLx f82s/Ffn736mn5IGn4KfFusjLYVhmJVSZiEzDfXPR1089IK+lKtv00z6u+Lll3ydhVMl L3gw== 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:dkim-signature; bh=rgmLOZfYWge0B3HfwWjIQqf3BRehe7KAsDV17EDAS0M=; b=Rjn9QUtOa3uFIrJzlbT30ZUJdG2r5d/v08UahUFfwUK1URW+8SCANr9WwZsHgma5Rl WpEyiGqD9HDvr9LBGztn3coFMsy+0tRuT+J8uFpH6Q3e+yeBlY+XhFeFd6E4T28WXCRI P3h5X/mwn9tzopRw5hVH3BK5BvU6QOZmk1E1NPd9fcNeVa2PKrail62EAbQMcjAhA+lw Rcssn7H/xfawT2yTD3ktufjqn7+hyVj3xcRgLGhmf0TFBzHFcvH6YA6zHW3RQJ6NCEr4 UYguuMIy1nP2tHSJ6g1tIskAHHvfhLHrx90YWI7GpPuTXSIU2W6hGHiDXgatLhK6etqV KXCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yadro.com header.s=mta-01 header.b=GiItvrTw; 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=pass (p=NONE sp=NONE dis=NONE) header.from=yadro.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d21si6363801jam.9.2021.07.15.05.46.10; Thu, 15 Jul 2021 05:46:25 -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; dkim=pass header.i=@yadro.com header.s=mta-01 header.b=GiItvrTw; 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=pass (p=NONE sp=NONE dis=NONE) header.from=yadro.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231539AbhGOMkr (ORCPT + 99 others); Thu, 15 Jul 2021 08:40:47 -0400 Received: from mta-02.yadro.com ([89.207.88.252]:58718 "EHLO mta-01.yadro.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229635AbhGOMkq (ORCPT ); Thu, 15 Jul 2021 08:40:46 -0400 Received: from localhost (unknown [127.0.0.1]) by mta-01.yadro.com (Postfix) with ESMTP id 519DD467A9; Thu, 15 Jul 2021 12:37:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yadro.com; h= content-type:content-type:content-transfer-encoding:mime-version :x-mailer:message-id:date:date:subject:subject:from:from :received:received:received; s=mta-01; t=1626352671; x= 1628167072; bh=W1Hm4aHneE27psg+Tpvs/oT0B3tKmnEcpqmN8R+kTVM=; b=G iItvrTwH1fk2yjAMwnifHZz0EEHk2UbrjyTepqSpiSZTOsLDuEzzuh8AQjFrqZqy YENY7DQt0qk7VUjDicbpTysJQNJ0YElIleYhlP+yUcunCUrEftEcRnaTKi4eG7xe m3uXE9XqjMoNuwAcLbXP3sViX7Br4qmQDONo9klFNQ= X-Virus-Scanned: amavisd-new at yadro.com Received: from mta-01.yadro.com ([127.0.0.1]) by localhost (mta-01.yadro.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aGjoDyGZpCjj; Thu, 15 Jul 2021 15:37:51 +0300 (MSK) Received: from T-EXCH-03.corp.yadro.com (t-exch-03.corp.yadro.com [172.17.100.103]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mta-01.yadro.com (Postfix) with ESMTPS id 8A4F941268; Thu, 15 Jul 2021 15:37:50 +0300 (MSK) Received: from fedora.bbmc.yadro.com (10.199.1.7) by T-EXCH-03.corp.yadro.com (172.17.100.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.32; Thu, 15 Jul 2021 15:37:50 +0300 From: Ivan Mikhaylov To: Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler CC: Ivan Mikhaylov , , Subject: [PATCH v4 0/1] iio: vcnl3020: add periodic mode, threshold options Date: Thu, 15 Jul 2021 15:47:27 +0300 Message-ID: <20210715124728.838455-1-i.mikhaylov@yadro.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.199.1.7] X-ClientProxiedBy: T-EXCH-01.corp.yadro.com (172.17.10.101) To T-EXCH-03.corp.yadro.com (172.17.100.103) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add periodic mode enablement, high/low threshold options. Changes from v1: 1. Remove changes for hwmon driver and changes affecting vcnl3020 data structure. 2. Add enable/disable periodic mode functions. Changes from v2: 1. Minor fixes from Jonathan's comments. Changes from v3: 1. add DMA safe buffer in vcnl3020_data and use it on bulk_read/write calls 2. put vcnl3020_is_in_periodic_mode in vcnl3020_measure_proximity and vcnl3020_write_proxy_samp_freq 3. add mutex instead of iio_claim in vcnl3020_write_proxy_samp_freq 4. out_mutex -> err_unlock Ivan Mikhaylov (1): iio: proximity: vcnl3020: add periodic mode drivers/iio/proximity/vcnl3020.c | 328 +++++++++++++++++++++++++++++-- 1 file changed, 313 insertions(+), 15 deletions(-) -- 2.31.1