usb: musb: dsps: Fix vbus vs tps65217-charger irq conflict
Subsystems (2)
PATCH 2/2 usb: musb: dsps: Fix vbus vs tps65217-charger irq conflict
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.
--- drivers/usb/musb/musb_dsps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/musb/musb_dsps.c +1 -1
@@ -851,7 +851,7 @@ static int dsps_setup_optional_vbus_irq(struct platform_device *pdev, error =devm_request_threaded_irq (glue->dev, glue->vbus_irq,NULL , dsps_vbus_threaded_irq, -IRQF_ONESHOT , +IRQF_SHARED ,"vbus" , glue);if (error) { glue->vbus_irq =0 ;
Signature · 1 line
2.34.1
Greg Kroah-Hartman
maintainerQuoted 26 lines · Grant B Adams
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 fromIRQF_ONESHOTtoIRQF_SHARED.Signed-off-by Grant B Adams <[email protected]>--- drivers/usb/musb/musb_dsps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/usb/musb/musb_dsps.c +1
-1@@ -851,7 +851,7 @@ static int dsps_setup_optional_vbus_irq(struct platform_device *pdev, error =devm_request_threaded_irq (glue->dev, glue->vbus_irq,NULL , dsps_vbus_threaded_irq, -IRQF_ONESHOT , +IRQF_SHARED ,"vbus" , glue);if (error) { glue->vbus_irq =0 ;Signature · 1 line
2.34.1
Why is the patch here talking about the tps65217-charger driver? That's totally independent.
Also, your patches are not threaded, how did you send them? Are they related in some way or not?
thanks,
greg k-h
Greg Kroah-Hartman
maintainerQuoted 43 lines · Grant Adams
Quoted 32 lines · Greg Kroah-Hartman
drivers/usb/musb/musb_dsps.c static int dsps_setup_optional_vbus_irq(struct
Quoted 15 lines · Grant B Adams
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 fromIRQF_ONESHOTtoIRQF_SHARED.Signed-off-by Grant B Adams <[email protected]>--- drivers/usb/musb/musb_dsps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/usb/musb/musb_dsps.c +0
-0@@ -851,7 +851,7 @@ static int dsps_setup_optional_vbus_irq(struct
platform_device*pdev,Quoted 11 lines
drivers/usb/musb/musb_dsps.c +1
-2error =devm_request_threaded_irq (glue->dev, glue->vbus_irq,NULL , dsps_vbus_threaded_irq, -IRQF_ONESHOT , +IRQF_SHARED ,"vbus" , glue);if (error) { glue->vbus_irq =0 ; --2.34.1
Why is the patch here talking about the tps65217-charger driver? That's totally independent.
Quoted 7 lines
Also, your patches are not threaded, how did you send them? Are they related in some way or not?
thanks,
greg k-h
Quoted 6 lines
Apologies Greg,
This is my first patch and did not know about creating email threads for multiple patches. I'll create an email thread for the patches and will provide
an overview and better context in [PATCH 0/2].
That would be great, be sure to number this a v2 patch series as the documentation asks for as well :)
good luck!
greg k-h