From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: dpervushin@ru.mvista.com
Cc: ralf@linux-mips.org, linux-mips@linux-mips.org
Subject: Re: [PATCH] NEC EMMA2RH support, revisited
Date: Thu, 24 Aug 2006 22:36:56 +0400 [thread overview]
Message-ID: <44EDF1C8.4020507@ru.mvista.com> (raw)
In-Reply-To: <1148208787.6884.9.camel@diimka-laptop>
Hello.
dmitry pervushin wrote:
> The patch below is to support NEC EMMA2RH Mark-eins board (R5500-based)
> Thanks for helping and valuable comments:
> the whole linux-mips comminuty
> Ralf Baechle
> Martin Michlmayr
> Thiemo Seufer
It seems that the community have overlooked at least one issue with this code:
> Index: linux/arch/mips/emma2rh/markeins/setup.c
> ===================================================================
> --- /dev/null
> +++ linux/arch/mips/emma2rh/markeins/setup.c
[...]
> +static void inline __init markeins_sio_setup(void)
> +{
> +#ifdef CONFIG_KGDB_8250
I wonder what it's doing in the Linux/MIPS patch while it's only relevant
to the cross-arch KGDB patchset.
> + struct uart_port emma_port;
> +
> + memset(&emma_port, 0, sizeof(emma_port));
> +
> + emma_port.flags =
> + UPF_BOOT_AUTOCONF | UPF_SKIP_TEST;
> + emma_port.iotype = UPIO_MEM;
> + emma_port.regshift = 4; /* I/O addresses are every 8 bytes */
> + emma_port.uartclk = 18544000; /* Clock rate of the chip */
> +
> + emma_port.line = 0;
> + emma_port.mapbase = KSEG1ADDR(EMMA2RH_PFUR0_BASE + 3);
> + emma_port.membase = (u8*)emma_port.mapbase;
> + early_serial_setup(&emma_port);
> +
> + emma_port.line = 1;
> + emma_port.mapbase = KSEG1ADDR(EMMA2RH_PFUR1_BASE + 3);
> + emma_port.membase = (u8*)emma_port.mapbase;
> + early_serial_setup(&emma_port);
> +
> + emma_port.irq = EMMA2RH_IRQ_PFUR1;
> + kgdb8250_add_port(1, &emma_port);
> +#endif
Why you #ifdef out early_serial_setup() calls is even more interesting.
How this kernel is supposed to work at all with such code?!
WBR, Sergei
next prev parent reply other threads:[~2006-08-24 18:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-21 10:53 [PATCH] NEC EMMA2RH support, revisited dmitry pervushin
2006-08-24 18:36 ` Sergei Shtylyov [this message]
2006-08-25 17:48 ` Sergei Shtylyov
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=44EDF1C8.4020507@ru.mvista.com \
--to=sshtylyov@ru.mvista.com \
--cc=dpervushin@ru.mvista.com \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.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