From: James Hogan <james.hogan@mips.com>
To: Aleksandar Markovic <aleksandar.markovic@rt-rk.com>
Cc: <linux-mips@linux-mips.org>,
Miodrag Dinic <miodrag.dinic@mips.com>,
"Goran Ferenc" <goran.ferenc@mips.com>,
Aleksandar Markovic <aleksandar.markovic@mips.com>,
"David S. Miller" <davem@davemloft.net>,
Douglas Leung <douglas.leung@mips.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
<linux-kernel@vger.kernel.org>,
"Mauro Carvalho Chehab" <mchehab@kernel.org>,
Paul Burton <paul.burton@mips.com>,
"Petar Jovanovic" <petar.jovanovic@mips.com>,
Raghu Gandham <raghu.gandham@mips.com>,
Ralf Baechle <ralf@linux-mips.org>,
Randy Dunlap <rdunlap@infradead.org>
Subject: Re: [PATCH v9 3/3] MIPS: ranchu: Add Ranchu as a new generic-based board
Date: Wed, 15 Nov 2017 21:59:11 +0000 [thread overview]
Message-ID: <20171115215910.GB27409@jhogan-linux.mipstec.com> (raw)
In-Reply-To: <1510753368-16453-4-git-send-email-aleksandar.markovic@rt-rk.com>
[-- Attachment #1: Type: text/plain, Size: 1167 bytes --]
Hi Aleksandar,
On Wed, Nov 15, 2017 at 02:42:20PM +0100, Aleksandar Markovic wrote:
> diff --git a/arch/mips/configs/generic/board-ranchu.config b/arch/mips/configs/generic/board-ranchu.config
> new file mode 100644
> index 0000000..fee9ad4
> --- /dev/null
> +++ b/arch/mips/configs/generic/board-ranchu.config
> @@ -0,0 +1,30 @@
> +CONFIG_VIRT_BOARD_RANCHU=y
I presume its valid for Ranchu support to be enabled in MIPS32 / MIPS64,
and R1 / R2 / R6 kernels? (that's fine if so, just making sure there's
no need for a require comment).
> diff --git a/arch/mips/generic/board-ranchu.c b/arch/mips/generic/board-ranchu.c
> new file mode 100644
> index 0000000..0efc555
> --- /dev/null
> +++ b/arch/mips/generic/board-ranchu.c
> @@ -0,0 +1,85 @@
...
> +static __init unsigned int ranchu_measure_hpt_freq(void)
> +{
...
> + count += 5000; /* round */
> + count -= count % 10000;
A comment to explain the purpose of the rounding would be helpful. I
presume its there just to get a more accurate value since the frequency
will always be a round value in practice.
Either way this patch looks good to me:
Reviewed-by: James Hogan <jhogan@kernel.org>
Thanks!
James
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2017-11-15 22:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-15 13:42 [PATCH v9 0/3] MIPS: Add virtual Ranchu board as a " Aleksandar Markovic
2017-11-15 13:42 ` [PATCH v9 1/3] Documentation: Add device tree binding for Goldfish PIC driver Aleksandar Markovic
2017-11-15 13:42 ` [PATCH v9 2/3] irqchip/irq-goldfish-pic: Add " Aleksandar Markovic
2017-11-15 13:42 ` [PATCH v9 3/3] MIPS: ranchu: Add Ranchu as a new generic-based board Aleksandar Markovic
2017-11-15 21:59 ` James Hogan [this message]
2017-11-16 12:45 ` Aleksandar Markovic
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=20171115215910.GB27409@jhogan-linux.mipstec.com \
--to=james.hogan@mips.com \
--cc=aleksandar.markovic@mips.com \
--cc=aleksandar.markovic@rt-rk.com \
--cc=davem@davemloft.net \
--cc=douglas.leung@mips.com \
--cc=goran.ferenc@mips.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=mchehab@kernel.org \
--cc=miodrag.dinic@mips.com \
--cc=paul.burton@mips.com \
--cc=petar.jovanovic@mips.com \
--cc=raghu.gandham@mips.com \
--cc=ralf@linux-mips.org \
--cc=rdunlap@infradead.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
all inboxes | Powered by JetHome®