]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00217719 usb gadget msc may enumeration fail if msc storage response slow
authorTony LIU <junjie.liu@freescale.com>
Fri, 20 Jul 2012 01:51:17 +0000 (09:51 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:12:27 +0000 (14:12 +0200)
commit2083406734749da12df22750d574e3502bb237fa
tree97ee0c410ecc165ab1e55ed18b46279c260d9388
parenta24186241bc68571e4c6ceb9fcc82f6ca43f6b26
ENGR00217719 usb gadget msc may enumeration fail if msc storage response slow

- communication between the usb driver and msc class driver is using
  raise_exception/handle_excpetion, such mechaism can only have two
  events(exceptions) at most, one is on processing and another is store to be
  executed after the current one completed.
  If the first one processing is very slow, and the third one occur, then the
  second one will be overwriten by the third one and then the second event is
  lost and then enumeration failed
- since it is the linux community code, it is hard to change the whole frame
  work, currently only a work around is provided
- because this issue is brought in when the first reset event, when this
  event occur, a lun sync will happen and it will cost much time, but in fact
  this lun sync is not necessary for the first reset event, the work around
  is to skip this lun sync.

Signed-off-by: Tony LIU <junjie.liu@freescale.com>
drivers/usb/gadget/file_storage.c