On Wed, 24 Sep 2014, Alan Stern wrote:

> > Case (6) is when Hi == Di, looking at my logs, I have:
> > 
> > 720 [  286.843965] SCSI CDB: 1a 00 3f 00 c0 00
> > 721 [  286.844000] g_mass_storage gadget: SCSI command: MODE SENSE(6); 
> > Dc=6, Di=192;  Hc=6, Hi=192
> > 722 [  286.844018] g_mass_storage gadget: bulk-in set halt
> > 723 [  286.844034] g_mass_storage gadget: sending command-failure status
> > 724 [  286.844045] g_mass_storage gadget:   sense data: SK x06, ASC x29, 
> > ASCQ x00;  info x0
> > 
> > Isn't it wrong to halt in this condition ?
> 
> No, it's correct.  SK = 6 and ASC = 0x29 means Unit Attention, Reset
> Occurred.  It occurs because this is the first command the gadget has
> received since starting up, which certainly is a form of reset.  In
> effect, this is how the device tells the host that it was just powered
> on.

Actually, looking at your log again, it seems more like this followed a 
genuine reset, not a power-on.  Regardless, it's still appropriate.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to