projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e154584
)
x86/reboot/quirks: Add MacBook6,1 reboot quirk
author
Hill Ma
<maahiuzeon@gmail.com>
Sat, 25 Apr 2020 20:06:41 +0000
(13:06 -0700)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 17 Jun 2020 14:40:25 +0000
(16:40 +0200)
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>
arch/x86/kernel/reboot.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/reboot.c
b/arch/x86/kernel/reboot.c
index 0cc7c0b106bbfa3d563f36bce2fe781726c830cf..762f5c1465a6f53dd884a2c35dac5ba2e3df182c 100644
(file)
--- a/
arch/x86/kernel/reboot.c
+++ b/
arch/x86/kernel/reboot.c
@@
-197,6
+197,14
@@
static const struct dmi_system_id reboot_dmi_table[] __initconst = {
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",