From: Ralf Baechle <ralf@linux-mips.org>
To: keguang.zhang@gmail.com
Cc: linux-mips@linux-mips.org, linux-kernel@vger.kernel.org,
zhzhl555@gmail.com, peppe.cavallaro@st.com, wuzhangjin@gmail.com,
r0bertz@gentoo.org
Subject: Re: [PATCH V3 2/5] MIPS: Add board support for Loongson1B
Date: Thu, 17 Nov 2011 12:36:09 +0000 [thread overview]
Message-ID: <20111117123609.GA16467@linux-mips.org> (raw)
In-Reply-To: <1321522748-21391-2-git-send-email-keguang.zhang@gmail.com>
On Thu, Nov 17, 2011 at 05:39:05PM +0800, keguang.zhang@gmail.com wrote:
> diff --git a/arch/mips/include/asm/mach-loongson1/regs-clk.h b/arch/mips/include/asm/mach-loongson1/regs-clk.h
> new file mode 100644
> index 0000000..4f488c3
> --- /dev/null
> +++ b/arch/mips/include/asm/mach-loongson1/regs-clk.h
> @@ -0,0 +1,32 @@
> +/*
> + * Copyright (c) 2011 Zhang, Keguang <keguang.zhang@gmail.com>
> + *
> + * Loongson1 Clock Register Definitions.
> + *
> + * This program is free software; you can redistribute it and/or modify it
> + * under the terms of the GNU General Public License as published by the
> + * Free Software Foundation; either version 2 of the License, or (at your
> + * option) any later version.
> + */
> +
> +#ifndef __ASM_MACH_LOONGSON1_REGS_CLK_H
> +#define __ASM_MACH_LOONGSON1_REGS_CLK_H
> +
> +#define LS1X_CLK_REG(x) (ioremap(LS1X_CLK_BASE + (x), 4))
Uhh... Don't make assumptions on the MIPS implementation. Normally
ioremap() consumes some virtual address space and memory for each
invocation. And eventually io mappings should be freed again with
iounmap.
> +static void ls1x_halt(void)
> +{
> + pr_notice("\n\n** You can safely turn off the power now **\n\n");
This is so Windows 95 ;-)
Please remove this message. Messages to a user should be printed by
userspace, most likely an init script.
Ralf
next prev parent reply other threads:[~2011-11-17 12:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-17 9:39 [PATCH V3 1/5] MIPS: Add CPU support for Loongson1B keguang.zhang
2011-11-17 9:39 ` [PATCH V3 2/5] MIPS: Add board " keguang.zhang
2011-11-17 12:36 ` Ralf Baechle [this message]
2011-11-17 9:39 ` [PATCH V3 3/5] MIPS: Add Makefile and Kconfig " keguang.zhang
2011-11-17 9:39 ` [PATCH V3 4/5] MIPS: Add RTC support " keguang.zhang
2011-11-17 12:42 ` Ralf Baechle
2011-11-17 9:39 ` [PATCH V3 5/5] MIPS: Add defconfig " keguang.zhang
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=20111117123609.GA16467@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=keguang.zhang@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=peppe.cavallaro@st.com \
--cc=r0bertz@gentoo.org \
--cc=wuzhangjin@gmail.com \
--cc=zhzhl555@gmail.com \
/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.