USB interrupt check detection

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

USB interrupt check detection

跳至解决方案
1,551 次查看
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 项奖励
回复
1 解答
1,459 次查看
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 项奖励
回复
4 回复数
1,503 次查看
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 项奖励
回复
1,475 次查看
ajita02
Contributor IV

Hi @Dhruvit ,

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

Regards,

Ajita

0 项奖励
回复
1,460 次查看
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 项奖励
回复
1,543 次查看
ajita02
Contributor IV

@Rita_Wang @asim_zaidi @weidong_sun @riteshmpatel 

Please provide a lead.

0 项奖励
回复