From patchwork Wed Oct 17 01:24:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolin Chen X-Patchwork-Id: 10644483 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4200C15E2 for ; Wed, 17 Oct 2018 01:24:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2A1212A424 for ; Wed, 17 Oct 2018 01:24:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1E6A32A432; Wed, 17 Oct 2018 01:24:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C8E642A424 for ; Wed, 17 Oct 2018 01:24:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726967AbeJQJRo (ORCPT ); Wed, 17 Oct 2018 05:17:44 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:42931 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726691AbeJQJRn (ORCPT ); Wed, 17 Oct 2018 05:17:43 -0400 Received: by mail-pg1-f196.google.com with SMTP id i4-v6so11677458pgq.9; Tue, 16 Oct 2018 18:24:33 -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; bh=NYb20OAYMJ0XFw0XOoYbYR6F+RciKt6fYmDI0LaV6Rc=; b=JcV7dyH7y4KYrKcNG8sHl/Wp9Yws4EODPmmswah0L9lyF+k0Y8i1BeABBhCxlNdNcL MDdmr+dPnVYJpORlTEwPGBtUrzHxJLHuWORRB2JADTyYtvs3oUGCjvhlgX4bunh9RXQa POJv8WTDY+CB9CkFunIQeiYzbEgEmDAqlezTkrybutdSGxHM73F+UkJC0j3gs5Vgokd3 g30TB6vME/0Ljie6BnFp5UChby7jH9IJPzKqzfQRTyVUj99ORzhg0P4mpQZjTUaiVNxa XWjWwwjsFz8ar6VGpVMEY6PZIh/+IOb3jSHEkPMeOj29GP1eXr6h97PqaB+AqiB5e0x3 bIug== 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; bh=NYb20OAYMJ0XFw0XOoYbYR6F+RciKt6fYmDI0LaV6Rc=; b=b/N3luUfFwmvzngcSvWYHS6drDG4H0BDea3954DguiImxsE0tZtduVC7qTK0Pv9Fyp ZH24QH1youuk8bHWBYMcNOBEa3JhR+bn7/Oidhk4aBdOjfkeKYqtFXNlMPod9x3AjqY5 GnvMevEn1949uLIM2kIr1FhUZPUdjJeeUuaicZIoPrfZ5AM2rOOBYWJHUfqnSnMA3hR7 OoEdHFMWdCycLgQy6EeqtHRyX/QoSd9ap0qEHVZ0kb720s3y39O1wQM+Gl8ys5MDbSNq vU4RqpqX2Ig/kAzdBJPwytixlLlGCfUhQ65lpOXQ1UjCd5ge8cg4BmLLGVnBdh7R2Ngf fZlw== X-Gm-Message-State: ABuFfog5Wb28IdbSHb2CSDcPbiLx+4a5ChBkL/IOSZdS/tw4qwE9nlxU ryxi5QfOh2U1sjFrdGv43I8= X-Google-Smtp-Source: ACcGV634KH6hweZUdsmpPPd2TUiTRQtKpuc3vOp8RI6lMx3sO7pT9io7jzlaU07yX9Xe2VdoqC2SCA== X-Received: by 2002:a62:1e83:: with SMTP id e125-v6mr24213875pfe.231.1539739473114; Tue, 16 Oct 2018 18:24:33 -0700 (PDT) Received: from Asurada-Nvidia.nvidia.com (thunderhill.nvidia.com. [216.228.112.22]) by smtp.gmail.com with ESMTPSA id n64-v6sm22841851pfi.185.2018.10.16.18.24.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Oct 2018 18:24:32 -0700 (PDT) From: Nicolin Chen To: jdelvare@suse.com, linux@roeck-us.net Cc: linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/5] hwmon: (ina3221) Implement PM runtime to save power Date: Tue, 16 Oct 2018 18:24:21 -0700 Message-Id: <20181017012426.26958-1-nicoleotsuka@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-hwmon-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This series patches implement PM runtime feature in the ina3221 hwmon driver (PATCH-5). However, PATCH-[1:4] are required to make sure that the PM runtime feature would be functional and safe. Nicolin Chen (5): hwmon: (core) Inherit power properties to hdev hwmon: (ina3221) Return -ENODATA for two alarms attributes hwmon: (ina3221) Serialize sysfs ABI accesses hwmon: (ina3221) Make sure data is ready after channel enabling hwmon: (ina3221) Add PM runtime support drivers/hwmon/hwmon.c | 3 + drivers/hwmon/ina3221.c | 185 ++++++++++++++++++++++++++++++++++------ 2 files changed, 162 insertions(+), 26 deletions(-)