From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Linux Kernel list <linux-kernel@vger.kernel.org>
Cc: Linus Torvalds <torvalds@osdl.org>
Subject: Re: [PATCH] PPC64 Close firmware stdin
Date: Wed, 08 Dec 2004 09:30:48 +1100 [thread overview]
Message-ID: <1102458649.11516.35.camel@gaston> (raw)
In-Reply-To: <200412071904.iB7J4DOj023759@hera.kernel.org>
On Tue, 2004-12-07 at 18:15 +0000, Linux Kernel Mailing List wrote:
> ChangeSet 1.2146, 2004/12/07 10:15:41-08:00, paulus@samba.org
>
> [PATCH] PPC64 Close firmware stdin
.../...
I think you merged that one twice :)
Ben.
>
> diff -Nru a/arch/ppc64/kernel/prom_init.c b/arch/ppc64/kernel/prom_init.c
> --- a/arch/ppc64/kernel/prom_init.c 2004-12-07 11:04:26 -08:00
> +++ b/arch/ppc64/kernel/prom_init.c 2004-12-07 11:04:26 -08:00
> @@ -1118,6 +1118,16 @@
> call_prom("close", 1, 0, val);
> }
>
> +static void __init prom_close_stdin(void)
> +{
> + unsigned long offset = reloc_offset();
> + struct prom_t *_prom = PTRRELOC(&prom);
> + ihandle val;
> +
> + if (prom_getprop(_prom->chosen, "stdin", &val, sizeof(val)) > 0)
> + call_prom("close", 1, 0, val);
> +}
> +
> static int __init prom_find_machine_type(void)
> {
> unsigned long offset = reloc_offset();
> @@ -1695,6 +1705,9 @@
> */
> prom_printf("copying OF device tree ...\n");
> flatten_device_tree();
> +
> + /* in case stdin is USB and still active on IBM machines... */
> + prom_close_stdin();
>
> /* in case stdin is USB and still active on IBM machines... */
> prom_close_stdin();
> -
> To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Benjamin Herrenschmidt <benh@kernel.crashing.org>
next parent reply other threads:[~2004-12-07 22:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200412071904.iB7J4DOj023759@hera.kernel.org>
2004-12-07 22:30 ` Benjamin Herrenschmidt [this message]
2004-12-06 3:31 [PATCH] PPC64 Close firmware stdin Paul Mackerras
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=1102458649.11516.35.camel@gaston \
--to=benh@kernel.crashing.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.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