Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3570900ybl; Mon, 3 Feb 2020 02:46:43 -0800 (PST) X-Google-Smtp-Source: APXvYqz6pCwjCxhfEq6zZFcQwOI7p5ReTOo2g3GI8y4XyGyEPkV8OxA+0uGtwLgkoxqm+P96Pndf X-Received: by 2002:aca:aa05:: with SMTP id t5mr14172567oie.93.1580726803319; Mon, 03 Feb 2020 02:46:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580726803; cv=none; d=google.com; s=arc-20160816; b=bzI3I5kFaZHYZl1eqcLb66tBfBqwGMqYxatBHPbEUX1nY/+p4QZRH6ICBY42wBipUR YSd8GcmAsJ5PQ+fYfZdpAV+3CB8blWZMkK6DrIsfZCkMNAuaGqi6UAhkiOEDV/9z/1XQ E6UvNUZPVOJaQfWrU43plcebhqj8Wxt5QRA+zoHxPzXRukiON3GXoUnIlCJJEA3BZVZk kTDcyrZefVb0WX/CmrHRoOq93cnmN+RWkWqWkynYR3atYxILH/CDeCCw4PbbT3/NPpu2 g/e7GeKZ06iu7tXYaAMs93q/dNAvLOUNQnHgZs44+lpUqdpptg1XCKbj3XzP7FVOMu9t 45xg== 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:to:from; bh=VhpKm6AxqlrBuU0OQF1jiEodXUaUH5lPeVaTVNjmGsI=; b=QkZnGboX3RzciTGc5QiJUqMhbMn1aK5uUVi5EEFyq+IiAV1B5va6GD0cygQhe+X05V /a3CdwXlr6EEY58mNLetONcnaqgtgSg0gjZFh7sNwT85QeVsjMQ5d6lzAd3OOf5VauXA ZrnNi1ViGlxTSE7j2uX9xpOBscUsQJ4xbHKEzdayTU868QkqH5qXeG+6qHGy+xArQqil BowYEJq9rvoRmaV4mcI8fH2G4gg0CWv+QMznXQJPN/p+xuQqwknXn4KD7QiiP4MAYuq3 gpvPbAOT8xlTkAaEkRUAARDodw8igKZQtWcxjXajpQJactaUO2bjBZcKmxUFvEtDbOPO 93Mw== ARC-Authentication-Results: i=1; mx.google.com; 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 h11si8593870otr.197.2020.02.03.02.46.24; Mon, 03 Feb 2020 02:46:43 -0800 (PST) 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; 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 S1727929AbgBCJRM (ORCPT + 99 others); Mon, 3 Feb 2020 04:17:12 -0500 Received: from honk.sigxcpu.org ([24.134.29.49]:46366 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727864AbgBCJRJ (ORCPT ); Mon, 3 Feb 2020 04:17:09 -0500 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 93447FB03; Mon, 3 Feb 2020 10:17:07 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mVpf3Sr-6tqT; Mon, 3 Feb 2020 10:17:05 +0100 (CET) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id CD9F0400E5; Mon, 3 Feb 2020 10:17:02 +0100 (CET) From: =?UTF-8?q?Guido=20G=C3=BCnther?= To: Tomas Novotny , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , "Angus Ainslie (Purism)" , =?UTF-8?q?Guido=20G=C3=BCnther?= , Marco Felsch , Thomas Gleixner , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/2] iio: vncl4000: Enable runtime pm for vcnl4200/4040 Date: Mon, 3 Feb 2020 10:17:00 +0100 Message-Id: X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is modelled after the vcnl4035 driver. For the vcnl40{0,1,2}0 we don't do anything since they use on demand measurement. Changes from v2 --------------- - Based on review feedback from Jonathan Cameron https://lore.kernel.org/linux-iio/cover.1580391472.git.agx@sigxcpu.org/T/#m80668f77cb45cea3973b3609ebdce5bba351ed50 - Fix missing return statement - Only update timestamp on power on - simplify returns from vcnl4200_runtime_suspend - simplify return from vcnl4000_init Changes from v1 --------------- - Based on review feedback from Tomas Novotny https://lore.kernel.org/linux-iio/20200120182853.37a724fa@tomas.local.tbs-biometrics.cz/ Drop long wait in vcnl4000_runtime_resume but rather use vcnl4200_{al,ps}.last_measurement to make sure we wait long enough. Guido Günther (2): iio: vcnl4000: Use a single return when getting IIO_CHAN_INFO_RAW iio: vncl4000: Enable runtime pm for vcnl4200/4040 drivers/iio/light/vcnl4000.c | 144 ++++++++++++++++++++++++++++++----- 1 file changed, 125 insertions(+), 19 deletions(-) -- 2.23.0