Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3395739ybz; Mon, 20 Apr 2020 01:46:25 -0700 (PDT) X-Google-Smtp-Source: APiQypII4vusDG3HHfLFpm9WDXRs2uKuqqmg2j8nqi86nYsOFtwrWb47TtwwPMYunArFFBY60dK8 X-Received: by 2002:aa7:c312:: with SMTP id l18mr13888194edq.161.1587372385389; Mon, 20 Apr 2020 01:46:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587372385; cv=none; d=google.com; s=arc-20160816; b=MYkMmaSU3KkUMXeAUxIRf9/Ovu6lW4whBSUVyUjkra5S9YSjuh64zaT1utHQ6lfbU0 563FQzX55a+v8FK8V4xYK9bjqqHlaYUkCOQLqPPD4xTexPXl+UklTSvMrrZbDzmMV5LI mEc0Gpe7cXUkTu+uFFJPqq9da8yDqSYWR+vf2SoCskTQwFLol4US9xVTeDFrOL9ysRzN ydvTDyb4r/s3oRxV8hCvpndr2iF6XKnKPiOyDoj1P5eG+Ty4wSFylTbeJHs2KduN91r+ 7U6navY1i8dJYxTkr746E+DEBY6luna7Z1GAZbdUCTI5hSBwLV9E1TwQ/DKFZuIST+98 +eVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=FvWDhWISpGn4NECKTMbbAGhGOgcSHURkbEnrDvJMLos=; b=oIwjfDRbZHr/agCzyXEcw+i3A0HVqtiTg9ThySvY3SWrWTaXj8iTnU7bKjLsVv6m/E mWpc64RP0OnjDy/L9GU9Yoze9pFxZaL3dcRNz14zBkV3A+AOgupkT+Yyt0hn0i8FB8d2 OVUQ2qJJlf7IBtluk+x17oL3f39wtB53Npi3Et/pQHDpoCGHqnksxi7N6KLYO7MjlXHP Y8U6ObokboSNutI+YdYQApEZz1h3d7tG5fd3lfuzHnJJyNcQTIt/ZigSInujyZNjWQne rhjDgnqPG6x35B0D7uLgayI5s6bHSRK5b75qO9cd2ad9Lc1YWy6mwk6eXb2fkFF6z9QC YyJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=avlZ9T8h; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u10si149561edl.591.2020.04.20.01.46.02; Mon, 20 Apr 2020 01: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=@gmail.com header.s=20161025 header.b=avlZ9T8h; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726294AbgDTInF (ORCPT + 99 others); Mon, 20 Apr 2020 04:43:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725773AbgDTInF (ORCPT ); Mon, 20 Apr 2020 04:43:05 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA967C061A0C; Mon, 20 Apr 2020 01:43:04 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id k13so9836614wrw.7; Mon, 20 Apr 2020 01:43:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=FvWDhWISpGn4NECKTMbbAGhGOgcSHURkbEnrDvJMLos=; b=avlZ9T8hhK+4D60c+QbITmY+PpA+oISCvv+x0+zVw0TZI2T9hRy3ezvi4EQWm5p9Yr ulRTiSrqUSlB7Vh6Wzy1treFQdHNls8hEfF2gpLAS6+MkeT5iHJbFEgZ+c2W6kbY/Wnu WgUFyYxWE7FHP635rcDZz02rSAdVkVLQTowgA1lra7/FwFiiGQNeNEa4rpXBJNPvlXVw HUco5qQzwtWYSnBmTok31veJLWFwg1J44hBagJfK4YhoQ5mbwFyMjHsu3ru2qzpyQHZW nYX2KuaZ3IHhR6qdv1GbYN73u4YUmpER8TRMhosoHsfyhmHd4zUIWOv418XrN+jExe6E ksWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=FvWDhWISpGn4NECKTMbbAGhGOgcSHURkbEnrDvJMLos=; b=tGwb/sX/bUmNLxH4OfTzZcYxYmgd1wq5YUfIYTpfQQpj81BDxwK6GOeU4rt37DgEzV VevGZcNhtHS5Pb3zZZV1amAeG+dFVp6sXMTHY3fZVva7OMV2li6pLveGb5fJq5TiUNFt CgBRifVyFb+bI0VVudVtdsRvv9K6b0umvu/GeK1r7rcO/CEpGdTyDgl1tEhqbWpys+Go 01asEaE8zQRMSKNs23Mf01ZcLvFB5I9cEZ3WAj6EJe4ug+xtddvivcLeYvLobdC3FXsT D8QusCkaNZChUr2tS+alSTnw7ZzNL09lqQgzKTeQDqmyDOtKj3dYhqTT92c+z9gxLPol 5YCw== X-Gm-Message-State: AGi0PuYrBOxCuGCLYKvrOSXFmZ1rpAqdcssWPAy6VQov0d7PBSA16Bvg 2S3D2gEb3OXv5uuWFbEG19k= X-Received: by 2002:a5d:6688:: with SMTP id l8mr18750767wru.179.1587372183564; Mon, 20 Apr 2020 01:43:03 -0700 (PDT) Received: from meru.fronius.com ([2a01:cb18:832e:5f00:c546:5ea:178b:4074]) by smtp.gmail.com with ESMTPSA id g74sm403183wme.44.2020.04.20.01.43.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Apr 2020 01:43:02 -0700 (PDT) From: Mathieu Othacehe To: jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Mathieu Othacehe Subject: [PATCH v3 0/4] iio: vcnl: Add interrupts support for VCNL4010/20. Date: Mon, 20 Apr 2020 10:42:06 +0200 Message-Id: <20200420084210.14245-1-m.othacehe@gmail.com> X-Mailer: git-send-email 2.26.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Here's a v3 that is rebased on top of recent additions to the vcnl4000 driver. Thanks, Mathieu Changes from v2: * Rebase on iio testing branch. * Remove useless test in vcnl4010_probe_trigger. Changes from v1: * Split into four different patches. * Use iio_device_claim_direct_mode to protect raw access from buffer capture. * Requesting a sampling frequency above the limit is no longer possible. * Inline read_isr and write_isr functions. * Remove IIO_LIGHT data from buffer capture. * Make sure postenable and predisable functions respect the common form. * Do not set the trigger by default. * Remove the devm_iio_triggered_buffer_setup top half. Mathieu Othacehe (4): iio: vcnl4000: Factorize data reading and writing. iio: vcnl4000: Add event support for VCNL4010/20. iio: vcnl4000: Add sampling frequency support for VCNL4010/20. iio: vcnl4000: Add buffer support for VCNL4010/20. drivers/iio/light/Kconfig | 2 + drivers/iio/light/vcnl4000.c | 890 ++++++++++++++++++++++++++++++++--- 2 files changed, 828 insertions(+), 64 deletions(-) -- 2.26.0