Skip to content

Commit 4d33a2e

Browse files
Heikki Krogerusgregkh
authored andcommitted
platform/x86: i2c-multi-instantiate: Don't create platform device for INT3515 ACPI nodes
commit 9bba962 upstream. There are several reports about the tps6598x causing interrupt flood on boards with the INT3515 ACPI node, which then causes instability. There appears to be several problems with the interrupt. One problem is that the I2CSerialBus resources do not always map to the Interrupt resource with the same index, but that is not the only problem. We have not been able to come up with a solution for all the issues, and because of that disabling the device for now. The PD controller on these platforms is autonomous, and the purpose for the driver is primarily to supply status to the userspace, so this will not affect any functionality. Reported-by: Moody Salem <moody@uniswap.org> Fixes: a3dd034 ("ACPI / scan: Create platform device for INT3515 ACPI nodes") Cc: stable@vger.kernel.org BugLink: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1883511 Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Link: https://lore.kernel.org/r/20201223143644.33341-1-heikki.krogerus@linux.intel.com Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent c479513 commit 4d33a2e

1 file changed

Lines changed: 23 additions & 8 deletions

File tree

‎drivers/platform/x86/i2c-multi-instantiate.c‎

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -166,13 +166,29 @@ static const struct i2c_inst_data bsg2150_data[] = {
166166
{}
167167
};
168168

169-
static const struct i2c_inst_data int3515_data[] = {
170-
{ "tps6598x", IRQ_RESOURCE_APIC, 0 },
171-
{ "tps6598x", IRQ_RESOURCE_APIC, 1 },
172-
{ "tps6598x", IRQ_RESOURCE_APIC, 2 },
173-
{ "tps6598x", IRQ_RESOURCE_APIC, 3 },
174-
{}
175-
};
169+
/*
170+
* Device with _HID INT3515 (TI PD controllers) has some unresolved interrupt
171+
* issues. The most common problem seen is interrupt flood.
172+
*
173+
* There are at least two known causes. Firstly, on some boards, the
174+
* I2CSerialBus resource index does not match the Interrupt resource, i.e. they
175+
* are not one-to-one mapped like in the array below. Secondly, on some boards
176+
* the IRQ line from the PD controller is not actually connected at all. But the
177+
* interrupt flood is also seen on some boards where those are not a problem, so
178+
* there are some other problems as well.
179+
*
180+
* Because of the issues with the interrupt, the device is disabled for now. If
181+
* you wish to debug the issues, uncomment the below, and add an entry for the
182+
* INT3515 device to the i2c_multi_instance_ids table.
183+
*
184+
* static const struct i2c_inst_data int3515_data[] = {
185+
* { "tps6598x", IRQ_RESOURCE_APIC, 0 },
186+
* { "tps6598x", IRQ_RESOURCE_APIC, 1 },
187+
* { "tps6598x", IRQ_RESOURCE_APIC, 2 },
188+
* { "tps6598x", IRQ_RESOURCE_APIC, 3 },
189+
* { }
190+
* };
191+
*/
176192

177193
/*
178194
* Note new device-ids must also be added to i2c_multi_instantiate_ids in
@@ -181,7 +197,6 @@ static const struct i2c_inst_data int3515_data[] = {
181197
static const struct acpi_device_id i2c_multi_inst_acpi_ids[] = {
182198
{ "BSG1160", (unsigned long)bsg1160_data },
183199
{ "BSG2150", (unsigned long)bsg2150_data },
184-
{ "INT3515", (unsigned long)int3515_data },
185200
{ }
186201
};
187202
MODULE_DEVICE_TABLE(acpi, i2c_multi_inst_acpi_ids);

0 commit comments

Comments
 (0)