[U-Boot] UMS - maintain connection

Hello All,
I am using ums (USB Mass Storage) in u-boot to expose the storage of my device into my host machine. Everything works okay except when the host machine wakeup from the sleep - my device got disconnect from host after it received an resume signal.
I tried the g_mass_storage driver in the kernel and it works fine. It never disconnect when the host machine goes to sleep and wake it up.
Does anyone have encountered the said issue?. How did you fix it?.
Regards,
John

Hi John Tobias,
Hello All,
I am using ums (USB Mass Storage) in u-boot to expose the storage of my device into my host machine. Everything works okay except when the host machine wakeup from the sleep - my device got disconnect from host after it received an resume signal.
I tried the g_mass_storage driver in the kernel and it works fine. It never disconnect when the host machine goes to sleep and wake it up.
Does anyone have encountered the said issue?.
Frankly speaking, I did not anticipate such test case.
You probably connect to your laptop, which may go sleep?
How did you fix it?.
(For now) no solution... I need to investigate this issue.
Regards,
John
Best regards, Łukasz Majewski

Hi Łukasz Majewski,
On Mon, Aug 15, 2016 at 6:17 AM, Lukasz Majewski l.majewski@majess.pl wrote:
Hi John Tobias,
Hello All,
I am using ums (USB Mass Storage) in u-boot to expose the storage of my device into my host machine. Everything works okay except when the host machine wakeup from the sleep - my device got disconnect from host after it received an resume signal.
I tried the g_mass_storage driver in the kernel and it works fine. It never disconnect when the host machine goes to sleep and wake it up.
Does anyone have encountered the said issue?.
Frankly speaking, I did not anticipate such test case.
You probably connect to your laptop, which may go sleep?
Yes, that is correct.
How did you fix it?.
(For now) no solution... I need to investigate this issue.
Btw, problem happened in iMX6 processor.
Regards,
John
Best regards, Łukasz Majewski

Hi Łukasz Majewski,
I got it working. I may submit a fix soon.
Regards,
John
On Mon, Aug 15, 2016 at 6:17 AM, Lukasz Majewski l.majewski@majess.pl wrote:
Hi John Tobias,
Hello All,
I am using ums (USB Mass Storage) in u-boot to expose the storage of my device into my host machine. Everything works okay except when the host machine wakeup from the sleep - my device got disconnect from host after it received an resume signal.
I tried the g_mass_storage driver in the kernel and it works fine. It never disconnect when the host machine goes to sleep and wake it up.
Does anyone have encountered the said issue?.
Frankly speaking, I did not anticipate such test case.
You probably connect to your laptop, which may go sleep?
How did you fix it?.
(For now) no solution... I need to investigate this issue.
Regards,
John
Best regards, Łukasz Majewski

Hi John,
On Wed, Aug 17, 2016 at 5:01 PM, John Tobias john.tobias.ph@gmail.com wrote:
Hi Łukasz Majewski,
I got it working. I may submit a fix soon.
Care to submit your fix?
Regards,
Fabio Estevam
participants (3)
-
Fabio Estevam
-
John Tobias
-
Lukasz Majewski