From: Martin K. Petersen Date: Tue, 18 Sep 2012 16:19:30 +0000 (-0400) Subject: [SCSI] Add a report opcode helper X-Git-Tag: v3.7-rc7~19^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c6bdaeab4fda6c9fdd5f3f5c610dea97bddf7d6;p=pandora-kernel.git [SCSI] Add a report opcode helper The REPORT SUPPORTED OPERATION CODES command can be used to query whether a given opcode is supported by a device. Add a helper function that allows us to look up commands. We only issue RSOC if the device reports compliance with SPC-3 or later. But to err on the side of caution we disable the command for ATA, FireWire and USB. Signed-off-by: Martin K. Petersen Acked-by: Mike Snitzer Signed-off-by: James Bottomley --- Reading git-diff-tree failed