From: Guenter Roeck <guenter.roeck@ericsson.com>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] [PATCH 3/3] Print the status of fault register at
Date: Thu, 18 Nov 2010 19:09:15 +0000 [thread overview]
Message-ID: <20101118190915.GA18194@ericsson.com> (raw)
In-Reply-To: <4CE5595B.60300@RuggedCom.com>
On Thu, Nov 18, 2010 at 01:45:29PM -0500, Ira W. Snyder wrote:
[ ... ]
> >
> > A more common and chip independent solution to such scenarios would be to have a dedicated register
> > in the system to log reboot reasons. This can be anything - nvram, a chip register, or something else.
> > I don't think it is a good idea to make assumptions about reboot reasons based on the behavior
> > of one specific chip.
> >
>
> I can offer some insight on how I'd handle this, if the LTC4215 EN bit
> was the method used to detect SW reset on my board.
>
> I use the U-Boot bootloader to load Linux. I have no need to access the
> chip while the bootloader is running. It would be very easy to have the
> bootloader read the value and cache it somewhere. Some possibilities
> include the U-Boot environment, or an unused register (I use a mpc83xx
> chip, which has two of these).
>
Even then it might be simpler to just store the reset reason in one of the unused
registers and access it after the reboot. This assumes, of course, that the registers
retain their value after a reboot and have a well defined content after poweron.
Guenter
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
next prev parent reply other threads:[~2010-11-18 19:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-18 16:50 [lm-sensors] [PATCH 3/3] Print the status of fault register at Richard Retanubun
2010-11-18 17:32 ` Guenter Roeck
2010-11-18 17:45 ` Richard Retanubun
2010-11-18 18:23 ` Guenter Roeck
2010-11-18 18:45 ` Ira W. Snyder
2010-11-18 19:05 ` Ira W. Snyder
2010-11-18 19:09 ` Guenter Roeck [this message]
2010-11-18 19:17 ` Guenter Roeck
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=20101118190915.GA18194@ericsson.com \
--to=guenter.roeck@ericsson.com \
--cc=lm-sensors@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.