Edward Tomasz Napierala
24ebf56636
Periph driver fixes, second try.
...
Reviewed by: scottl
Approved by: rwatson (mentor)
Sponsored by: FreeBSD Foundation
2008-12-19 14:31:40 +00:00
Edward Tomasz Napierala
1fa9ee7d60
Revert r186186 for now; it breaks stuff.
...
Approved by: rwatson (mentor)
2008-12-17 10:49:03 +00:00
Edward Tomasz Napierala
f5bc800067
Fix locking in periph drivers - don't try to unlock periph
...
that was already deallocated.
Reviewed by: scottl
Approved by: rwatson (mentor)
Sponsored by: FreeBSD Foundation
2008-12-16 17:01:52 +00:00
Scott Long
b574dd8dd1
Fix a locking mistake in daopen(). If the open fails, which can happen
...
because the media was removed, the periph would get its refcount dropped
and ultimately freed before getting unlocked. This created a dangling
pointer that was easy to trip over. This fixes a common source of
crashes with removaable media, but problems remain and will get tracked
down.
2008-08-29 04:39:46 +00:00
Remko Lodder
7a7ce8a36a
Add quirk for the Samsung YP-U3
...
PR: 125398
Submitted by: Tino Engel <goaengel at gmx dot net>
Approved by: imp (mentor, implicit)
MFC after: 1 week
2008-07-09 17:00:14 +00:00
Maxim Konovalov
d5b851f626
o Correct EasyMP3 EM732X usb 2.0 flash mp3 player revision:
...
it's 1.00 not 1.0.
PR: usb/96546
Submitted by: Eugene Grosbein
MFC after: 1 month
2008-01-12 19:24:55 +00:00
David Xu
f5ae94753b
Add quirks for Netac Onlydisk 2000 USB disk.
2007-12-11 06:41:38 +00:00
Warner Losh
3702980c1c
After talking with njl@, change this wildcard entry to be a bit less wild.
...
Approved by: re (blanket)
2007-07-01 17:42:07 +00:00
Warner Losh
73bbb79dd4
Quirk for ChipsBnk usb stick
...
Submitted by: Mark Andrews
PR: 103702
Approved by: re@ (blanket)
2007-06-30 14:44:09 +00:00
Warner Losh
cdbcad0542
Add quirk for JoyFly 128mb USB Flash Drive
...
submitted by: Toni Schmidbauer
PR: 96133
Approved by: re@ (blanket)
2007-06-30 14:41:30 +00:00
Warner Losh
dd7153acf3
quirk for I/O Magic USB flash drive "Giga Bank"
...
Submitted by: Jeff Anton
PR: 108810
Approved by: re@ (blanket)
2007-06-30 05:24:25 +00:00
Warner Losh
3693ebaeac
Samsung MP0402H quirk
...
Submitted by: Gipsy<wint3r@securimail.com>
PR: 108427
Approved by: re@ (blanket)
2007-06-30 05:21:18 +00:00
Warner Losh
c16d852cca
Add support for JNC MP3 Player
...
Submitted by: User & <dhenin@cypries.cyclopes.org>
PR: 94439
Approved by: re (blanket)
2007-06-30 05:03:03 +00:00
Warner Losh
6d30287972
Philips USB Key Audio KEY013
...
Submitted by: Arnoud Engelfriet
PR: 68412
Approved by: re (blanket)
2007-06-30 04:34:45 +00:00
Warner Losh
f8f10e94cf
Support for iRiver U10 USB connection
...
PR: 92306
Submitted by: Soren Dossing
Approved by: re (blanket)
2007-06-28 06:12:55 +00:00
Warner Losh
dcf43907af
Quirk for Denver MP3 player usb.
...
Submitted by: Ed Schouten
PR: 107101
Approved by: re (blanket for device supprot)
2007-06-28 04:51:19 +00:00
Scott Long
036472e3ee
Revert an accidental change from the previous rev.
2007-06-16 18:22:19 +00:00
Scott Long
d9fd6daad5
Work around the other uses of M_WAITOK.
2007-06-16 18:20:29 +00:00
Matt Jacob
b76f27d25b
Back out 1.212 at Nate's request in order to go through the
...
actual formal process he's trying to get established for quirks..
2007-05-29 20:04:01 +00:00
Matt Jacob
ca05119e8a
Use the Hitachi 2.5" HD, 120 GB as a USB device.
...
Submitted by: Joakim Bentholm`
MFC after: 3 days
2007-05-29 01:23:38 +00:00
Matt Jacob
1cd1670b48
Zero scsi_readcapacity allocations so we can really
...
tell if there has been data returned (for some broken
residual checking points).
MFC after: 3 days
2007-05-18 21:58:07 +00:00
Scott Long
85d92640f8
Add a helper function for registering async callbacks. Besides
...
eliminating a lot of duplicated code, this also fixes a locking edge case.
2007-05-16 16:54:23 +00:00
Scott Long
0dd50e9b5e
Eliminate the use of M_TEMP.
2007-05-14 21:48:53 +00:00
Scott Long
06b7b89f0d
Remove obsolete headers. Move kernel specific headers under #ifdefs
2007-04-23 18:01:44 +00:00
Scott Long
919c80dfc7
Fix a leaked lock in dashutdown.
2007-04-19 22:18:15 +00:00
Scott Long
545f17a3c8
Missed locking the dump and shutdown entry points in the scsi_da driver.
2007-04-18 05:14:16 +00:00
Scott Long
cd5c9285cd
Drop the periph/sim lock when calling disk_destroy().
2007-04-16 19:41:14 +00:00
Scott Long
2b83592fdc
Remove Giant from CAM. Drivers (SIMs) now register a mutex that CAM will
...
use to synchornize and protect all data objects that are used for that
SIM. Drivers that are not yet MPSAFE register Giant and operate as
usual. RIght now, no drivers are MPSAFE, though a few will be changed
in the coming week as this work settles down.
The driver API has changed, so all CAM drivers will need to be recompiled.
The userland API has not changed, so tools like camcontrol do not need to
be recompiled.
2007-04-15 08:49:19 +00:00
Nick Hibma
55fe33a350
Reduce the noise when plugging in (USB) mass storage devices, like a 4 port
...
flash card reader.
Also remove an 'Opened da0 -> <random number>' which is not needed on a daily
basis (available through bootverbose).
Reviewed by: phk, ken
MFC after: 1 week
2007-02-21 07:45:02 +00:00
Warner Losh
8bd73484dc
Use the more specific 'EM732X' designation rather than * to disable sync
...
cache commands, per request from njl@.
2007-01-23 17:29:31 +00:00
Warner Losh
d5f2a6f556
Add quirk for EasyMP3 EM732X usb 2.0 flash mp3 player.
...
(It appears that the quirk proceedures link has disappeared and that
this PR complied with it, if there's a problem, please contact me).
PR: usb/96546
2007-01-22 04:34:03 +00:00
Matt Jacob
f0d9af51a1
Add an xpt_print function to reduce most of the xpt_print_path/printf
...
pairs. Convert the core code to use it.
Reviewed by: scsi (various folks weighing in with good advice)
MFC after: 2 weeks
2006-12-05 07:45:28 +00:00
Maxim Konovalov
64d5b4fdad
o Style: remove a w/space before a comma.
2006-11-26 17:18:31 +00:00
Maxim Konovalov
b18f224062
o Style(9): trim eol w/spaces, w/spaces to tabs, kill an empty line.
2006-11-26 17:15:54 +00:00
Maxim Konovalov
a9622c854a
o Add a quirk for X-Micro Flash Disk.
...
PR: usb/96901
Submitted by: Szalai Andras
Reviewed by: nate (a half of year ago)
MFC after: 3 weeks
2006-11-26 17:13:24 +00:00
Matt Jacob
84d67ea566
Add a tunable that allows one to turn off the automatic sending of
...
the ORDERED tag. This recoups significant performance gains for many
arrays.
The default is still to send out the ORDERED tag periodically.
Reviewed by: scsi (justin+timeout)
2006-11-02 21:12:37 +00:00
Pawel Jakub Dawidek
9cd394ea96
Implement BIO_FLUSH handling for da(4), amr(4), ata(4) and ataraid(4).
...
Sponsored by: home.pl
2006-10-31 21:19:25 +00:00
Florent Thoumie
f2322e0f52
Add a SCSI da(4) quirk for Rekam USB Camera.
...
PR: usb/98713
Submitted by: Alex <goo@t72.ru>
MFC after: 3 days
2006-10-07 19:04:23 +00:00
Florent Thoumie
41d810c6f4
Add SCSI da(4) quirk for the iRiver H10.
...
PR: usb/102547
Submitted by: Sven Esbjerg <freebsd-pr@xbsd.net>
MFC after: 3 days
2006-10-07 18:28:55 +00:00
Matt Jacob
059cce1a75
Don't allow attachment of disks that could cause GEOM to panic.
2006-09-16 21:21:07 +00:00
Xin LI
232e7000f5
Drop Giant before returning in error path, thus eliminates
...
two mutex leaks.
Submitted by: Beyond Luo <fedora ercist iscas ac cn>
PR: kern/100046
Reviewed by: ken, scottl
2006-07-14 13:58:32 +00:00
Matt Jacob
9dcfabf816
Actually check to see if XPT_CALC_GEOMETRY had an error
...
and pick a bogus geometry if it had so we don't later
get a divide by zero trap.
2006-04-18 22:01:59 +00:00
Joerg Wunsch
d7dfbb6b44
Add reference to PR to TOSHIBA TransMemory quirk entry.
2006-03-18 21:13:14 +00:00
Florent Thoumie
f010421bda
- Add a PR number for future reference.
...
Approved by: njl
2006-03-18 18:28:13 +00:00
Joerg Wunsch
0f9f3dd16b
Add the TOSHIBA TransMemory USB sticks to the list of devices that
...
hate "Synchronize cache" commands.
MFC after: 1 day
2006-03-13 22:26:33 +00:00
Florent Thoumie
b308457205
- Add a scsi_da.c and a umass.c quirk for Genesys 6-in-1 Card Reader.
...
Reported by: anders on freebsd-usb@
Tested by: anders
Approved by: ssouhlal
MFC after: 3 days
2006-01-30 20:27:44 +00:00
Florent Thoumie
fa9d414d41
Add Product IDs :
...
- Sandisk Cruzer Micro 128MB [5]
- DANE-ELEC zMate 512MB USB flash drive [7]
- Attache 256MB USB 2.0 Flash Drive [8]
- Sandisk Cruzer Micro 256MB [9]
Add scsi_da.c quirks :
- Samsung USB key 128Mb [1]
- Kingston DataTraveler 2.0 [2]
- Creative MuVo Slim [3]
- United MP 5512 Portable MP3 Player [4]
- Sandisk Cruzer Micro 128MB [5], [9]
- PNY USB Flash keys [6], [7], [8]
Add umass.c quirks :
- Sandisk Cruzer Micro 128MB [5]
- DANE-ELEC zMate 512MB USB flash drive [7]
- Attache 256MB USB 2.0 Flash Drive [8]
- Sandisk Cruzer Micro 256MB [9]
PR: usb/90081 [1],
usb/89196 [2],
kern/86131 [3],
usb/80487 [4],
usb/75970 [5],
usb/75578 [6],
usb/72344 [7],
usb/65436 [8],
usb/70835 [9]
Submitted by: Henri-Pierre CHARLES <hpc@prism.uvsq.fr> [1],
Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua> [2],
Erich Rickheit KSC <rickheit-fbp@numachi.com> [3],
tnu@chania.di.uoa.gr [4],
Bram Abbekerk <bram@abbekerk.demon.nl> [5],
Thomas Pornin <pornin@bolet.org> [6],
parv <parv@pair.com> [7],
Peter D. Quilty <pdquilty@adelphia.net> [8],
Raymundo M. Vega <rvega@ms-smtp-03-eri0.socal.rr.com> [9]
Approved by: iedowse
MFC after: 3 days
2006-01-26 00:35:54 +00:00
Marcus Alves Grando
fa1d87f552
Allow to use Time DPA20B 1GB MP3 Player [1]
...
Allow to use Qware BeatZkey! Pro [2]
PR: usb/81846 [1], usb/79164 [2]
Submitted by: Ruben de Groot <rdg@bzerk.org> [1], Radek Kozlowski <radek@raadradd.com> [2]
Approved by: njl
MFC: 1 week
2006-01-13 11:33:40 +00:00
Pawel Jakub Dawidek
1236085a67
Style nit.
2005-12-19 03:43:48 +00:00
Pawel Jakub Dawidek
ef5d77f464
Allow to use TransFlash drive, which can be found in Motorola E398 Mobile Phone.
...
PR: usb/89889
Submitted by: Wojciech A. Koszek <dunstan@freebsd.czest.pl>
MFC after: 1 week
2005-12-19 03:27:28 +00:00