]> git.hungrycats.org Git - linux/log
linux
22 years ago[PATCH] USB: don't send any MODE SENSE commands to usb mass storage devices
Matthew Dharm [Fri, 12 Dec 2003 01:35:24 +0000 (17:35 -0800)]
[PATCH] USB: don't send any MODE SENSE commands to usb mass storage devices

This patch basically eliminates the use of MODE_SENSE or MODE_SENSE_10 for
direct-access USB storage devices.  That $&%*! command has caused us more
trouble than all the others combined, and after more than a year we still
don't have a good way of handling/using them.

I constantly get complaints about devices which don't work because of the
way 2.5/6 uses MODE_SENSE and MODE_SENSE_10 -- this patch will greatly
increase compatiblity with devices.  As with the patch to limit transfer
sizes, I'd like to see this applied as soon as possible.

Matt

> ----- Forwarded message from Patrick Mansfield <patmans@us.ibm.com> -----
>
> Date: Thu, 20 Nov 2003 08:28:27 -0800
> From: Patrick Mansfield <patmans@us.ibm.com>
> Subject: [PATCH] don't send any MODE SENSE commands to usb mass storage devices
> To: mdharm-scsi@one-eyed-alien.net

Matthew -

Is this patch in your queue? I don't see it in Linus' tree yet.

Don't send any MODE SENSE commands to usb mass storage devices.

22 years ago[PATCH] USB storage: Unusual_devs.h addition
Alan Stern [Thu, 11 Dec 2003 09:37:17 +0000 (01:37 -0800)]
[PATCH] USB storage: Unusual_devs.h addition

This patch adds to unusual_devs.h an entry reported by Andries Brouwer and
it moves another entry to the correct position in the numerical ordering.

22 years ago[PATCH] USB storage: Medion 6047 Digital Camera
Davide Andrian [Thu, 11 Dec 2003 09:33:53 +0000 (01:33 -0800)]
[PATCH] USB storage: Medion 6047 Digital Camera

...a patch for the "Medion 6047 Digital Camera"

*** a/drivers/usb/storage/unusual_devs.h Sun Nov 23 22:31:51 2003

22 years ago[PATCH] USB storage: Minolta Dimage S414 usb patch
Martin Berentsen [Thu, 11 Dec 2003 09:07:51 +0000 (01:07 -0800)]
[PATCH] USB storage: Minolta Dimage S414 usb patch

here I submitt you the vendor/id patch for the
Minolta Dimage S414 Camera,
which runs fine with the usb under linux.

cat /proc/bus/usb/device ->

22 years ago[PATCH] USB storage: Another unusual_devs.h update
Alan Stern [Thu, 11 Dec 2003 09:06:32 +0000 (01:06 -0800)]
[PATCH] USB storage: Another unusual_devs.h update

On Thu, 20 Nov 2003, Stefan J. Betz wrote:

> Hello People,
>
> i have some Mitsumi USB Floppy Drive with the following Data:
> Manufactur: Mitsumi
> Typ       : D353FUE
>
> When i plug this Device into my Linux Box (Kernel 2.6.0-test9), i get
> the following messages in my Syslog:
>
> Nov 20 22:17:57 mobileone kernel: hub 1-0:1.0: new USB device on port 1, assigned address 2
> Nov 20 22:17:57 mobileone kernel: usb-storage: This device (03ee,6901,0100 S 04 P 00) has unneeded SubClass and Protocol entries in unusual_devs.h
> Nov 20 22:17:57 mobileone kernel:    Please send a copy of this message to <linux-usb-devel@lists.sourceforge.net>
> Nov 20 22:17:57 mobileone kernel: scsi2 : SCSI emulation for USB Mass Storage devices
> Nov 20 22:17:57 mobileone kernel:   Vendor: MITSUMI   Model: USB FDD           Rev: 1039
> Nov 20 22:17:57 mobileone kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
> Nov 20 22:17:57 mobileone kernel: Attached scsi generic sg2 at scsi2, channel 0, id 0, lun 0,  type 0

> I that is enough information to Support that drive (or how can i use ist
> today?)
>
> Greeting Betz Stefan

Thank you for sending this in.  The usb-storage driver will be updated
sometime after 2.6.0-final is released.

Alan Stern

22 years ago[PATCH] USB storage: patch for unusual_devs.h
Alexander Oltu [Thu, 11 Dec 2003 08:35:03 +0000 (00:35 -0800)]
[PATCH] USB storage: patch for unusual_devs.h

