[PATCH] scsi: ten -> use_10_for_rw / use_10_for_ms
In the old days, ancient scsi devices understood 6-byte commands and more recent ones also understood 10-byte commands. Thus, we had a "ten" flag indicating that 10-byte commands worked. These days, especially for usb-storage devices, the opposite sometimes holds - 10-byte commands are supported, but 6-byte commands are not. The patch below changes the field ten into the pair of fields use_10_for_rw, use_10_for_ms set initially when the driver thinks these are supported. Ifthe device returns ILLEGAL_REQUEST they are cleared. This patch obsoletes a large amount of code in usb-storage, and not only that, once the subsequent patch removes all this usb-storage code many devices will work that hang today. Andries
Showing
Please register or sign in to comment