From patchwork Wed Dec 19 22:08:17 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Quantal,SRU] UBUNTU: SAUCE: samsung-laptop: disable in UEFI mode Date: Wed, 19 Dec 2012 12:08:17 -0000 From: Colin King X-Patchwork-Id: 207531 Message-Id: <1355954898-15402-4-git-send-email-colin.king@canonical.com> To: kernel-team@lists.ubuntu.com From: Colin Ian King BugLink: https://launchpad.net/bugs/1040557 Disable this driver if we've booted in UEFI mode as some Samsungs seem to get bricked and are rendered unbootable when this driver tries to poke around the BIOS controls when in UEFI. Signed-off-by: Colin Ian King --- drivers/platform/x86/samsung-laptop.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/platform/x86/samsung-laptop.c b/drivers/platform/x86/samsung-laptop.c index e2a34b4..bec0faf 100644 --- a/drivers/platform/x86/samsung-laptop.c +++ b/drivers/platform/x86/samsung-laptop.c @@ -29,6 +29,7 @@ #if (defined CONFIG_ACPI_VIDEO || defined CONFIG_ACPI_VIDEO_MODULE) #include #endif +#include /* * This driver is needed because a number of Samsung laptops do not hook @@ -1517,6 +1518,9 @@ static int __init samsung_init(void) struct samsung_laptop *samsung; int ret; + if (efi_enabled) + return -ENODEV; + quirks = &samsung_unknown; if (!force && !dmi_check_system(samsung_dmi_table)) return -ENODEV;