From patchwork Wed Dec 19 22:08:16 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Precise,SRU] UBUNTU: SAUCE: samsung-laptop: disable in UEFI mode X-Patchwork-Submitter: Colin Ian King X-Patchwork-Id: 207530 Message-Id: <1355954898-15402-3-git-send-email-colin.king@canonical.com> To: kernel-team@lists.ubuntu.com Date: Wed, 19 Dec 2012 22:08:16 +0000 From: Colin King List-Id: Kernel team discussions 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 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/platform/x86/samsung-laptop.c b/drivers/platform/x86/samsung-laptop.c index 1782cea..2b6560c 100644 --- a/drivers/platform/x86/samsung-laptop.c +++ b/drivers/platform/x86/samsung-laptop.c @@ -22,6 +22,7 @@ #include #include #include +#include /* * This driver is needed because a number of Samsung laptops do not hook @@ -824,6 +825,9 @@ static int __init samsung_init(void) int loca; int retval; + if (efi_enabled) + return -ENODEV; + mutex_init(&sabi_mutex); handle_backlight = true;