[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1412866242-6474-1-git-send-email-frans.klaver@xsens.com>
Date: Thu, 9 Oct 2014 16:50:40 +0200
From: Frans Klaver <frans.klaver@...ns.com>
To: Sebastian Reichel <sre@...nel.org>
CC: Frans Klaver <frans.klaver@...ns.com>,
Dmitry Eremin-Solenikov <dbaryshkov@...il.com>,
David Woodhouse <dwmw2@...radead.org>,
Grant Likely <grant.likely@...aro.org>,
Rob Herring <robh+dt@...nel.org>,
René Moll <linux@...oll.nl>,
Tjerk Hofmeijer <tjerk.hofmeijer@...ns.com>,
Guenter Roeck <linux@...ck-us.net>,
<linux-kernel@...r.kernel.org>, <linux-pm@...r.kernel.org>,
<devicetree@...r.kernel.org>
Subject: [PATCH v4 0/2] Add support for ltc2952 poweroff
This is version 4 of the series that adds support for the ltc2952 powerpath chip.
This series adds a driver for the LTC2952, an external power control chip, which
signals the OS to shut down. Additionally this driver lets the kernel power
down the board.
This driver was tested with:
- kernel version 3.15.8, 3.17
- ARM based processor (TI AM335x series)
v3..v4:
- Rename *kill to *poweroff
- Use managed resources (devm_*) where possible
- Handle irq failures on trigger gpio as if no trigger input was defined
- Drop no-op suspend/resume functions
- Check value before starting timer - it may be possible that the timer fails
to start on first pass, but starts on second pass. While this is unlikely,
it will throw off the entire system. Just check the actual gpio value to be
sure.
- Reduce, almost eliminate, use of globals (I dislike them)
- Fix some style issues
- Now also tested on v3.17
v2..v3:
- Allow absence of button input pin (and document that)
- Fix some whitespace issues
- Straighten out control flow here and there
- Get rid of gpio array. This was only used in setup/cleanup cases. It never mattered elsewhere
- Add some explanation to the commit message that introduces the driver
- Add other contributors
- Update René's e-mail; his Xsens e-mail is no longer valid
- Now also tested on v3.17-rc7
René Moll (2):
power: reset: add LTC2952 poweroff support
power: reset: document LTC2952 poweroff support
.../bindings/power/reset/ltc2952-poweroff.txt | 31 ++
drivers/power/reset/Kconfig | 10 +
drivers/power/reset/Makefile | 1 +
drivers/power/reset/ltc2952-poweroff.c | 327 +++++++++++++++++++++
4 files changed, 369 insertions(+)
create mode 100644 Documentation/devicetree/bindings/power/reset/ltc2952-poweroff.txt
create mode 100644 drivers/power/reset/ltc2952-poweroff.c
--
2.1.0
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists