From: Anton Vorontsov <avorontsov@ru.mvista.com>
To: Kumar Gala <galak@kernel.crashing.org>
Cc: Jean Delvare <khali@linux-fr.org>,
i2c@lm-sensors.org, Ben Dooks <ben-linux@fluff.org>,
linuxppc-dev@ozlabs.org
Subject: Re: [PATCH 2/2] i2c: MPC8349E-mITX Power Management and GPIO expander driver
Date: Fri, 10 Oct 2008 18:45:45 +0400 [thread overview]
Message-ID: <20081010144545.GA956@oksana.dev.rtsoft.ru> (raw)
In-Reply-To: <683C10AE-E5F2-4196-B2C7-1E1CC317EC24@kernel.crashing.org>
On Fri, Oct 10, 2008 at 09:22:02AM -0500, Kumar Gala wrote:
>
> On Sep 23, 2008, at 9:13 AM, Anton Vorontsov wrote:
>
>> On MPC8349E-mITX, MPC8315E-RDB and MPC837x-RDB boards there is a
>> Freescale MC9S08QG8 (MCU) chip with the custom firmware
>> pre-programmed. The chip is used to power-off the board by the
>> software, and to control some GPIO pins.
>>
>> Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
>> ---
>> drivers/i2c/chips/Kconfig | 11 ++
>> drivers/i2c/chips/Makefile | 1 +
>> drivers/i2c/chips/mcu_mpc8349emitx.c | 209 +++++++++++++++++++++++++
>> +++++++++
>> 3 files changed, 221 insertions(+), 0 deletions(-)
>> create mode 100644 drivers/i2c/chips/mcu_mpc8349emitx.c
>
> is the plan to connect ppc_md.machine_shutdown() with this?
You mean poweroff? It's already connected.
+ /* XXX: this is potentially racy, but there is no lock for ppc_md */
+ if (!ppc_md.power_off) {
+ glob_mcu = mcu;
+ ppc_md.power_off = mcu_power_off;
+ dev_info(&client->dev, "will provide power-off service\n");
+ }
--
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2
next prev parent reply other threads:[~2008-10-10 14:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-23 14:13 [PATCH 2/2] i2c: MPC8349E-mITX Power Management and GPIO expander driver Anton Vorontsov
2008-10-10 14:22 ` Kumar Gala
2008-10-10 14:45 ` Anton Vorontsov [this message]
2008-10-10 14:58 ` Kumar Gala
2008-10-10 15:16 ` Anton Vorontsov
2008-10-10 18:46 ` Kumar Gala
-- strict thread matches above, loose matches on Subject: below --
2008-09-19 18:03 Anton Vorontsov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081010144545.GA956@oksana.dev.rtsoft.ru \
--to=avorontsov@ru.mvista.com \
--cc=ben-linux@fluff.org \
--cc=galak@kernel.crashing.org \
--cc=i2c@lm-sensors.org \
--cc=khali@linux-fr.org \
--cc=linuxppc-dev@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).