Author Topic: Mode sense to enable cache  (Read 9048 times)

aley

  • Member
  • ***
  • Posts: 1
Mode sense to enable cache
« 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.

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Mode sense to enable cache
« Reply #1 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