From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Ni Subject: [PATCH v3 0/2] Add power control for lm90 Date: Mon, 9 Sep 2013 18:29:10 +0800 Message-ID: <1378722552-10357-1-git-send-email-wni@nvidia.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Sender: linux-tegra-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org, linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org Cc: broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org, lm-sensors-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org, linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Wei Ni List-Id: linux-tegra@vger.kernel.org The device lm90 can be controlled by the vcc rail. Add function to power on/off the vcc. This series is v3, previous version patches are: [v2]: http://www.spinics.net/lists/arm-kernel/msg265373.html [v1]: http://www.mail-archive.com/linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org/msg12034.html Changes from v2: 1. use devm_regulator_get_optional(), as suggested by Mark. 2. remove the lm90_power_control(), enable the regulator in the probe() directly, so the codes are more clear, as suggested by Alexander and Guenter. 3. change the binding documentation, as per Stephen suggestion. 4. couple of changes, as per previous review. Changes from v1: 1. if get regulator failed, we should continue to run probe function, not return fail. 2. call regulator_put() in error handler and remove function. 3. add LM90 DT binding document. Wei Ni (2): hwmon: (lm90) Add power control Documentation: dt: hwmon: add OF document for LM90 Documentation/devicetree/bindings/hwmon/lm90.txt | 44 ++++++++++++++++++++++ drivers/hwmon/lm90.c | 25 ++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/lm90.txt -- 1.7.9.5 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Ni Date: Mon, 09 Sep 2013 10:29:10 +0000 Subject: [lm-sensors] [PATCH v3 0/2] Add power control for lm90 Message-Id: <1378722552-10357-1-git-send-email-wni@nvidia.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org, linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org Cc: broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org, lm-sensors-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org, linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Wei Ni The device lm90 can be controlled by the vcc rail. Add function to power on/off the vcc. This series is v3, previous version patches are: [v2]: http://www.spinics.net/lists/arm-kernel/msg265373.html [v1]: http://www.mail-archive.com/linux-tegra@vger.kernel.org/msg12034.html Changes from v2: 1. use devm_regulator_get_optional(), as suggested by Mark. 2. remove the lm90_power_control(), enable the regulator in the probe() directly, so the codes are more clear, as suggested by Alexander and Guenter. 3. change the binding documentation, as per Stephen suggestion. 4. couple of changes, as per previous review. Changes from v1: 1. if get regulator failed, we should continue to run probe function, not return fail. 2. call regulator_put() in error handler and remove function. 3. add LM90 DT binding document. Wei Ni (2): hwmon: (lm90) Add power control Documentation: dt: hwmon: add OF document for LM90 Documentation/devicetree/bindings/hwmon/lm90.txt | 44 ++++++++++++++++++++++ drivers/hwmon/lm90.c | 25 ++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/lm90.txt -- 1.7.9.5 _______________________________________________ lm-sensors mailing list lm-sensors@lm-sensors.org http://lists.lm-sensors.org/mailman/listinfo/lm-sensors From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752078Ab3IIK2x (ORCPT ); Mon, 9 Sep 2013 06:28:53 -0400 Received: from hqemgate16.nvidia.com ([216.228.121.65]:13155 "EHLO hqemgate16.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751663Ab3IIK2v (ORCPT ); Mon, 9 Sep 2013 06:28:51 -0400 X-PGP-Universal: processed; by hqnvupgp07.nvidia.com on Mon, 09 Sep 2013 03:28:50 -0700 From: Wei Ni To: , CC: , , , , , Wei Ni Subject: [PATCH v3 0/2] Add power control for lm90 Date: Mon, 9 Sep 2013 18:29:10 +0800 Message-ID: <1378722552-10357-1-git-send-email-wni@nvidia.com> X-Mailer: git-send-email 1.7.9.5 X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The device lm90 can be controlled by the vcc rail. Add function to power on/off the vcc. This series is v3, previous version patches are: [v2]: http://www.spinics.net/lists/arm-kernel/msg265373.html [v1]: http://www.mail-archive.com/linux-tegra@vger.kernel.org/msg12034.html Changes from v2: 1. use devm_regulator_get_optional(), as suggested by Mark. 2. remove the lm90_power_control(), enable the regulator in the probe() directly, so the codes are more clear, as suggested by Alexander and Guenter. 3. change the binding documentation, as per Stephen suggestion. 4. couple of changes, as per previous review. Changes from v1: 1. if get regulator failed, we should continue to run probe function, not return fail. 2. call regulator_put() in error handler and remove function. 3. add LM90 DT binding document. Wei Ni (2): hwmon: (lm90) Add power control Documentation: dt: hwmon: add OF document for LM90 Documentation/devicetree/bindings/hwmon/lm90.txt | 44 ++++++++++++++++++++++ drivers/hwmon/lm90.c | 25 ++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/lm90.txt -- 1.7.9.5