PORTS Forum

Ports and Interfaces => USB => Topic started by: aley on December 07, 2011, 06:05:24 pm

Title: Mode sense to enable cache
Post by: aley on December 07, 2011, 06:05:24 pm
Hi I am working on developing a USB device driver on a Blackfin I want windows write cache to be enabled for my device by default regardless of how it's set up in the windows registry, I know I can set the caching mode page however as soon as I do that windows sends a mode select command back trying to disable the write cache, is there anyway to stop this and make windows enable write cache for my device.

Thanks in advance.
Title: Re: Mode sense to enable cache
Post by: Jan Axelson on December 07, 2011, 10:03:18 pm
This might help:

http://blogs.msdn.com/b/winsdk/archive/2009/10/09/enable-or-disable-enable-write-caching-on-disk-behavior-on-disk.aspx

Every host the drive attaches to will need to run the code.

Jan