aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorRoland Dreier <roland@purestorage.com>2011-12-13 14:55:33 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2012-01-25 17:25:00 -0800
commit06a23648ebbb532745eb85c1a381b83dd90e94af (patch)
tree49137b15bc60af0e9bb161f7f81f2d0815b688e9 /drivers/i2c
parent640bb6ec4ff89b0349d1c7cb42aa25db191b4f63 (diff)
downloadkernel_samsung_smdk4412-06a23648ebbb532745eb85c1a381b83dd90e94af.zip
kernel_samsung_smdk4412-06a23648ebbb532745eb85c1a381b83dd90e94af.tar.gz
kernel_samsung_smdk4412-06a23648ebbb532745eb85c1a381b83dd90e94af.tar.bz2
target: Set additional sense length field in sense data
commit 895f3022523361e9b383cf48f51feb1f7d5e7e53 upstream. The target code was not setting the additional sense length field in the sense data it returned, which meant that at least the Linux stack ignored the ASC/ASCQ fields. For example, without this patch, on a tcm_loop device: # sg_raw -v /dev/sda 2 0 0 0 0 0 gives cdb to send: 02 00 00 00 00 00 SCSI Status: Check Condition Sense Information: Fixed format, current; Sense key: Illegal Request Raw sense data (in hex): 70 00 05 00 00 00 00 00 while after the patch we correctly get the following (which matches what a regular disk returns): cdb to send: 02 00 00 00 00 00 SCSI Status: Check Condition Sense Information: Fixed format, current; Sense key: Illegal Request Additional sense: Invalid command operation code Raw sense data (in hex): 70 00 05 00 00 00 00 0a 00 00 00 00 20 00 00 00 00 00 Signed-off-by: Roland Dreier <roland@purestorage.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/i2c')
0 files changed, 0 insertions, 0 deletions