Commit efbf8628 authored by Velempati Chiranjeevi's avatar Velempati Chiranjeevi Committed by Colin Cross
Browse files

USB: android gadget: mass storage: Fix format issue for Vista Host



As part of formating the mass storage device, Host sends the INQUIRY
scsi command. As per the standard, the command length for this
command should be 6 bytes, whereas the Vista host sends 12 bytes.

When the command length of the command is not equal to the standard
length, the device sends a phase error as part of the status phase.
When the host receives a phase error, it re-enumerates, hence the
error.

If the command is INQUIRY, and the command length is 12 bytes,
treating this as a good command and not sending the phase error
to the host fixes this issue.

Signed-off-by: default avatarVelempati Chiranjeevi <c_cvelem@qualcomm.com>
Signed-off-by: default avatarMike Lockwood <lockwood@android.com>
parent 27d1890c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment