On Sat, Jan 01, 2011 at 05:45:11PM +0100, roel kluin wrote:
You're right, but even this will basically always set the write flag,
since some bits will be set the same, even for reads. Eg:
#define READ_10 0x28
#define WRITE_10 0x2a
It should instead be:
That will of course miss other commands which do writes, such as UNMAP
and WRITE_32. So we should do it properly:
if (pcmd->sc_data_direction == DMA_TO_DEVICE)
arcmsr_cdb->Flags |= ARCMSR_CDB_FLAG_WRITE;
I don't have an Areca card to test with.
--
Matthew Wilcox Intel Open Source Technology Centre
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours. We can't possibly take such
a retrograde step."
--