USB interrupt check detection

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

USB interrupt check detection

ソリューションへジャンプ
1,565件の閲覧回数
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,473件の閲覧回数
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,517件の閲覧回数
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,489件の閲覧回数
ajita02
Contributor IV

Hi @Dhruvit ,

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

Regards,

Ajita

0 件の賞賛
返信
1,474件の閲覧回数
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,557件の閲覧回数
ajita02
Contributor IV

@Rita_Wang @asim_zaidi @weidong_sun @riteshmpatel 

Please provide a lead.

0 件の賞賛
返信