Skip to content

Commit d9f87a7

Browse files
committed
Merge branches 'acpi-x86', 'acpi-dptf' and 'acpi-apei'
Merge x86-specific ACPI updates, an ACPI DPTF driver update adding new platform support to it, and an ACPI APEI update: - Add a num-cs device property to specify the number of chip selects for Intel Braswell to the ACPI LPSS (Intel SoC) driver and remove a nested CONFIG_PM #ifdef from it (Andy Shevchenko). - Move three x86-specific ACPI files to the x86 directory (Andy Shevchenko). - Mark SMO8810 accel on Dell XPS 15 9550 as always present and add a PNP_UART1_SKIP quirk for Lenovo Blade2 tablets (Hans de Goede). - Move acpi_blacklisted() declaration to asm/acpi.h (Kuppuswamy Sathyanarayanan). - Add Lunar Lake support to the ACPI DPTF driver (Sumeet Pawnikar). - Mark the einj_driver driver's remove callback as __exit because it cannot get unbound via sysfs (Uwe Kleine-König). * acpi-x86: ACPI: Move acpi_blacklisted() declaration to asm/acpi.h ACPI: x86: Add PNP_UART1_SKIP quirk for Lenovo Blade2 tablets ACPI: x86: utils: Mark SMO8810 accel on Dell XPS 15 9550 as always present ACPI: x86: Move LPSS to x86 folder ACPI: x86: Move blacklist to x86 folder ACPI: x86: Move acpi_cmos_rtc to x86 folder ACPI: x86: Introduce a Makefile ACPI: LPSS: Remove nested ifdeffery for CONFIG_PM ACPI: LPSS: Advertise number of chip selects via property * acpi-dptf: ACPI: DPTF: Add Lunar Lake support * acpi-apei: ACPI: APEI: EINJ: mark remove callback as __exit
4 parents ca86ab5 + dfac21b + 79b510c + 5a87e00 commit d9f87a7

File tree

16 files changed

+61
-23
lines changed

16 files changed

+61
-23
lines changed

arch/x86/include/asm/acpi.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ static inline void disable_acpi(void)
5656

5757
extern int acpi_gsi_to_irq(u32 gsi, unsigned int *irq);
5858

59+
extern int acpi_blacklisted(void);
60+
5961
static inline void acpi_noirq_set(void) { acpi_noirq = 1; }
6062
static inline void acpi_disable_pci(void)
6163
{

drivers/acpi/Makefile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ tables.o: $(src)/../../include/$(CONFIG_ACPI_CUSTOM_DSDT_FILE) ;
1414
endif
1515

1616
obj-$(CONFIG_ACPI) += tables.o
17-
obj-$(CONFIG_X86) += blacklist.o
1817

1918
#
2019
# ACPI Core Subsystem (Interpreter)
@@ -46,7 +45,6 @@ acpi-y += ec.o
4645
acpi-$(CONFIG_ACPI_DOCK) += dock.o
4746
acpi-$(CONFIG_PCI) += pci_root.o pci_link.o pci_irq.o
4847
obj-$(CONFIG_ACPI_MCFG) += pci_mcfg.o
49-
acpi-$(CONFIG_PCI) += acpi_lpss.o
5048
acpi-y += acpi_apd.o
5149
acpi-y += acpi_platform.o
5250
acpi-y += acpi_pnp.o
@@ -55,10 +53,6 @@ acpi-y += event.o
5553
acpi-y += evged.o
5654
acpi-y += sysfs.o
5755
acpi-y += property.o
58-
acpi-$(CONFIG_X86) += acpi_cmos_rtc.o
59-
acpi-$(CONFIG_X86) += x86/apple.o
60-
acpi-$(CONFIG_X86) += x86/utils.o
61-
acpi-$(CONFIG_X86) += x86/s2idle.o
6256
acpi-$(CONFIG_DEBUG_FS) += debugfs.o
6357
acpi-y += acpi_lpat.o
6458
acpi-$(CONFIG_ACPI_FPDT) += acpi_fpdt.o
@@ -133,3 +127,4 @@ obj-$(CONFIG_ARM64) += arm64/
133127
obj-$(CONFIG_ACPI_VIOT) += viot.o
134128

135129
obj-$(CONFIG_RISCV) += riscv/
130+
obj-$(CONFIG_X86) += x86/

drivers/acpi/apei/einj-core.c

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ static int __init einj_probe(struct platform_device *pdev)
851851
return rc;
852852
}
853853

