+ rtc-ia64-allow-other-architectures-to-use-efi-rtc-v2.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: rtc-ia64-allow-other-architectures-to-use-efi-rtc-v2
has been added to the -mm tree.  Its filename is
     rtc-ia64-allow-other-architectures-to-use-efi-rtc-v2.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/rtc-ia64-allow-other-architectures-to-use-efi-rtc-v2.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/rtc-ia64-allow-other-architectures-to-use-efi-rtc-v2.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Mark Salter <msalter@xxxxxxxxxx>
Subject: rtc-ia64-allow-other-architectures-to-use-efi-rtc-v2

This is v2 of the patch to fix a boot problem with kernels building in
rtc-efi but not being booted via EFI. In that case, runtime services are
not available so there is no point in registering the platform device.

Signed-off-by: Mark Salter <msalter@xxxxxxxxxx>
Cc: Alessandro Zummo <a.zummo@xxxxxxxxxxxx>
Cc: Tony Luck <tony.luck@xxxxxxxxx>
Cc: Fenghua Yu <fenghua.yu@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 drivers/rtc/rtc-efi-platform.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff -puN drivers/rtc/rtc-efi-platform.c~rtc-ia64-allow-other-architectures-to-use-efi-rtc-v2 drivers/rtc/rtc-efi-platform.c
--- a/drivers/rtc/rtc-efi-platform.c~rtc-ia64-allow-other-architectures-to-use-efi-rtc-v2
+++ a/drivers/rtc/rtc-efi-platform.c
@@ -21,8 +21,9 @@ static struct platform_device rtc_efi_de
 
 static int __init rtc_init(void)
 {
-	if (platform_device_register(&rtc_efi_dev) < 0)
-		pr_err("unable to register rtc device...\n");
+	if (efi_enabled(EFI_RUNTIME_SERVICES))
+		if (platform_device_register(&rtc_efi_dev) < 0)
+			pr_err("unable to register rtc device...\n");
 
 	/* not necessarily an error */
 	return 0;
_

Patches currently in -mm which might be from msalter@xxxxxxxxxx are

rtc-ia64-allow-other-architectures-to-use-efi-rtc.patch
rtc-ia64-allow-other-architectures-to-use-efi-rtc-v2.patch
linux-next.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux