public inbox for linux-mips@vger.kernel.org
 help / color / mirror / Atom feed
From: Lauri Kasanen <cand@gmx.com>
To: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: linux-mips@vger.kernel.org, tsbogend@alpha.franken.de
Subject: Re: [PATCH 2/6] mips: Add N64 machine type
Date: Sat, 26 Dec 2020 09:30:05 +0200	[thread overview]
Message-ID: <20201226093005.c9bbd6a2167aa3c989294c3e@gmx.com> (raw)
In-Reply-To: <cb037083-fb29-e080-c2f0-532f38abb9d6@flygoat.com>

On Sat, 26 Dec 2020 11:17:42 +0800
Jiaxun Yang <jiaxun.yang@flygoat.com> wrote:

> > +++ b/arch/mips/n64/init.c
> > +void __init prom_init(void)
> > +{
> > +	int argc, i;
> > +	const char **argv;
> > +
> > +	argc = fw_arg0;
> > +	argv = (const char **)fw_arg1;
> > +
> > +	for (i = 1; i < argc; i++) {
> > +		strlcat(arcs_cmdline, argv[i], COMMAND_LINE_SIZE);
> > +		if (i < (argc - 1))
> > +			strlcat(arcs_cmdline, " ", COMMAND_LINE_SIZE);
> > +	}
> > +}
>
> Please use: fw_init_cmdline.

Will do.

This was copypaste from vr41xx - that place should also be changed then
(by someone who can test it).

> > +++ b/arch/mips/n64/irq.c
> Actually we have plat_irq_dispatch at irq-mips-cpu.c.
> Any special reason to override it?

No, I just didn't know of it. The nicer #define names can still be used
in drivers.

- Lauri

  reply	other threads:[~2020-12-26  7:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-25 17:00 [PATCH 2/6] mips: Add N64 machine type Lauri Kasanen
2020-12-26  3:17 ` Jiaxun Yang
2020-12-26  7:30   ` Lauri Kasanen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-01-04 13:43 Lauri Kasanen
2021-01-07 17:10 ` Thomas Bogendoerfer
2021-01-08  7:04   ` Lauri Kasanen
2021-01-08  8:40     ` Thomas Bogendoerfer
2021-01-08 11:28     ` Jiaxun Yang

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=20201226093005.c9bbd6a2167aa3c989294c3e@gmx.com \
    --to=cand@gmx.com \
    --cc=jiaxun.yang@flygoat.com \
    --cc=linux-mips@vger.kernel.org \
    --cc=tsbogend@alpha.franken.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