From nobody Sun Apr 5 20:03:18 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EAEA12ED15D; Mon, 23 Feb 2026 15:33:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771860834; cv=none; b=GYa1DDAe+Bhg9JB53XJxJ3zgGOYep7qekA1MeUMC7JsNiJZbOZKbRdzIKp+IaR+/H9plSgwN1nIjM4Ht2s7w33hXnhZSaof+Xv0YiGU8t7OAfK4dl/QeeMJkz7UvC+DpsrjdEtdDrfGs8ustZEqnG4uF93WY89AAb4HRfx2MNTI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771860834; c=relaxed/simple; bh=Ufzp8Tax/XN6GRzoAArGc4ZHLmHcX/nHrE2dRsFMiuY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=iZkA0rS8X/aWXyNNWVs/VrTP2EGGnEqPI6qFTW0S1OLTFdOnQSiultQI6a39tjFqJ1O2DXRjF756P2OgMOOEZNfFHuqZl2WVGuFY91vhZF1UemAq7HoIin2cKh4iOU5AE/laraApPZEWbK1mKeHKjupPJZJfmMLkrnNqEP7YnyU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=huqVQ6Ik; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="huqVQ6Ik" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 892DBC116D0; Mon, 23 Feb 2026 15:33:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1771860833; bh=Ufzp8Tax/XN6GRzoAArGc4ZHLmHcX/nHrE2dRsFMiuY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=huqVQ6IkcUXhnaTFz9jjV632NlJcUux432SgRYmKPpD4UqNjSkzkk6vXEr2BaakzD 6AsDTp09LVUFnQbu7d5XE2+Lh6jkpcS/SZHZYZIT5xFY3tEU9441d9tlp2twTHPsx1 cUHvF8zUUQGtNVzWCOhIjpJxjoMWrcOw4L7e4VpBMGEJtur+J6fTAjdCiHCIEHVK5w VoLXn8HRvJgGoYzrSU+aNC3sibbEBcYZKWj4eq6T8Y656xr+yYXG5/Qs57b3I9wn0x f8i2VxDC2rgNkJHo2uhbT3FDD34IAWP5EGpA3AC4LVwT+YEeomQpW4tVvhbPMM13zj VMo95vPvSmoGg== From: "Rafael J. Wysocki" To: Linux ACPI Cc: LKML , x86 Maintainers , linux-rtc@vger.kernel.org, Alexandre Belloni Subject: [PATCH v1 6/8] x86: rtc: Drop PNP device check Date: Mon, 23 Feb 2026 16:31:49 +0100 Message-ID: <8660687.T7Z3S40VBb@rafael.j.wysocki> Organization: Linux Kernel Development In-Reply-To: <5983325.DvuYhMxLoT@rafael.j.wysocki> References: <5983325.DvuYhMxLoT@rafael.j.wysocki> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: "Rafael J. Wysocki" Previous changes effectively prevented PNP devices from being created for the CMOS RTC on x86 with ACPI. Although in principle a CMOS RTC PNP device may exist on an x86 system without ACPI (that is, an x86 system where there is no ACPI at all, not one booted with ACPI disabled), such systems were there in the field ~30 years ago and most likely they would not be able to run a contemporary Linux kernel. For the above reasons, drop the PNP device check from add_rtc_cmos(). Signed-off-by: Rafael J. Wysocki Acked-by: Dave Hansen # x86 --- arch/x86/kernel/rtc.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/arch/x86/kernel/rtc.c b/arch/x86/kernel/rtc.c index b112178e8185..314b062a15de 100644 --- a/arch/x86/kernel/rtc.c +++ b/arch/x86/kernel/rtc.c @@ -6,7 +6,6 @@ #include #include #include -#include =20 #include #include @@ -134,19 +133,6 @@ static struct platform_device rtc_device =3D { =20 static __init int add_rtc_cmos(void) { -#ifdef CONFIG_PNP - static const char * const ids[] __initconst =3D - { "PNP0b00", "PNP0b01", "PNP0b02", }; - struct pnp_dev *dev; - int i; - - pnp_for_each_dev(dev) { - for (i =3D 0; i < ARRAY_SIZE(ids); i++) { - if (compare_pnp_id(dev->id, ids[i]) !=3D 0) - return 0; - } - } -#endif if (cmos_rtc_platform_device_present) return 0; =20 @@ -154,8 +140,7 @@ static __init int add_rtc_cmos(void) return -ENODEV; =20 platform_device_register(&rtc_device); - dev_info(&rtc_device.dev, - "registered platform RTC device (no PNP device found)\n"); + dev_info(&rtc_device.dev, "registered fallback platform RTC device\n"); =20 return 0; } --=20 2.51.0