From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Sat, 08 Nov 2014 00:03:07 +0100 Subject: [U-Boot] [PATCH v2] test: ums: Add sleep before unmount directory In-Reply-To: <545D40E1.2030700@wwwdotorg.org> References: <1415269420-6528-1-git-send-email-l.majewski@samsung.com> <1415365555-9790-1-git-send-email-l.majewski@samsung.com> <20141107215404.3580138334A@gemini.denx.de> <545D40E1.2030700@wwwdotorg.org> Message-ID: <20141107230307.791553833CD@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Stephen, In message <545D40E1.2030700@wwwdotorg.org> you wrote: > > > My gut feeling is that there might be some USB driver error involved > > here. > > Where I've seen this is writing to an SD card in a USB-based SD card reader. > > I have a fairly regular amd64 machine running Ubuntu. I put the loop > above into my own scripts that mount an SD card, copy new data to it, > and then immediately unmount it for the same reason that Lukasz made > this patch; umount doesn't always unmount. I did this so long ago that I > don't recall which Ubuntu version I had at the time, nor the kernel > version. It was *probably* Ubuntu 10.04 or 12.10 though. Now I'm on > 14.04, but have no idea if I still need the loop since it's already in > place:-) But this is a bug. Papering over is not a good idea. It should be analyzed, reported, and finally fixed. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Our management frequently gets lost in thought. That's because it's unfamiliar territory.