All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@kernel.org>
To: Florian Fainelli <ffainelli@freebox.fr>
Cc: tglx@linutronix.de, mingo@redhat.com, x86@kernel.org,
	rui.zhang@intel.com, alan@linux.intel.com,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/3] x86: ce4100: force reboot method to be KBD
Date: Fri, 26 Oct 2012 11:32:11 +0200	[thread overview]
Message-ID: <20121026093211.GB1106@gmail.com> (raw)
In-Reply-To: <1351242325-23724-3-git-send-email-ffainelli@freebox.fr>


* Florian Fainelli <ffainelli@freebox.fr> wrote:

> From: Maxime Bizon <mbizon@freebox.fr>
> 
> The default reboot is via ACPI for this platform, and the CEFDK bootloader
> actually supports this, but will issue a system power off instead of a real
> reboot. Setting the reboot method to be KBD instead of ACPI ensures proper
> system reboot.
> 
> Signed-off-by: Florian Fainelli <ffainelli@freebox.fr>
> ---
>  arch/x86/platform/ce4100/ce4100.c |    3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/arch/x86/platform/ce4100/ce4100.c b/arch/x86/platform/ce4100/ce4100.c
> index 74f8774..8c9ed9a 100644
> --- a/arch/x86/platform/ce4100/ce4100.c
> +++ b/arch/x86/platform/ce4100/ce4100.c
> @@ -21,6 +21,7 @@
>  #include <asm/i8259.h>
>  #include <asm/io.h>
>  #include <asm/io_apic.h>
> +#include <asm/emergency-restart.h>
>  
>  static int ce4100_i8042_detect(void)
>  {
> @@ -144,6 +145,8 @@ void __init x86_ce4100_early_setup(void)
>  	x86_init.mpparse.find_smp_config = x86_init_noop;
>  	x86_init.pci.init = ce4100_pci_init;
>  
> +	reboot_type = BOOT_KBD;

Here too put a minimal comment into the code:

	/*
	 * The system default is ACPI reboot, but that powers 
	 * off on CE4100 so the use KBD reset instead:
	 */
	reboot_type = BOOT_KBD;

Thanks,

	Ingo

  reply	other threads:[~2012-10-26  9:32 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-26  9:05 [PATCH 0/3] x86: ce4100 fixes and improvements Florian Fainelli
2012-10-26  9:05 ` [PATCH 1/3] x86: ce4100: implement pm_poweroff Florian Fainelli
2012-10-26  9:30   ` Ingo Molnar
2012-10-26  9:05 ` [PATCH 2/3] x86: ce4100: force reboot method to be KBD Florian Fainelli
2012-10-26  9:32   ` Ingo Molnar [this message]
2012-10-26  9:05 ` [PATCH 3/3] x86: ce4100: fixup PCI configuration register access for devices without interrupts Florian Fainelli
2012-10-26 11:30 ` [PATCH 0/3 v2] x86: ce4100 fixes and improvements Florian Fainelli
2012-10-26 11:30   ` [PATCH 1/3 v2] x86: ce4100: implement pm_poweroff Florian Fainelli
2012-10-26 11:30   ` [PATCH 2/3 v2] x86: ce4100: force reboot method to be KBD Florian Fainelli
2012-10-26 14:58     ` Ingo Molnar
2012-10-26 11:30   ` [PATCH 3/3] x86: ce4100: fixup PCI configuration register access for devices without interrupts Florian Fainelli
2012-10-29 13:40   ` [PATCH 0/3 v3] x86: ce4100 fixes and improvements Florian Fainelli
2012-10-29 13:40     ` [PATCH 1/3 v3] x86: ce4100: implement pm_poweroff Florian Fainelli
2012-10-30 12:25       ` [tip:x86/urgent] x86/ce4100: Fix pm_poweroff tip-bot for Florian Fainelli
2012-10-29 13:40     ` [PATCH 2/3 v3] x86: ce4100: force reboot method to be KBD Florian Fainelli
2012-10-30 12:26       ` [tip:x86/urgent] x86/ce4100: Fix reboot by forcing the " tip-bot for Maxime Bizon
2012-10-29 13:40     ` [PATCH 3/3 v3] x86: ce4100: fixup PCI configuration register access for devices without interrupts Florian Fainelli
2012-10-30 12:27       ` [tip:x86/urgent] x86/ce4100: Fix " tip-bot for Maxime Bizon
  -- strict thread matches above, loose matches on Subject: below --
2012-10-19 11:51 [PATCH 0/3] x86: ce4100: various fixes Florian Fainelli
2012-10-19 11:51 ` [PATCH 2/3] x86: ce4100: force reboot method to be KBD Florian Fainelli

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=20121026093211.GB1106@gmail.com \
    --to=mingo@kernel.org \
    --cc=alan@linux.intel.com \
    --cc=ffainelli@freebox.fr \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=rui.zhang@intel.com \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.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 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.