From: Detlev Zundel <dzu@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] inka4x0: Add hardware diagnosis functions for inka4x0
Date: Wed, 25 Mar 2009 10:13:22 +0100 [thread overview]
Message-ID: <m27i2ermml.fsf@ohwell.denx.de> (raw)
In-Reply-To: <49C96E93.1040101@denx.de> (Anatolij Gustschin's message of "Wed, 25 Mar 2009 00:36:51 +0100")
Hi Anatolij,
> Hi Detlev,
>
> Detlev Zundel wrote:
>> This patch adds advanced diagnosis functions for the inka4x0 board.
>>
>> Signed-off-by: Andreas Pfefferle <ap@denx.de>
>> Signed-off-by: Detlev Zundel <ap@denx.de>
>
> Something went wrong here, duplicated e-mail address from
> Andreas in your SoB. Also please see some style comments below.
Yes indeed, something went wrong here ;) Thanks for catching this.
Actually I *knew* there was a problem because the automatically
generated coverletter had Andreas the originator of one of the patches
which I believed was markes as mine. I simply didn't see it. Thanks
for catching this!
>> diff --git a/board/inka4x0/inkadiag.c b/board/inka4x0/inkadiag.c
>> new file mode 100644
>> index 0000000..bdbf652
>> --- /dev/null
>> +++ b/board/inka4x0/inkadiag.c
> ...
>> +
>> +static void inka_digio_set_output(unsigned int state, int which)
>> +{
>> + if (which == 0) {
>> + /* other */
>> + CHECK_LED(0);
>> + CHECK_LED(1);
>> + CHECK_LED(2);
>> + CHECK_LED(3);
>> + CHECK_LED(4);
>> + CHECK_LED(5);
>> + } else {
>> + struct mpc5xxx_gpio *gpio = (struct mpc5xxx_gpio *)MPC5XXX_GPIO;
>> + if (which == 1) {
>
> maybe we should add blank line before 'if' statement here?
To be honest - I don't care. Fixed.
> ...
>> +static void ser_putc(volatile struct mpc5xxx_psc *psc, const char c)
>> +{
>> + /* Wait 1 second for last character to go. */
>> + int i = 0;
>> + while (!(psc->psc_status & PSC_SR_TXEMP) && (i++ < 1000000/10))
>
> add blank line before while().
As you wish.
> ...
>> +static int ser_getc(volatile struct mpc5xxx_psc *psc)
>> +{
>> + /* Wait for a character to arrive. */
>> + int i = 0;
>> + while (!(psc->psc_status & PSC_SR_RXRDY) && (i++ < 1000000/10))
>> + udelay(10);
>
> add blank line before while().
Sure we do.
> ...
>> +U_BOOT_CMD(inkadiag, 6, 1, do_inkadiag,
>> + "inkadiag - inka diagnosis\n",
>> + "[inkadiag what ...]\n"
>> + " - perform a diagnosis on inka hardware\n"
>> + "'inkadiag' performs hardware tests.\n\n");
>> +
>> +/* Relocate the command table functino pointers when running in RAM */
>
> Typo, s/functino/function/
Ah, thanks!
>> +int inkadiag_init_r (void) {
>> + cmd_tbl_t *cmdtp;
>> +
>> + for (cmdtp = &cmd_inkadiag_sub[0]; cmdtp !=
>> + &cmd_inkadiag_sub[ARRAY_SIZE(cmd_inkadiag_sub)]; cmdtp++) {
>> + ulong addr;
>> + addr = (ulong) (cmdtp->cmd) + gd->reloc_off;
>
> add blank line after declaration.
Fixed.
Thanks for taking the time to look over it!
Cheers
Detlev
--
If you currently have a 32-bit UNIX system, you are advised to
trade it in for a 64-bit one sometime before the year 2106.
-- Andrew S. Tanenbaum: Modern Operating Systems, 2nd Edition
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
next prev parent reply other threads:[~2009-03-25 9:13 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-24 17:02 [U-Boot] [PATCH v1 0/7] Update for inka4x0 plus some new features Detlev Zundel
2009-03-24 17:02 ` [U-Boot] [PATCH] command.c: Expose the core of do_help as _do_help to the rest of u-boot Detlev Zundel
2009-03-24 17:02 ` [U-Boot] [PATCH] mpc5xxx: Add structure definition for several more register blocks Detlev Zundel
2009-03-24 17:02 ` [U-Boot] [PATCH] drivers/twserial: Add protocol driver for "three wire serial" interface Detlev Zundel
2009-03-24 17:02 ` [U-Boot] [PATCH] rtc: add support for 4543 RTC (manufactured by e.g. EPSON) Detlev Zundel
2009-03-24 17:02 ` [U-Boot] [PATCH] inka4x0: Add hardware diagnosis functions for inka4x0 Detlev Zundel
2009-03-24 17:02 ` [U-Boot] [PATCH] inka4x0: Add hardware diagnosis and RTC in configuration Detlev Zundel
2009-03-24 17:02 ` [U-Boot] [PATCH] inka4x0: Use proper accessor macros for memory mapped registers Detlev Zundel
2009-03-24 22:56 ` [U-Boot] [PATCH] inka4x0: Add hardware diagnosis and RTC in configuration Wolfgang Denk
2009-03-25 9:16 ` Detlev Zundel
2009-03-25 9:41 ` Wolfgang Denk
2009-03-25 15:18 ` Detlev Zundel
2009-03-24 23:47 ` Anatolij Gustschin
2009-03-24 17:53 ` [U-Boot] [PATCH] inka4x0: Add hardware diagnosis functions for inka4x0 Heiko Schocher
2009-03-24 22:38 ` Wolfgang Denk
2009-03-25 9:40 ` Detlev Zundel
2009-03-25 9:40 ` Detlev Zundel
2009-03-25 12:16 ` Heiko Schocher
2009-03-24 22:50 ` Wolfgang Denk
2009-03-24 23:08 ` Scott Wood
2009-03-25 15:07 ` Detlev Zundel
2009-03-25 19:07 ` Wolfgang Denk
2009-03-24 23:36 ` Anatolij Gustschin
2009-03-25 9:13 ` Detlev Zundel [this message]
2009-03-24 22:54 ` [U-Boot] [PATCH] drivers/twserial: Add protocol driver for "three wire serial" interface Wolfgang Denk
2009-03-25 15:49 ` Detlev Zundel
2009-03-27 20:04 ` [U-Boot] [PATCH] mpc5xxx: Add structure definition for several more register blocks Wolfgang Denk
2009-03-24 22:36 ` [U-Boot] [PATCH v1 0/7] Update for inka4x0 plus some new features Wolfgang Denk
2009-03-25 15:12 ` Detlev Zundel
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=m27i2ermml.fsf@ohwell.denx.de \
--to=dzu@denx.de \
--cc=u-boot@lists.denx.de \
/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