From patchwork Wed Dec 19 22:08:18 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Raring] UBUNTU: SAUCE: samsung-laptop: disable in UEFI mode Date: Wed, 19 Dec 2012 12:08:18 -0000 From: Colin King X-Patchwork-Id: 207532 Message-Id: <1355954898-15402-5-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 dd90d15..215e5f6 100644 --- a/drivers/platform/x86/samsung-laptop.c +++ b/drivers/platform/x86/samsung-laptop.c @@ -27,6 +27,7 @@ #include #include #include +#include /* * This driver is needed because a number of Samsung laptops do not hook @@ -1534,6 +1535,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;