Skip to content

Commit d9c01c5

Browse files
Lucas Tanurejwrdegoede
authored andcommitted
ACPI / scan: Create platform device for CS35L41
The ACPI device with CSC3551 or CLSA0100 are sound cards with multiple instances of CS35L41 connected by I2C or SPI to the main CPU. We add an ID to the ignore_serial_bus_ids list to enumerate all I2C or SPI devices correctly. The same IDs are also added into serial-multi-instantiate so that the driver can correctly enumerate the ACPI. Signed-off-by: Lucas Tanure <[email protected]> Signed-off-by: Stefan Binding <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Hans de Goede <[email protected]>
1 parent 07bcab9 commit d9c01c5

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

drivers/acpi/scan.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1744,8 +1744,11 @@ static bool acpi_device_enumeration_by_parent(struct acpi_device *device)
17441744
*/
17451745
{"BSG1160", },
17461746
{"BSG2150", },
1747+
{"CSC3551", },
17471748
{"INT33FE", },
17481749
{"INT3515", },
1750+
/* Non-conforming _HID for Cirrus Logic already released */
1751+
{"CLSA0100", },
17491752
/*
17501753
* HIDs of device with an UartSerialBusV2 resource for which userspace
17511754
* expects a regular tty cdev to be created (instead of the in kernel

drivers/platform/x86/serial-multi-instantiate.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,17 @@ static const struct smi_node int3515_data = {
307307
.bus_type = SMI_I2C,
308308
};
309309

310+
static const struct smi_node cs35l41_hda = {
311+
.instances = {
312+
{ "cs35l41-hda", IRQ_RESOURCE_GPIO, 0 },
313+
{ "cs35l41-hda", IRQ_RESOURCE_GPIO, 0 },
314+
{ "cs35l41-hda", IRQ_RESOURCE_GPIO, 0 },
315+
{ "cs35l41-hda", IRQ_RESOURCE_GPIO, 0 },
316+
{}
317+
},
318+
.bus_type = SMI_AUTO_DETECT,
319+
};
320+
310321
/*
311322
* Note new device-ids must also be added to ignore_serial_bus_ids in
312323
* drivers/acpi/scan.c: acpi_device_enumeration_by_parent().
@@ -315,6 +326,9 @@ static const struct acpi_device_id smi_acpi_ids[] = {
315326
{ "BSG1160", (unsigned long)&bsg1160_data },
316327
{ "BSG2150", (unsigned long)&bsg2150_data },
317328
{ "INT3515", (unsigned long)&int3515_data },
329+
{ "CSC3551", (unsigned long)&cs35l41_hda },
330+
/* Non-conforming _HID for Cirrus Logic already released */
331+
{ "CLSA0100", (unsigned long)&cs35l41_hda },
318332
{ }
319333
};
320334
MODULE_DEVICE_TABLE(acpi, smi_acpi_ids);

0 commit comments

Comments
 (0)