Re: USB host mass storage class automount.

2020-08-07 Thread Schock, Johannes - NIVUS GmbH
> ... and shows a > profound lack of understanding of the OS architecture. > Thanks a lot, but what do you think why I'm asking questions? Would you please review PR #1531? I added a new USB mass storage class notifier. Johannes

Re: USB host mass storage class automount.

2020-08-06 Thread Gregory Nutt
Would it be acceptable that the automount handler is called from usbhost_storage.c, from a modularity point of view? Because that way it would be only a notification towards the work queue, using a mechanism that is already in place. I don't like the idea to have another kthread that does onl

Re: USB host mass storage class automount.

2020-08-06 Thread Gregory Nutt
Would it be acceptable that the automount handler is called from usbhost_storage.c, from a modularity point of view? Because that way it would be only a notification towards the work queue, using a mechanism that is already in place. I don't like the idea to have another kthread that does onl

Re: USB host mass storage class automount.

2020-08-06 Thread Schock, Johannes - NIVUS GmbH
Would it be acceptable that the automount handler is called from usbhost_storage.c, from a modularity point of view? Because that way it would be only a notification towards the work queue, using a mechanism that is already in place. I don't like the idea to have another kthread that does only wa

Re: USB host mass storage class automount.

2020-08-06 Thread Gregory Nutt
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 cur

Re: USB host mass storage class automount.

2020-08-06 Thread Schock, Johannes - NIVUS GmbH
> -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 p

Re: USB host mass storage class automount.

2020-08-06 Thread Gregory Nutt
just a short question: I'd like to have my USB stick attached to USB high speed host automounted as vfat. Would it be acceptable to call mount/umount directly in the usbhost_storage.c where the blockdriver is registered/unregistered? For sure switchable with Kconfig options. I tried to setup a

Re: USB host mass storage class automount.

2020-08-06 Thread Alan Carvalho de Assis
Hi Johannes, You cannot do it because it will not work for KERNEL and PROTECTED mode. We need to create a hotplug/udev for NuttX (just joking)... Well, you can use some signal to notify mount/umount that the USB Thumb driver was inserted/removed. BR, Alan On 8/6/20, Schock, Johannes - NIVUS Gm

USB host mass storage class automount.

2020-08-06 Thread Schock, Johannes - NIVUS GmbH
Hello, just a short question: I'd like to have my USB stick attached to USB high speed host automounted as vfat. Would it be acceptable to call mount/umount directly in the usbhost_storage.c where the blockdriver is registered/unregistered? For sure switchable with Kconfig options. I tried to set