I send a patch and copy of /proc/bus/usb/devices for my 5`25 external
USB enclosure. I don't know exactly manufacturer of this device, but
model is CD-509.
It will be nice if it helps somebody else.

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc= 93/900 us (10%), #Int=  1, #Iso=  0
D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 0.00
S:  Product=USB UHCI Root Hub
S:  SerialNumber=14a0
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=255ms
T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=1.5 MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=045e ProdID=0040 Rev= 3.00
S:  Manufacturer=Microsoft
S:  Product=Microsoft 3-Button Mouse with IntelliEye(TM)
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=02 Driver=usbmouse
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=10ms
T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#= 15 Spd=12  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=05e3 ProdID=0701 Rev= 0.02
S:  Product=USB TO IDE
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 96mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms

22 years ago[PATCH] USB Storage: freecom dvd-rw fx-50 usb-ide patch
Herbert Xu [Thu, 11 Dec 2003 08:25:56 +0000 (00:25 -0800)]
[PATCH] USB Storage: freecom dvd-rw fx-50 usb-ide patch

22 years ago[PATCH] USB storage: unusual_devs.h entry revision
Alan Stern [Thu, 11 Dec 2003 08:24:48 +0000 (00:24 -0800)]
[PATCH] USB storage: unusual_devs.h entry revision

Here is another update for unusual_devs.h in both 2.6 and 2.4.  No
urgency.

On Wed, 12 Nov 2003, Aris Basic wrote:

> Device Sony Memory Stick Reader MSAC-US1
> usb-storage: This device (054c,002d,0100 S 04 P 01) has unneeded SubClass and Protocol entries in unusual_devs.h
>    Please send a copy of this message to <linux-usb-devel@lists.sourceforge.net>

Thanks for sending this in.

22 years ago[PATCH] USB storage: add unusual storage device entry for Minolta DiMAGE
Martin Pool [Thu, 11 Dec 2003 03:55:55 +0000 (19:55 -0800)]
[PATCH] USB storage: add unusual storage device entry for Minolta DiMAGE

Yes, it seems to work OK on the 7i with this updated patch.  I don't
have a 7 or 7Hi to try, but everything on the web seems to say the USB
firmware works the same way.

22 years ago[PATCH] USB storage: patch for Kyocera S5 camera
Stephane Galles [Thu, 11 Dec 2003 03:51:43 +0000 (19:51 -0800)]
[PATCH] USB storage: patch for Kyocera S5 camera

I've seen some entries in 2.4.22 and 2.6.0 unusual_devs.h
for Kyocera Finecam S3 et S4 cameras and I own a Finecam S5
that does not work out of the box either
(here is the beast : http://www.yashica.com/digital/finecams5/finecams5.html)

so I found the unusual_devs.h entry and submitted it some month
ago at http://www.qbik.ch/usb/devices/showdev.php?id=1626
for the 2.4 kernels

I thought It would be nice to have the whole Finecam family
in Unusual_devs.h for 2.6.0

The patch for the 2.6.0-test9 is attached with this mail

It differs from the entry I submitted at www.qbik.ch
as I used the new SC/PR_DEVICE flags and got rid of the
IGNORE_SER flag from 2.4

Do you want a patch for 2.4 too ? If so, I should test my
old 2.4 entry with the lastest 2.4 Kernels, coz on a daily
basis I use a 2.4.20, which is rather old. Moreover, I could
used the SC/PR_DEVICE flags too for 2.4.22 (keeping the IGNORE_SER flag
though)

By the way, several entries with the running patch :

/proc/bus/usb/devices :

T:  Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0482 ProdID=0103 Rev= 1.00
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  2mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
I:  If#= 0 Alt= 1 #EPs= 3 Cls=ff(vend.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=83(I) Atr=03(Int.) MxPS=   8 Ivl=32ms

22 years ago[PATCH] USB storage: patch for Fujifilm EX-20
Fabrizio Fellini [Thu, 11 Dec 2003 03:48:40 +0000 (19:48 -0800)]
[PATCH] USB storage: patch for Fujifilm EX-20

22 years ago[PATCH] USB storage: Make Pentax Optio S4 work
Per Winkvist [Thu, 11 Dec 2003 03:43:15 +0000 (19:43 -0800)]
[PATCH] USB storage: Make Pentax Optio S4 work

The change below is needed to get the S4 camera working.
Tested with both Optio S/S4

22 years ago[PATCH] USB: usb_hcd_unlink_urb() test for list membership
David Brownell [Tue, 9 Dec 2003 10:05:06 +0000 (02:05 -0800)]
[PATCH] USB: usb_hcd_unlink_urb() test for list membership

This is a minor cleanup that replaces a test for non-null urb->hcpriv
with "is the urb on this list".  HCDs don't need to use hcpriv in that
way, and in general this is a safer way to test that.  (AIO does much
the same thing in its kiocb cancelation paths.)

22 years ago[PATCH] USB: sleeping problems in cyberjack driver
Oliver Neukum [Tue, 9 Dec 2003 09:48:19 +0000 (01:48 -0800)]
[PATCH] USB: sleeping problems in cyberjack driver

this driver has locking problems. Here's the first round of fixes
for the obvious cases.

- it makes clear differences between completion handlers and task context
- it fixes cases of sleeping in interrupt

22 years ago[PATCH] USB storage: remove the raw_bulk.c and raw_bulk.h files as they are no longer...
Greg Kroah-Hartman [Tue, 9 Dec 2003 04:10:22 +0000 (20:10 -0800)]
[PATCH] USB storage: remove the raw_bulk.c and raw_bulk.h files as they are no longer needed.

22 years ago[PATCH] USB storage: Add comments explaining new s-g usage
Alan Stern [Tue, 9 Dec 2003 03:48:52 +0000 (19:48 -0800)]
[PATCH] USB storage: Add comments explaining new s-g usage

On Sun, 30 Nov 2003, Matthew Dharm wrote:
> I'm going to pass this one along to Greg, but I think some places in this
> could really use some better comments.  Especially the way you use a single
> buffer inside the loop -- it took me a few minutes to figure out how your
> logic to refresh the buffer with new data worked.
>
> I'm also wondering if the access_xfer_buf() function could use some more
> header comments, stating why this is needed (i.e. spelling out the
> kmap()-isms).

Okay, here it is.  This patch basically just adds comments.  Each routine
that uses the new scatter-gather function gets a brief explanation of
what's going on, and access_xfer_buf() itself gets detailed comments
saying what it's doing and why it's necessary.  You may even want to cut
some of it back; I was pretty verbose.

22 years ago[PATCH] USB storage: Remove unneeded raw_bulk.[ch] files, change Makefile
Alan Stern [Tue, 9 Dec 2003 03:47:26 +0000 (19:47 -0800)]
[PATCH] USB storage: Remove unneeded raw_bulk.[ch] files, change Makefile

As a result of the last round of changes, the raw_bulk source files aren't
needed any more.  They can be deleted and the Makefile changed
accordingly.

22 years ago[PATCH] USB storage: Convert sddr55 to use the new s-g routines
Alan Stern [Tue, 9 Dec 2003 03:46:03 +0000 (19:46 -0800)]
[PATCH] USB storage: Convert sddr55 to use the new s-g routines

This patch changes the sddr55 driver to make it use the new scatter-gather
routines.  It has not been tested, but perhaps Andries Brouwer will be
able to try it out.

22 years ago[PATCH] USB storage: Update scatter-gather handling in the shuttle-usbat
Alan Stern [Tue, 9 Dec 2003 03:44:56 +0000 (19:44 -0800)]
[PATCH] USB storage: Update scatter-gather handling in the shuttle-usbat

This patch updates the shuttle_usbat driver to use the new scatter-gather
transfer routines.  The small set of changes needed speaks well for the
original organization of the code.

This has not been tested.

22 years ago[PATCH] USB storage: Update scatter-gather handling in the isd200 driver
Alan Stern [Tue, 9 Dec 2003 03:43:57 +0000 (19:43 -0800)]
[PATCH] USB storage: Update scatter-gather handling in the isd200 driver

This patch fixes the scatter-gather handling in isd200, replacing an
incorrect routine there with calls to the new routine added in the
previous patch.  It also removes a couple of places where the driver
returned data for commands that shouldn't get any (TEST-UNIT-READY and
START-STOP).

This has not been tested.

22 years ago[PATCH] USB storage: Another utility scatter-gather routine
Alan Stern [Tue, 9 Dec 2003 03:43:14 +0000 (19:43 -0800)]
[PATCH] USB storage: Another utility scatter-gather routine

This patch adds a small utility routine for storing data in a transfer
buffer.  The next patch uses this routine quite a bit in the isd200
driver.

22 years ago[PATCH] USB storage: Convert jumpshot to use the new s-g routines
Alan Stern [Tue, 9 Dec 2003 03:42:45 +0000 (19:42 -0800)]
[PATCH] USB storage: Convert jumpshot to use the new s-g routines

This patch converts the jumpshot driver to use the new scatter-gather
routines.  It has not been tested.

22 years ago[PATCH] USB storage: Convert datafab to use the new s-g routines
Alan Stern [Tue, 9 Dec 2003 03:42:16 +0000 (19:42 -0800)]
[PATCH] USB storage: Convert datafab to use the new s-g routines

This patch updates the datafab driver to the new scatter-gather handling,
which makes it safe for systems with >1GByte of memory.
It has been tested by Eduard Hasenleithner.

22 years ago[PATCH] USB: fix up compiler warning in usblp driver caused by previous patches.
Greg Kroah-Hartman [Tue, 9 Dec 2003 01:54:51 +0000 (17:54 -0800)]
[PATCH] USB: fix up compiler warning in usblp driver caused by previous patches.

22 years ago[PATCH] USB: further cleanup in usblp
Oliver Neukum [Tue, 9 Dec 2003 01:53:57 +0000 (17:53 -0800)]
[PATCH] USB: further cleanup in usblp

somebody built his own version of be16_to_cpu(). Such things affect
maintainability.

22 years ago[PATCH] USB: fix error return codes in usblp
Oliver Neukum [Tue, 9 Dec 2003 01:53:21 +0000 (17:53 -0800)]
[PATCH] USB: fix error return codes in usblp

this fixes the questionable error return codes Paulo noticed
in usblp. I hope I really got all cases now.

22 years ago[PATCH] USB storage: Change sddr09 to use the new s-g access routine
Alan Stern [Mon, 8 Dec 2003 09:45:52 +0000 (01:45 -0800)]
[PATCH] USB storage: Change sddr09 to use the new s-g access routine

This patch updates the sddr09 driver to use the new scatter-gather access
routine.  After installing it, the user who experienced memory access
violations says everything is now working properly.

22 years ago[PATCH] USB storage: Fix scatter-gather buffer access in usb-storage core
Alan Stern [Mon, 8 Dec 2003 09:45:21 +0000 (01:45 -0800)]
[PATCH] USB storage: Fix scatter-gather buffer access in usb-storage core

This patch adds a routine to protocol.c that correctly transfers data to
or from a scatter-gather buffer.  According to Jens Axboe, we've been
using page_address() incorrectly -- it's necessary to use kmap() instead
-- and in fact it doesn't give the desired result when the buffers are
located in high memory.  This could affect anyone using a system with 1 GB
or more of RAM, and one user has already reported such a problem (as you
know).

The three fixup routines in protocol.c and usb.c have been changed to use
the new s-g access routine.  When similar adjustments have been made to
all the subdrivers, we will be able to eliminate the raw_bulk.c source
file entirely.

22 years ago[PATCH] USB storage: Remove dead code from debug.c
Alan Stern [Mon, 8 Dec 2003 09:45:04 +0000 (01:45 -0800)]
[PATCH] USB storage: Remove dead code from debug.c

This patch removes an uncalled subroutine from debug.c.  I only noticed it
when tracking down scatter-gather usage; there didn't seem to be any
reason to repair it since it wasn't being used anywhere.

22 years ago[PATCH] USB storage: Enhance sddr09 to work with 64 MB SmartMedia cards
Alan Stern [Mon, 8 Dec 2003 09:44:49 +0000 (01:44 -0800)]
[PATCH] USB storage: Enhance sddr09 to work with 64 MB SmartMedia cards

This patch was written by Andries Brouwer.  It adds to sddr09 the ability
to use 64 MB SmartMedia cards.  I have added a few minor alterations to
make it fit in with my sequence of other patches.

22 years ago[PATCH] USB storage: Remove unneeded scatter-gather operations in sddr09
Alan Stern [Mon, 8 Dec 2003 09:44:31 +0000 (01:44 -0800)]
[PATCH] USB storage: Remove unneeded scatter-gather operations in sddr09

This patch removes some unnecessary scatter-gather code from the sddr09
driver.  In its place a single smaller buffer is re-used each time through
an I/O loop, as opposed to transferring all the data at once.

Andries Brouwer kindly tested this and suggested some improvements to get
it working right.

22 years ago[PATCH] USB scanner driver: new device ids
Henning Meier-Geinitz [Mon, 8 Dec 2003 09:25:34 +0000 (01:25 -0800)]
[PATCH] USB scanner driver: new device ids

Added vendor/product ids for Epson, Genius, Microtek, Plustek,
Reflecta, and Visioneer scanners. Removed ids for HP PSC devices as
these are supported by the hpoj userspace driver.

22 years ago[PATCH] USB: Fix khubd synchronization
Alan Stern [Mon, 8 Dec 2003 09:08:03 +0000 (01:08 -0800)]
[PATCH] USB: Fix khubd synchronization

It improves synchronization with hub_irq() and guarantees that the hub
disconnect() routine doesn't exit until the URB's completion routine has
finished.

22 years ago[PATCH] USB: khubd optimization
Alan Stern [Mon, 8 Dec 2003 08:54:38 +0000 (00:54 -0800)]
[PATCH] USB: khubd optimization

It changes spin_lock_save() to spin_lock() within the completion routine
and list_del()/INIT_LIST_HEAD() to list_del_init().  It's nothing more
than a minor optimization.

22 years ago[PATCH] USB: ohci, fix iso "bad entry" bug + misc
David Brownell [Fri, 5 Dec 2003 03:14:07 +0000 (19:14 -0800)]
[PATCH] USB: ohci, fix iso "bad entry" bug + misc

A while back there were some reports of ohci reporting a "bad entry"
diagnostic, mostly with ISO transfers, which were mysterious until
I recently found an easy way to reproduce it.

This patch:

  - Fixes at least one cause of that "bad entry" diagnostic by
    waiting for INTR_WDH before completing ED unlink processing.
    (Else URB unlinking could free TDs on the donelist, so the
    WDH processing would see those entries as "bad".)

  - Merges the patch from Darwin Rambo <drambo@broadcom.com>,
    coping with CPUs that can't do 16 bit accesses (MIPS).

  - Renames a function as start_ed_unlink(), matching its role.

  - Fixes minor debug output issues, including a FIXME to tell
    more info about TDs on the periodic schedule.  And adding
    some missing newlines (makes this patch seem big).

Nobody's complained much about that "bad entry" issue lately, but
if necessary that part would be particularly easy to split out.

Please merge to the next kernel that gets USB patches.

22 years ago[PATCH] USB storage: Fix logic error in raw_bulk.c:us_copy_to_sgbuf()
Alan Stern [Fri, 5 Dec 2003 03:07:06 +0000 (19:07 -0800)]
[PATCH] USB storage: Fix logic error in raw_bulk.c:us_copy_to_sgbuf()

This patch fixes a simple logic error in the routine that copies data from
a driver buffer to a scatter-gather user buffer.

22 years ago[PATCH] USB storage: Issue CBI clear_halt and fix BBB residue
Alan Stern [Fri, 5 Dec 2003 03:06:53 +0000 (19:06 -0800)]
[PATCH] USB storage: Issue CBI clear_halt and fix BBB residue

This patch does 2 things (bad, I know -- but they're both pretty small
and pretty obscure).

The CBI specification states in section 2.4.3.1.3 that

... the host shall also issue Clear Feature for Endpoint Halt
to the Bulk In pipe if the device reports that the Data In
command block has Failed.

along with a note in section 2.5.3 that Data Out commands should work
analogously.  This patch does that, along with cleaning up the status
detection logic a little.

For Bulk-only transfers we currently ignore the dResidue field in the CSW,
except for reporting it (without byte-swapping!) in a debug message.  The
patch uses it to compute the residue value returned to the SCSI layer.
Note that the Bulk-only spec allows devices to transfer more data than
they actually use (i.e., they may add padding or ignore stuff) and then
inform the host of this by means of the dResidue value.  The logic used is
simple: our reported residue is the larger of what the device claims and
what we didn't transfer, except that it can't be larger than the total
transfer length.

22 years ago[PATCH] USB storage: Command failure codes for sddr09 driver
Alan Stern [Fri, 5 Dec 2003 03:06:34 +0000 (19:06 -0800)]
[PATCH] USB storage: Command failure codes for sddr09 driver

This patch updates the sdd09 subdriver to make it return Command Failure
with appropriate sense data (rather than Tranport Error) when:

a MODE-SENSE command requests an unsupported page;

a CDB includes an unrecognized command code.

This should help prevent confusion and excessive retrying by the SCSI
drivers.

22 years ago[PATCH] USB: add TIOCMIWAIT support to pl2303 driver
Ahmon Dancy [Fri, 5 Dec 2003 02:58:30 +0000 (18:58 -0800)]
[PATCH] USB: add TIOCMIWAIT support to pl2303 driver

22 years ago[PATCH] USB: fix comment in usblp
Pete Zaitcev [Thu, 4 Dec 2003 07:14:51 +0000 (23:14 -0800)]
[PATCH] USB: fix comment in usblp

I know Linus is not taking cleanups at this point, but perhaps
you can delete it in your tree. Seems like someone (Oliver?)
fixed all the garbage in old printer.c, so the comment is not
needed anymore.

I reviewed changes, and usblp.c looks correct. I'm doing backport
to 2.4 for Fedora right now.

22 years ago[PATCH] USB: change cdc-acm to do RX URB processing in a tasklet
David Brownell [Thu, 4 Dec 2003 07:11:34 +0000 (23:11 -0800)]
[PATCH] USB: change cdc-acm to do RX URB processing in a tasklet

Just for cdc-acm, it pushes RX URB processing into a tasklet;
and has minor cleanups.

I cc'd Vojtech since he's this driver's maintainer.  If this
checks out, usb-serial will need similar changes.

p.s. the issue is a WARN_ON that tells us:

   >> [<c012046c>] local_bh_enable+0x8c/0x90
   >> [<f8991452>] ppp_asynctty_receive+0x62/0xb0 [ppp_async]
   >> [<c02144f3>] flush_to_ldisc+0xa3/0x120
   >> [<f891f20f>] acm_read_bulk+0xbf/0x140 [cdc_acm]
   >> [<c02684c9>] usb_hcd_giveback_urb+0x29/0x50
   >> [<c027670c>] dl_done_list+0x11c/0x130
   >> [<c0277075>] ohci_irq+0x85/0x170
   >> [<c0268526>] usb_hcd_irq+0x36/0x60
   >> [<c010aeba>] handle_IRQ_event+0x3a/0x70
   >> [<c010b227>] do_IRQ+0x97/0x140
   >> [<c0109624>] common_interrupt+0x18/0x20

22 years agoMerge bk://linuxusb@linuxusb.bkbits.net/usb-devel-2.6
Greg Kroah-Hartman [Thu, 4 Dec 2003 07:00:41 +0000 (23:00 -0800)]
Merge bk://linuxusb@linuxusb.bkbits.net/usb-devel-2.6
into kroah.com:/home/greg/linux/BK/usb-new_drivers-2.6

22 years agoMerge kroah.com:/home/greg/linux/BK/bleed-2.5
Greg Kroah-Hartman [Wed, 3 Dec 2003 07:59:19 +0000 (23:59 -0800)]
Merge kroah.com:/home/greg/linux/BK/bleed-2.5
into kroah.com:/home/greg/linux/BK/usb-new_drivers-2.6

22 years agoMerge master.kernel.org:/home/davem/BK/net-2.5
Linus Torvalds [Wed, 3 Dec 2003 05:36:08 +0000 (21:36 -0800)]
Merge master.kernel.org:/home/davem/BK/net-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

22 years ago[PATCH] Fix /proc access to dead thread group list oops
Ingo Molnar [Wed, 3 Dec 2003 04:59:12 +0000 (20:59 -0800)]
[PATCH] Fix /proc access to dead thread group list oops

The pid_alive() check within the loop is incorrect.  If we are within
the tasklist lock and the thread group leader is valid then the thread
chain will be fully intact.

Instead, the check should be _outside_ the loop, since if the group
leader no longer exists, the whole list is gone and we must not try
to access it.

Move the check around, and add comment.

Bug-hunting and fix by Srivatsa Vaddagiri

22 years ago[RTNETLINK]: Add RTPROT_XORP.
Pavlin Radoslavov [Wed, 3 Dec 2003 03:57:38 +0000 (19:57 -0800)]
[RTNETLINK]: Add RTPROT_XORP.

22 years ago[NETFILTER]: Sanitize ip_ct_tcp_timeout_close_wait value, from 2.4.x
Harald Welte [Wed, 3 Dec 2003 03:57:05 +0000 (19:57 -0800)]
[NETFILTER]: Sanitize ip_ct_tcp_timeout_close_wait value, from 2.4.x

22 years ago[IPV6]: Fix ipv4 mapped address calculation in udpv6_sendmsg().
Hideaki Yoshifuji [Wed, 3 Dec 2003 03:56:26 +0000 (19:56 -0800)]
[IPV6]: Fix ipv4 mapped address calculation in udpv6_sendmsg().

22 years agoFix ide-scsi.c uninitialized variable
Linus Torvalds [Tue, 2 Dec 2003 11:04:01 +0000 (03:04 -0800)]
Fix ide-scsi.c uninitialized variable

22 years agoFix x86 kernel page fault error codes
Linus Torvalds [Tue, 2 Dec 2003 10:41:48 +0000 (02:41 -0800)]
Fix x86 kernel page fault error codes

22 years ago[PATCH] Fix lost wakeups problem
Ingo Molnar [Mon, 1 Dec 2003 08:51:30 +0000 (00:51 -0800)]
[PATCH] Fix lost wakeups problem

When doing sync wakeups we must not skip the notification of other cpus
if the task is not on this runqueue.

22 years ago[PATCH] Missing initialization of /proc/net/tcp seq_file
Hirofumi Ogawa [Mon, 1 Dec 2003 02:40:47 +0000 (18:40 -0800)]
[PATCH] Missing initialization of /proc/net/tcp seq_file

We need to initialize st->state in tcp_seq_start().  Otherwise
tcp_seq_stop() is run with previous st->state, and it calls the unneeded
unlock etc, causing a kernel crash.

22 years agoLinux 2.6.0-test11 v2.6.0-test11
Linus Torvalds [Wed, 26 Nov 2003 04:38:22 +0000 (20:38 -0800)]
Linux 2.6.0-test11

22 years ago[PATCH] Lastminute IEEE-1394 fixes
Ben Collins [Wed, 26 Nov 2003 04:15:46 +0000 (20:15 -0800)]
[PATCH] Lastminute IEEE-1394 fixes

I've got a lot more changes than what's included here.  I've put this
down to the bear minimum to get things working sanely.

Mainly, I just want to get all the people hit by this a chance to use
2.6.0 without having to get our tree. Changes itemized:

 - Fix deadlock possibility in csr.c:read_maps()
 - Fix kmalloc to use ATOMIC in highlevel.c.
 - s/in_interrupt/irqs_disabled/ in ieee1394_transactions.c to fix
   warnings when transactions occured.
 - Introduce a release callback for the host driver and use it correctly.
 - Reorganize the nodemgr probe so we do an initial scan to discover
   devices, check IRM/CycleMaster, then do a final full probe when things
   are kosher. Fixes a problem where device registration and hotplug
   would cause some serious problems when a bus reset was forced in the
   middle of the probe.

22 years agoMerge master.kernel.org:/home/davem/BK/sparc-2.5
Linus Torvalds [Tue, 25 Nov 2003 23:06:55 +0000 (15:06 -0800)]
Merge master.kernel.org:/home/davem/BK/sparc-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

22 years agoMerge master.kernel.org:/home/davem/BK/net-2.5
Linus Torvalds [Tue, 25 Nov 2003 23:04:46 +0000 (15:04 -0800)]
Merge master.kernel.org:/home/davem/BK/net-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

22 years agoMerge http://lia64.bkbits.net/to-linus-2.5
Linus Torvalds [Tue, 25 Nov 2003 23:02:29 +0000 (15:02 -0800)]
Merge http://lia64.bkbits.net/to-linus-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

22 years ago[PATCH] prevent oops from read of proc entry for tty drivers
Stephen Hemminger [Tue, 25 Nov 2003 23:01:31 +0000 (15:01 -0800)]
[PATCH] prevent oops from read of proc entry for tty drivers

There are /proc handles there setup by proc_tty_register_driver, but there is
no module ownership association, so anything that reads after module unload
will blow.

The trivial fix is to propagate the owner of tty_driver to proc entry.

22 years ago[PATCH] fix smsc-ircc2.c double free
Jan Marek [Tue, 25 Nov 2003 23:00:04 +0000 (15:00 -0800)]
[PATCH] fix smsc-ircc2.c double free

This fixes a small, but important bug in smsc-ircc2.c.

Without this the driver tries release the same region twice.

22 years agoia64: Make core-dumps work even when executing in the gate DSO.
David Mosberger [Tue, 25 Nov 2003 15:26:14 +0000 (07:26 -0800)]
ia64: Make core-dumps work even when executing in the gate DSO.
      Tracked down by Rohit Seth.

22 years agoia64: Correct FIXADDR_USER_END so that single-stepping in the gate DSO works again.
David Mosberger [Tue, 25 Nov 2003 15:08:23 +0000 (07:08 -0800)]
ia64: Correct FIXADDR_USER_END so that single-stepping in the gate DSO works again.

22 years ago[IRDA]: Fix SKB leaks.
Jean Tourrilhes [Tue, 25 Nov 2003 10:53:30 +0000 (02:53 -0800)]
[IRDA]: Fix SKB leaks.

Do not special case ENOMEM as an error code, we should free up
the packet for all errors.

22 years ago[SPARC]: Fix build failures in IGA frame buffer introduced by janitor changes.
Pete Zaitcev [Tue, 25 Nov 2003 09:52:11 +0000 (01:52 -0800)]
[SPARC]: Fix build failures in IGA frame buffer introduced by janitor changes.

Most of the breakage came from cset 1.838.10.3

22 years ago[SPARC]: Add stub sched_clock() implementation.
Pete Zaitcev [Tue, 25 Nov 2003 09:49:02 +0000 (01:49 -0800)]
[SPARC]: Add stub sched_clock() implementation.

22 years ago[BRIDGE]: Fix netfilter config tests.
Bart De Schuymer [Tue, 25 Nov 2003 09:16:13 +0000 (01:16 -0800)]
[BRIDGE]: Fix netfilter config tests.

The br_netfilter_{init,fini}() calls need to be guarded by
BRIDGE_NETFILTER, from Michal Janusz Miroslaw.

22 years ago[IPV6]: Redo stateless addrconf properly.
Hideaki Yoshifuji [Tue, 25 Nov 2003 09:10:18 +0000 (01:10 -0800)]
[IPV6]: Redo stateless addrconf properly.

When bringing an interface down do not forget to clear the
IF_RS_SENT and IF_RA_RCVD flags.

22 years agoMerge bk://gkernel.bkbits.net/libata-2.5
Linus Torvalds [Tue, 25 Nov 2003 07:18:43 +0000 (23:18 -0800)]
Merge bk://gkernel.bkbits.net/libata-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

22 years ago[PATCH] JFS: Avoid segfault when dirty inodes are written on readonly mount
Dave Kleikamp [Tue, 25 Nov 2003 05:41:19 +0000 (21:41 -0800)]
[PATCH] JFS: Avoid segfault when dirty inodes are written on readonly mount

This fixes an oops that can occur if JFS is used as the root filesystem.

Writes to a device node may cause a ->write_inode to be called during a
read-only mount.  JFS needs to check for NULL log in jfs_flush_journal.

22 years agoFix error return on concurrent fork() with threaded exit()
Linus Torvalds [Tue, 25 Nov 2003 02:46:32 +0000 (18:46 -0800)]
Fix error return on concurrent fork() with threaded exit()

22 years agoMerge master.kernel.org:/home/davem/BK/net-2.5
Linus Torvalds [Mon, 24 Nov 2003 12:48:39 +0000 (04:48 -0800)]
Merge master.kernel.org:/home/davem/BK/net-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

22 years ago[ECONET]: Do not leak SKBs if ec_queue_packet() fails.
David S. Miller [Mon, 24 Nov 2003 12:00:19 +0000 (04:00 -0800)]
[ECONET]: Do not leak SKBs if ec_queue_packet() fails.

Also, make sure NET_RX_DROP is returned if we did not accept the
packet.

22 years ago[PPPOE]: Do not leak SKB if sock_queue_rcv_skb() fails.
David S. Miller [Mon, 24 Nov 2003 11:49:48 +0000 (03:49 -0800)]
[PPPOE]: Do not leak SKB if sock_queue_rcv_skb() fails.

22 years ago[NET]: In sock_queue_rcv_skb(), do not deref skb->len after it is queued to the socket.
David S. Miller [Mon, 24 Nov 2003 11:44:51 +0000 (03:44 -0800)]
[NET]: In sock_queue_rcv_skb(), do not deref skb->len after it is queued to the socket.

In implementations that use no socket locking, such as RAW sockets,
once we queue the SKB to the socket another cpu can remove the SKB
from the socket queue and free up the SKB making the skb->len access
touch freed memory.

Based upon a report from Burton Windle, kernel bugzilla #937

22 years agoMerge bk://linux-scsi.bkbits.net/scsi-bugfixes-2.6
Linus Torvalds [Mon, 24 Nov 2003 10:56:37 +0000 (02:56 -0800)]
Merge bk://linux-scsi.bkbits.net/scsi-bugfixes-2.6
into home.osdl.org:/home/torvalds/v2.5/linux

22 years ago[libata] bump versions for core and serverworks driver
Jeff Garzik [Mon, 24 Nov 2003 06:26:26 +0000 (01:26 -0500)]
[libata] bump versions for core and serverworks driver

22 years ago[libata] Fix flush of Device Control register to device
Benjamin Herrenschmidt [Mon, 24 Nov 2003 06:19:35 +0000 (01:19 -0500)]
[libata] Fix flush of Device Control register to device

Also add some ServerWorks-specific tweaks.

22 years agoMerge redhat.com:/spare/repo/linux-2.5
Jeff Garzik [Mon, 24 Nov 2003 05:33:55 +0000 (00:33 -0500)]
Merge redhat.com:/spare/repo/linux-2.5
into redhat.com:/spare/repo/libata-2.5

22 years agoFix locking problems in scsi_report_bus_reset() causing aic7xxx to hang
James Bottomley [Mon, 24 Nov 2003 04:02:15 +0000 (22:02 -0600)]
Fix locking problems in scsi_report_bus_reset() causing aic7xxx to hang

All the users of this function in the SCSI tree call it with the host
lock held.  With the new list traversal code, it was trying to take
the lock again to traverse the list.

Fix it to use the unlocked version of list traversal and modify the
header comments to make it clear that the lock is expected to be held
on calling it.

22 years ago[IPV6]: Multicast output bypasses netfilter hooks, fix.
David Stevens [Sun, 23 Nov 2003 14:45:16 +0000 (06:45 -0800)]
[IPV6]: Multicast output bypasses netfilter hooks, fix.

Noted by Harald Welte (laforge@netfilter.org)

22 years agoLinux 2.6.0-test10 v2.6.0-test10
Linus Torvalds [Sun, 23 Nov 2003 09:25:26 +0000 (01:25 -0800)]
Linux 2.6.0-test10

22 years agoMerge bk://gkernel.bkbits.net/net-drivers-2.5
Linus Torvalds [Sun, 23 Nov 2003 01:48:24 +0000 (17:48 -0800)]
Merge bk://gkernel.bkbits.net/net-drivers-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

22 years agoUpdated state model for SCSI devices
James Bottomley [Sat, 22 Nov 2003 12:21:22 +0000 (06:21 -0600)]
Updated state model for SCSI devices

I've been looking at enforcing lifetime phases for SCSI devices
(primarily to try to get the mid layer to offload as much of the device
creation and hotplug pieces as it can).

I've hijacked the sdev_state field of the struct scsi_device (formerly
this was a bitmap, now it becomes an enumerated state).

I've also begun adding references sdev_gendev into the code to pin the
scsi_device---initially in the queue function, but possibly this should
also be done in the scsi_command_get/put, the idea being to prevent
scsi_device freeing while there's still device activity.

The object phases I identified are:

1. SDEV_CREATED - we've just allocated the device.  It may respond to
internally generated commands, but not to user ones (the user should
actually have no way to access a device in this state, but just in
case).

2. SDEV_RUNNING - the device is fully operational

3. SDEV_CANCEL - The device is cleanly shutting down.  It may respond to
internally generated commands (for cancellation/recovery) only; all user
commands are errored unless they have already been queued (QUEUE_FULL
handling and the like).

4. SDEV_DEL - The device is gone. *all* commands are errored out.

Ordinarily, the device should move through all four phases from creation
to destruction, but moving SDEV_RUNNING->SDEV_DEL because of surprise
ejection should work.

It's starting to look like the online flag should be absorbed into this
(offlined devices move essentially to SDEV_CANCEL and could be
reactivated by moving to SDEV_RUNNING).

I haven't altered the similar bitmap model that scsi_host has, although
this too should probably move to an enumerated state model.

I've tested this by physically yanking a module out from underneath a
running filesystem with no ill effects (other than a slew of I/O
errors).

The obvious problem is that this kills possible user error handling, but
we don't do any of that yet.

22 years agoMerge redhat.com:/spare/repo/linux-2.5
Jeff Garzik [Sat, 22 Nov 2003 09:21:09 +0000 (04:21 -0500)]
Merge redhat.com:/spare/repo/linux-2.5
into redhat.com:/spare/repo/libata-2.5

22 years ago[PATCH] scsi device ref count (update)
Mike Anderson [Sat, 22 Nov 2003 03:13:02 +0000 (21:13 -0600)]
[PATCH] scsi device ref count (update)

This patch is against scsi-bugfixes-2.6. I updated it based on comments
received. It breaks up the reference count initialization for scsi_device
and restores calling slave_destroy for all scsi_devices configured or
not. I ran a small regression using the scsi_debug, aic7xxx, and qla2xxx
driver. I also had a debug patch for more verbose kobject cleanup and
patch for a badness check on atomic_dec going negative (previously
provided by Linus).

The object cleanup appears to being functioning correctly. I only saw
previously reported badness output:
- Synchronizing SCSI cache fails on cleanup.
- scsi_debug.c missing release (I believe Doug posted a patch)
- aic7xxx warnings on rmmod due to ahc_platform_free calling
  scsi_remove_host with ahc_list_lock held.

This patch splits the scsi device struct device register into init and
add. It also addresses memory leak issues of not calling slave_destroy
on scsi_devices that are not configured in.

Details:
* Make scsi_device_dev_release extern for scsi_scan to use in
alloc_sdev.
* Move scsi_free_sdev code to scsi_device_dev_release. Have
previous callers of scsi_free_sdev call slave_destroy plus put_device.
* Changed name of scsi_device_register to scsi_sysfs_add_sdev to
match host call and align with split struct device init.
* Move sdev_gendev device and class init to scsi_alloc_sdev.

Thu Nov 20 22:56:11 PST 2003

 drivers/scsi/scsi_priv.h  |    4 +-
 drivers/scsi/scsi_scan.c  |   63 +++++++++++++++++++++-------------------------
 drivers/scsi/scsi_sysfs.c |   58 ++++++++++++++++++++++--------------------
 3 files changed, 62 insertions(+), 63 deletions(-)

22 years ago[PATCH] More SiS interrupt routing
Davide Libenzi [Sat, 22 Nov 2003 00:39:48 +0000 (16:39 -0800)]
[PATCH] More SiS interrupt routing

It turns out that the SiS irq routing logic doesn't go by chipset
after all - it's just that some pirq entries are "legacy" numbers,
while others are raw offsets into PCI config space (and the legacy
numbers are more commonly used with the older chipsets, which
explains the correlations).

This simplifies the router code substantially.

22 years ago[PATCH] reserve resources specified by the PnPBIOS properly
Adam Belay [Fri, 21 Nov 2003 11:36:07 +0000 (03:36 -0800)]
[PATCH] reserve resources specified by the PnPBIOS properly

A bug prevents the PnP layer from reserving some of the resources
specified by the PnPBIOS.  As a result some systems will have
unpredicable (random crashes etc.) problems because of resource
conflicts, especially when PCMCIA support is enabled.  This patch
fixes the problem by ensuring that the proper resource data is
reserved.

22 years agoMerge master.kernel.org:/home/davem/BK/sparc-2.5
Linus Torvalds [Fri, 21 Nov 2003 11:13:20 +0000 (03:13 -0800)]
Merge master.kernel.org:/home/davem/BK/sparc-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

22 years agoMerge nuts.ninka.net:/disk1/davem/BK/sparcwork-2.5
David S. Miller [Fri, 21 Nov 2003 10:38:40 +0000 (02:38 -0800)]
Merge nuts.ninka.net:/disk1/davem/BK/sparcwork-2.5
into nuts.ninka.net:/disk1/davem/BK/sparc-2.5

22 years ago[IPV6]: Fix header length calculation in multicast input.
David Stevens [Fri, 21 Nov 2003 08:49:32 +0000 (00:49 -0800)]
[IPV6]: Fix header length calculation in multicast input.

It did not account for extension headers properly.  If we get
this length wrong, we do not determine if a multicast packet
is MLDv1 vs. MLDv2 correctly.

22 years agoMerge nuts.ninka.net:/disk1/davem/BK/network-2.5
David S. Miller [Fri, 21 Nov 2003 08:44:51 +0000 (00:44 -0800)]
Merge nuts.ninka.net:/disk1/davem/BK/network-2.5
into nuts.ninka.net:/disk1/davem/BK/net-2.5

22 years agoWork around binutils bug.
Linus Torvalds [Fri, 21 Nov 2003 07:35:57 +0000 (23:35 -0800)]
Work around binutils bug.

This caused the system call code to test for the wrong number of
system calls, with resulting exciting results.

22 years agoLimit USB storage transfers to 240 sectors.
Linus Torvalds [Fri, 21 Nov 2003 07:34:19 +0000 (23:34 -0800)]
Limit USB storage transfers to 240 sectors.

22 years agoMerge bk://linux-scsi.bkbits.net/scsi-bugfixes-2.6
Linus Torvalds [Fri, 21 Nov 2003 06:33:34 +0000 (22:33 -0800)]
Merge bk://linux-scsi.bkbits.net/scsi-bugfixes-2.6
into home.osdl.org:/home/torvalds/v2.5/linux

22 years agoMerge http://lia64.bkbits.net/to-linus-2.5
Linus Torvalds [Fri, 21 Nov 2003 06:31:30 +0000 (22:31 -0800)]
Merge http://lia64.bkbits.net/to-linus-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

22 years agoia64: Drop printk from ia64_ni_syscall(). This is a temporary fix
David Mosberger [Fri, 21 Nov 2003 06:10:39 +0000 (22:10 -0800)]
ia64: Drop printk from ia64_ni_syscall().  This is a temporary fix
for 2.6.0.  The proper fix is to replace ia64_ni_syscall with
sys_ni_syscall, but that would make the patch quite large, so
we defer that till 2.6.1.

22 years agoia64: From Linus/Paulus: reset restart_block function in
David Mosberger [Fri, 21 Nov 2003 06:08:13 +0000 (22:08 -0800)]
ia64: From Linus/Paulus: reset restart_block function in
restore_sigcontext().  Also update ia32 subsystem accordingly.

22 years agoia64: Fix off-by-1 error in imm60 patching. The bug hasn't been observed
David Mosberger [Fri, 21 Nov 2003 05:25:04 +0000 (21:25 -0800)]
ia64: Fix off-by-1 error in imm60 patching.  The bug hasn't been observed
in practice, but it's clearly wrong and just waiting there to
get triggered...

22 years ago[netdrvr sis190] fix oopsable bug in TX path, related to skb_padto return
Jeff Garzik [Thu, 20 Nov 2003 09:46:23 +0000 (04:46 -0500)]
[netdrvr sis190] fix oopsable bug in TX path, related to skb_padto return

Caught by Francois Romieu.

22 years ago[IPV6]: In igmp6_group_queried, fix address check to comply with RFC2710.
David Stevens [Thu, 20 Nov 2003 08:34:18 +0000 (00:34 -0800)]
[IPV6]: In igmp6_group_queried, fix address check to comply with RFC2710.

RFC2710 says:
1) MLD messages are never sent for multicast addresses whose scope is 0
   (reserved) or 1 (node-local).
2) MLD messages ARE sent for multicast addresses whose scope is 2
   (link-local), including Solicited-Node multicast addersses [ADDR-ARCH],
   except for the link-scope, all-nodes address (FF02::1).

      The current MLDv1 code does not send reports for link-scope addresses
and doesn't restrict scope 0. This may break switches that snoop reports for
determining which ports should receive particular addresses.  Patch below.

22 years agoMerge nuts.ninka.net:/disk1/davem/BK/network-2.5
David S. Miller [Thu, 20 Nov 2003 08:10:52 +0000 (00:10 -0800)]
Merge nuts.ninka.net:/disk1/davem/BK/network-2.5
into nuts.ninka.net:/disk1/davem/BK/net-2.5