> -----Original Message-----
> From: Gregory Nutt [mailto:spudan...@gmail.com]
> Sent: Thursday, August 6, 2020 3:51 PM
> 
> Instead of a new new notification event, you would also use the USB host
> polling thread.  Look, for example at,
> boards/arm/imxrt/imxrt1060-evk/src/imxrt_usbhost.c.  The polling loop is
> the function ehci_waiter in this case.

Funny, I came to the same conclusion and integrated my usb automounter there. 
And it is working.
But: I haven't yet found a way to determine if I enumerated really a mass 
storage class device. So with only activating mass storage it seems rather 
clean, but if I have multiple class drivers active, it gets complicated.
Can you give a hint how to retrieve the type of driver bound to the currently 
enumerated device?

Johannes

Reply via email to