From: Roland Dreier Date: Tue, 14 Feb 2012 00:18:15 +0000 (-0800) Subject: target: Set peripheral device type consistently in INQUIRY response X-Git-Tag: v3.4-rc1~146^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=089461dda1770c10fea0b988ff74519a9be81d7e;p=pandora-kernel.git target: Set peripheral device type consistently in INQUIRY response Current code sets the peripheral device type to 0x3f == "not present unknown" for virtual LUN 0 for standard INQUIRY commands, but leaves it as 0 == "connected direct access block" for VPD INQUIRY commands. This is just because the check for LUN 0 only happens in some code paths. Make our peripheral device type consistent by moving the LUN 0 check into the common emulate_inquiry() code. Signed-off-by: Roland Dreier Cc: stable@vger.kernel.org Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed