Age | Commit message (Collapse) | Author |
|
something, then it MUST return zero on DVACT_ACTIVATE, not EOPNOTSUPP;
this very popular bug has been cut and pasted a lot of times...
ok deraadt@ mickey@
|
|
This should cure some rare stack overflows.
From augustss NetBSD
ok dlg@ pascoe@
|
|
ok dlg@
|
|
defined. Fixes Y-E DATA USB Floppy Drive that otherwise complains
about 'atapiscsi not configured'.
Should fix PR #4204 from Ben Hooper.
|
|
padded 12 byte commands mandated by the standard. Adapt the Linux data
length twiddling on certain commands. We used to have some of this in
a different form, curtesy of csapuntz@, but it got lost in subsequent
merges.
Fixes the USB card reader of Quentin Barnes who provided much testing
and feedback for over a year!
Tested by drahn@, ok marco@, 'this is good stuff' deraadt@.
|
|
seen at reboot time after writing to umass devices.
ok dlg@, testing markus@
|
|
timeout.
ok dlg@
|
|
ok dlg@
|
|
ok krw@
|
|
Mostly stylistic change, making comments and printf()s similar between BBB
and CBI.
ok krw@
|
|
do less work if we hit an error
ok krw@
|
|
Fix a printf() error.
ok krw@
|
|
When starting a bulk-only transfer, punt early if the device is going away.
ok krw@
|
|
Do the quirk initialization earlier.
ok krw@
|
|
On a Bulk-In data stall, make sure we copy back the data received, per the
spec. This is the real problem behind FORCE_SHORT_INQUIRY.
ok krw@
|
|
log message for umass 1.98, umass_scsipi.c 1.11, umassvar.h 1.21:
Fix several problems with CCI handling, and enable it: * We were never calling
the callback function when we got a UFI CCI(!). * We were passing a bogus
residual count on non-UFI CCIs. * After a REQUEST SENSE, the UFI CCI may
include the ASC/ASCQ from the sense information -- don't consider this a
failure.
In addition, remove a horrible hack that was causing us to drop sense
information on the floor and return empty INQUIRY responses, often in the
case where there is a UNIT ATTENTION pending during the INQUIRY. (Some drives
send the data and then fail, some don't.)
log message for umass.c 1.113:
Do not return STATUS_WIRE_FAILED in response to a CBI stall. This is perfectly
normal, and is used to report errors. Instead, use STATUS_CMD_FAILED, which
causes us to do a REQUEST SENSE. Should address PR 22960.
log message for umass.c 1.115:
Do not do a CBI reset before returning STATUS_CMD_FAILED. This causes any
sense information to be thrown away, and is therefore nonsensical.
ok krw@
|
|
log message:
Remove UMASS_QUIRK_NO_START_STOP and UMASS_QUIRK_NO_MAX_LUN.
We don't have UMASS_QUIRK_NO_START_STOP so I didn't have to remove it. I
consider umass_quirks.c to be too different so I hand removed references to
the removed defines. There are some useless entries in there now which will
be cleaned up after umass is merged with netbsd.
ok deraadt@
|
|
Well, this is bloody obscure...
My Imation USB FlashGO! adapter responds to a Get Max Lun request with a
stall. With uhci, this does the expected thing. With ohci, it was returning
a "data underrun" error because we weren't setting "buffer rounding" (i.e.
USBD_SHORT_XFER_OK), and the underrun was taking priority. This happened with
both the ohci in a Mac cube and the builtin ohci on the S3C2410.
So, set USBD_SHORT_XFER_OK on the Get Max Lun. Now I get a stall reported and
umass attaches correctly.
|
|
using sc->data_buffer (not sc->tranfer_data), in the actual data
transfer operations. From NetBSD PR #25676.
ok tdeval@ deraadt@
|
|
however, I did not apply the diff exactly. After hunting around I
found URLs for the missing files, and the ../index.html link appears
not to work. I replaced it with a more suitable link.
|
|
with our scsi layer
|
|
|
|
|
|
|
|
1) Correctly define MODE_SENSE_BIG as 0x5a, not 0x54.
2) Delete duplicate #define's of some opcodes in scsi_disk.h.
3) Delete multiple #define's for same opcode in scsi_disk.h.
4) Replace uses of deleted opcodes in umass.c with remaining ones.
ok millert@ tdeval@
|
|
Diff generated by Chris Kuethe.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Accessing the device via polling would cause a crash in the usb subsystem.
this change delays the media configuration using startuphooks, when
the system is fully up and running. This allows it to configure properly
and on macppc it is possible to use a umass device as root device.
Has little effect on other system, because they do not force USB configuration
during 'cold'. Tested by myself and brad@.
|
|
I'm going to guess that ATAPI and QIC157 devices also want 12-byte CDBs.
So, pad CDBs to be 12 bytes for ATAPI, QIC157, 8070i (as well as UFI devices)
Also, remove an overly paranoid check in BBB state machine which
actually violates the spec. This is half of getting Angelos' Olympus
camera to work. The other half involves a semi-violent rewrite of the
sd scsi driver to make it more tolerant.
|
|
|
|
quirky devices.
|
|
|
|
|
|
|
|
don't like that too much.
Now drive is detected correctly, even without floppy in it.
|
|
|
|
Tested with Y-E USB floppy.
|
|
supports more transport protocols (bulk-only and CBI), supports more command
sets (SCSI and ATAPI); from NetBSD. Not yet tested.
|
|
From NetBSD.
|