Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1768422ybl; Thu, 30 Jan 2020 05:43:53 -0800 (PST) X-Google-Smtp-Source: APXvYqz7OzMFgGhABtWZ8bAIgYaaknHpYbef6bYKWYY0y5gcQdOGy1X7lm0ixSulBTbx/w6u7YyG X-Received: by 2002:a9d:5786:: with SMTP id q6mr3471860oth.164.1580391833024; Thu, 30 Jan 2020 05:43:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580391833; cv=none; d=google.com; s=arc-20160816; b=A6CUxGqk5ru6y1z8XWZgxWQ6KtsnEg+w5Ao2ONtzZM3MtIWbkbUsBlDUHI8Z13apej OcLywKI3qZSdlZqfKEfBoEGsk8GxNonmjkr1emVXflyx0vodFww6Ery0ZOncE6whL4wH iG91ZMGLJt6f7Kso9FeLwAn6xFgN70JXaylnD3oHOE/LO6EF6LGUeVoN50AwyBmBY9Ws kv6hiBfD8AF6mOWzlTRY5ZzpjpJ7Xe3tQJLCU54HHRePCVmzKRCq9rOrRzP0BeY5utq+ iFxXqHg1rSAm8jaRM5Y0nSvOdFsUR//L5Px+r6mtJQTwAJATJn0r64Hs+EKK7RkDqGwA ZwvA== 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=9HNFKXVtviBDJDJXbJSYu+NZsichFmiB3djVbAvri24=; b=xRAlX4dQzV4sHrqMjLIqTDhh93TqDItWEV3Gr4EHXAMOM3lJxMS/Jjeq7Xbp8fNZ41 cQ9MyFGIDdS4V96WE3TqcUm8mb02o/WTx/RLktDzk+FvYI2P1BMvRaJtY5GT1CuwOU8l 4R2q7digZLpmHGOp63fsNVaQAHlMB50nO5SEkPqysWUTvhY11BkUUN/25MoDgDR2xpV5 EaylEOmzRcUWGnBCjcXdoNzJ78pNQwKj9Fi+UwkbmaSj7zDHOIC3aZ06pglgDCymmk4C DfA6ubrAWtCURxGFIp3o8DQgQbZnCTaawCWSy3VkScOLjXhY6p7KmWEw1OUDuTLQta0z DTKg== 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 w2si2913397otq.31.2020.01.30.05.43.41; Thu, 30 Jan 2020 05:43:53 -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 S1727351AbgA3Nml (ORCPT + 99 others); Thu, 30 Jan 2020 08:42:41 -0500 Received: from honk.sigxcpu.org ([24.134.29.49]:53242 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726980AbgA3Nml (ORCPT ); Thu, 30 Jan 2020 08:42:41 -0500 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 89AFAFB05; Thu, 30 Jan 2020 14:42:38 +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 ctoDdB-c76pI; Thu, 30 Jan 2020 14:42:37 +0100 (CET) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id B0EE24091B; Thu, 30 Jan 2020 14:42:36 +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 v2 0/2] iio: vncl4000: Enable runtime pm for vcnl4200/4040 Date: Thu, 30 Jan 2020 14:42:34 +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. Patch is against next-20200130. Changes from v2 --------------- - Based on review feedback 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 | 150 ++++++++++++++++++++++++++++++----- 1 file changed, 132 insertions(+), 18 deletions(-) -- 2.23.0