summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorHill Ma <maahiuzeon@gmail.com>2020-04-25 13:06:41 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-06-20 10:24:08 +0200
commitcc66d80027fc21111b2241a3bb0fc7ec21f99125 (patch)
treebefd8f75568d7b9496df098db0e51f003368c4c0 /arch/x86
parentfc0abf5a64ea5d028af0cf5d37d5898afe6748c5 (diff)
downloadlinux-stable-cc66d80027fc21111b2241a3bb0fc7ec21f99125.tar.gz
linux-stable-cc66d80027fc21111b2241a3bb0fc7ec21f99125.tar.bz2
linux-stable-cc66d80027fc21111b2241a3bb0fc7ec21f99125.zip
x86/reboot/quirks: Add MacBook6,1 reboot quirk
commit 140fd4ac78d385e6c8e6a5757585f6c707085f87 upstream. On MacBook6,1 reboot would hang unless parameter reboot=pci is added. Make it automatic. Signed-off-by: Hill Ma <maahiuzeon@gmail.com> Signed-off-by: Borislav Petkov <bp@suse.de> Cc: stable@vger.kernel.org Link: https://lkml.kernel.org/r/20200425200641.GA1554@cslab.localdomain Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kernel/reboot.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/kernel/reboot.c b/arch/x86/kernel/reboot.c
index c55b11fe8e9f..b427dc73ba27 100644
--- a/arch/x86/kernel/reboot.c
+++ b/arch/x86/kernel/reboot.c
@@ -198,6 +198,14 @@ static struct dmi_system_id __initdata reboot_dmi_table[] = {
DMI_MATCH(DMI_PRODUCT_NAME, "MacBook5"),
},
},
+ { /* Handle problems with rebooting on Apple MacBook6,1 */
+ .callback = set_pci_reboot,
+ .ident = "Apple MacBook6,1",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."),
+ DMI_MATCH(DMI_PRODUCT_NAME, "MacBook6,1"),
+ },
+ },
{ /* Handle problems with rebooting on Apple MacBookPro5 */
.callback = set_pci_reboot,
.ident = "Apple MacBookPro5",