mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 15:12:13 +02:00
power: supply: max17042: make interrupt shared
Fuelgauge blocks often are incorporated in bigger chip, which may use only 1 line for interrupts. Make interrupt shared. Reviewed-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com> Link: https://lore.kernel.org/r/20250107-b4-max17042-v6-1-3d0104ad5bc7@gmail.com Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
parent
81312ea9b8
commit
bed41f08e2
|
|
@ -1103,14 +1103,7 @@ static int max17042_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
if (client->irq) {
|
||||
unsigned int flags = IRQF_ONESHOT;
|
||||
|
||||
/*
|
||||
* On ACPI systems the IRQ may be handled by ACPI-event code,
|
||||
* so we need to share (if the ACPI code is willing to share).
|
||||
*/
|
||||
if (acpi_id)
|
||||
flags |= IRQF_SHARED | IRQF_PROBE_SHARED;
|
||||
unsigned int flags = IRQF_ONESHOT | IRQF_SHARED | IRQF_PROBE_SHARED;
|
||||
|
||||
ret = devm_request_threaded_irq(&client->dev, client->irq,
|
||||
NULL,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user