Author Topic: Mass Storage Write (10) hangs at very last EP OUT data transfer  (Read 22919 times)

Barry Twycross

  • Frequent Contributor
  • ****
  • Posts: 263
Re: Mass Storage Write (10) hangs at very last EP OUT data transfer
« Reply #30 on: April 09, 2015, 05:13:57 pm »
OK, I'm coding this part of the driver, and I have some questions.
What if I receive a START/STOP and LoEj is != 1 ? What kind of circumstance does this put me in? Can I just ignore LoEj and perform all logic based on START/STOP?
Loaded and started are really two separate state variables. The drive has to be loaded before it can be started. You can arbitrarily change the notion of loaded media, started should be more up to the host. This works better using loaded, I tried it with started and there are few corner cases which don't work out.

Quote
Also, if SCSI commands are sent that have a data stage, what is the correct step during STOP stage?? Send junk data that is the requested length followed by the CSW == 1 status?
I dont understand what you're asking.