Skip to content

Commit

Permalink
power: supply: Fix tps65217-charger vs vbus irq conflict
Browse files Browse the repository at this point in the history
Enabling the tps65217-charger driver/module causes an interrupt conflict
with the vbus driver resulting in a probe failure.
The conflict is resolved by changing both driver's threaded interrupt
request function from IRQF_ONESHOT to IRQF_SHARED.

Signed-off-by: Grant B Adams <nemith592@gmail.com>
Reviewed-by: Tony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20230823085430.6610-2-nemith592@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Grant B Adams authored and Greg Kroah-Hartman committed Oct 2, 2023
1 parent 3865a64 commit ea17be9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/power/supply/tps65217_charger.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ static int tps65217_charger_probe(struct platform_device *pdev)
for (i = 0; i < NUM_CHARGER_IRQS; i++) {
ret = devm_request_threaded_irq(&pdev->dev, irq[i], NULL,
tps65217_charger_irq,
IRQF_ONESHOT, "tps65217-charger",
IRQF_SHARED, "tps65217-charger",
charger);
if (ret) {
dev_err(charger->dev,
Expand Down

0 comments on commit ea17be9

Please sign in to comment.