854-
static void einj_remove(struct platform_device *pdev)
854+
static void __exit einj_remove(struct platform_device *pdev)
855855
{
856856
struct apei_exec_context ctx;
857857

@@ -873,8 +873,14 @@ static void einj_remove(struct platform_device *pdev)
873873
}
874874

875875
static struct platform_device *einj_dev;
876-
static struct platform_driver einj_driver = {
877-
.remove_new = einj_remove,
876+
/*
877+
* einj_remove() lives in .exit.text. For drivers registered via
878+
* platform_driver_probe() this is ok because they cannot get unbound at
879+
* runtime. So mark the driver struct with __refdata to prevent modpost
880+
* triggering a section mismatch warning.
881+
*/
882+
static struct platform_driver einj_driver __refdata = {
883+
.remove_new = __exit_p(einj_remove),
878884
.driver = {
879885
.name = "acpi-einj",
880886
},

drivers/acpi/dptf/dptf_pch_fivr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ static const struct acpi_device_id pch_fivr_device_ids[] = {
150150
{"INTC1045", 0},
151151
{"INTC1049", 0},
152152
{"INTC1064", 0},
153+
{"INTC106B", 0},
153154
{"INTC10A3", 0},
154155
{"", 0},
155156
};

drivers/acpi/dptf/dptf_power.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,8 @@ static const struct acpi_device_id int3407_device_ids[] = {
232232
{"INTC1061", 0},
233233
{"INTC1065", 0},
234234
{"INTC1066", 0},
235+
{"INTC106C", 0},
236+
{"INTC106D", 0},
235237
{"INTC10A4", 0},
236238
{"INTC10A5", 0},
237239
{"", 0},

drivers/acpi/dptf/int340x_thermal.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ static const struct acpi_device_id int340x_thermal_device_ids[] = {
4343
{"INTC1064"},
4444
{"INTC1065"},
4545
{"INTC1066"},
46+
{"INTC1068"},
47+
{"INTC1069"},
48+
{"INTC106A"},
49+
{"INTC106B"},
50+
{"INTC106C"},
51+
{"INTC106D"},
4652
{"INTC10A0"},
4753
{"INTC10A1"},
4854
{"INTC10A2"},

drivers/acpi/fan.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
{"INTC1044", }, /* Fan for Tiger Lake generation */ \
1616
{"INTC1048", }, /* Fan for Alder Lake generation */ \
1717
{"INTC1063", }, /* Fan for Meteor Lake generation */ \
18+
{"INTC106A", }, /* Fan for Lunar Lake generation */ \
1819
{"INTC10A2", }, /* Fan for Raptor Lake generation */ \
1920
{"PNP0C0B", } /* Generic ACPI fan */
2021

drivers/acpi/internal.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ void acpi_debugfs_init(void);
6969
#else
7070
static inline void acpi_debugfs_init(void) { return; }
7171
#endif
72-
#ifdef CONFIG_PCI
72+
73+
#if defined(CONFIG_X86) && defined(CONFIG_PCI)
7374
void acpi_lpss_init(void);
7475
#else
7576
static inline void acpi_lpss_init(void) {}

drivers/acpi/x86/Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
obj-$(CONFIG_ACPI) += acpi-x86.o
2+
acpi-x86-y += apple.o
3+
acpi-x86-y += cmos_rtc.o
4+
acpi-x86-$(CONFIG_PCI) += lpss.o
5+
acpi-x86-y += s2idle.o
6+
acpi-x86-y += utils.o
7+
8+
obj-$(CONFIG_X86) += blacklist.o

drivers/acpi/blacklist.c renamed to drivers/acpi/x86/blacklist.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include <linux/acpi.h>
1818
#include <linux/dmi.h>
1919

20-
#include "internal.h"
20+
#include "../internal.h"
2121

2222
#ifdef CONFIG_DMI
2323
static const struct dmi_system_id acpi_rev_dmi_table[] __initconst;

0 commit comments

Comments
 (0)