USB interrupt check detection

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

USB interrupt check detection

Jump to solution
1,548 Views
ajita02
Contributor IV

Hi all,

I am using IMX8MM platform as slave USB device. I want to implement parallel ISR on USB detection interrupt. When USB is connected with host, slave USB driver would have generated some software interrupt. I want to use that interrupt as indication to top user application using custom ISR on it. I can see below interrupt in `/proc/interrupt`.

` 58: 0 0 0 0 GICv3 72 Level 32e40000.usb` 

Please help me to achieve this.

 

Thanks,

Ajita

0 Kudos
Reply
1 Solution
1,456 Views
ajita02
Contributor IV

Hi @Dhruvit ,

I found a solution. `udevadm` is useful to get device driver's events. Just need to add a rule and run script when event occur. 

Thanks for your help.

Ajita

View solution in original post

0 Kudos
Reply
4 Replies
1,500 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @ajita02,

I hope you are doing well.

For the information related to the interrupt over USB detection, kindly refer to section 11.1.2.4 Interrupts from the reference manual IMX8MMRM
 
Please refer to the Interrupt Enable Register and USB Status register for more details.
 
Thanks & Regards,
Dhruvit Vasavada
0 Kudos
Reply
1,472 Views
ajita02
Contributor IV

Hi @Dhruvit ,

Thank you for your reply. I will take a look and update you.

Regards,

Ajita

0 Kudos
Reply
1,457 Views
ajita02
Contributor IV

Hi @Dhruvit ,

I found a solution. `udevadm` is useful to get device driver's events. Just need to add a rule and run script when event occur. 

Thanks for your help.

Ajita

0 Kudos
Reply
1,540 Views
ajita02
Contributor IV

@Rita_Wang @asim_zaidi @weidong_sun @riteshmpatel 

Please provide a lead.

0 Kudos
Reply