summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorXu Rao <raoxu@uniontech.com>2026-06-25 21:29:03 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-06-25 15:39:58 +0200
commit8522d806d84e2c3816c275ae6dd79e124c1b3dac (patch)
tree36cd0b8e5260e7b61fe5443703d6d52e65c43015 /scripts
parentad034486ada5860081565e2d7a2e41aa91c302c2 (diff)
ACPI: TAD: Check AC wake capability before enabling wakeup
ACPI_TAD_AC_WAKE is a non-zero bit definition, so testing the macro itself is always true. As a result, every TAD device is initialized as a system wakeup device, including RTC-only devices and devices whose wake capability bits were cleared because _PRW is absent. Test the capability value returned by _GCP instead. This keeps RTC-only TAD devices usable without advertising a wakeup capability that the firmware does not provide. Fixes: 6c711fde3a1c ("ACPI: TAD: Support RTC without wakeup") Cc: All applicable <stable@vger.kernel.org> Signed-off-by: Xu Rao <raoxu@uniontech.com> Link: https://patch.msgid.link/961A84FF37B50665+20260625132903.2840457-1-raoxu@uniontech.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions