]> git.hungrycats.org Git - linux/log
linux
22 years ago[PATCH] USB: <linux/usb_ch9.h> new descriptor codes, types
David Brownell [Mon, 15 Dec 2003 05:38:28 +0000 (21:38 -0800)]
[PATCH] USB: <linux/usb_ch9.h> new descriptor codes, types

This patch adds definitions:

  - New "video" class, for video cameras and more complicated devices;

  - New "Interface association" descriptor type, used by video class,
    along with two other assigned desciptor type codes (OTG, "debug")
    listed in the same ECN to the USB 2.0 spec;

  - Type declarations for "Interface association" and OTG descriptors.

It also replaces three copies of USB_DT_CS_* declarations in audio
support with one in <linux/usb_ch9.h>, and uses the newly exposed
symbol in "usbnet".  (Near as I can tell, the convention for those
"class specific" descriptor types started with audio, and was then
adopted by several other class specifications.)

22 years agoMerge kroah.com:/home/greg/linux/BK/bleed-2.5
Greg Kroah-Hartman [Fri, 12 Dec 2003 07:00:03 +0000 (23:00 -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 ago[PATCH] USB: usb driver binding fixes
David Brownell [Fri, 12 Dec 2003 06:36:36 +0000 (22:36 -0800)]
[PATCH] USB: usb driver binding fixes

There are problems lurking in the driver binding code for usb,
with highlights being disagreements about:

    (a) locks: usb bus writelock v. BKL v. driver->serialize
    (b) driver: interface.driver v. interface.dev.driver

Fixing those is going to take multiple patches, and I thought
I'd start out with a small one that's relatively simple.  This:

    - Cleans up locking.

        * Updates comments and kerneldoc to reflect that the
          usb bus writelock is what protects against conflicts
          when binding/unbinding drivers to devices.

        * Removes driver->serialize ... not needed, since
          it's only gotten when the bus writelock is held.

        * Removes incorrect "must have BKL" comments, and one
          bit of code that tried to use BKL not the writelock.

    - Removes inconsistencies about what driver is bound to the
      interface ... for now "interface.driver" is "the truth".

        * usb_probe_interface() will no longer clobber bindings
          established with usb_driver_claim_interface().

        * usb_driver_release_interface() calls device_release_driver()
          for bindings established with probe(), so the driver model
          updates (sysfs etc) are done as expected.

        * usb_unbind_interface() doesn't usb_driver_release_interface(),
          since release() should eventually _always_ call unbind()
          (indirectly through device_release_driver).

Essentially there are two driver binding models in USB today,
and this patch makes them start to cooperate properly:

   - probe()/disconnect(), used by most drivers.  This goes
     through the driver model core.

   - claim()/release(), used by CDC drivers (ACM, Ethernet)
     and audio to claim extra interfaces and by usbfs since it
     can't come in through probe().  Bypasses driver model.

That interface.driver pointer can be removed by changing the
claim()/release() code to use the driver model calls added
for that purpose:  device_{bind,release}_driver().  I didn't
do that in this patch, since it'll have side effects like
extra disconnect() calls that drivers will need to handle.

A separate usbfs patch is needed to fix its driver binding;
mostly just to use the right lock, but those changes were
more extensive and uncovered other issues.  (Like, I think,
some that Duncan has been noticing ...)

22 years ago[PATCH] USB: pegasus driver update
Petko Manolov [Fri, 12 Dec 2003 06:33:47 +0000 (22:33 -0800)]
[PATCH] USB: pegasus driver update

  another vendor/deviceID added;
  HAS_HOME_PNA flag for ADM8511 devices - that should
  make HomePNA users happy;

22 years ago[PATCH] USB: Mark AX8817x usbnet driver as non-experimental
David T. Hollis [Fri, 12 Dec 2003 06:31:42 +0000 (22:31 -0800)]
[PATCH] USB: Mark AX8817x usbnet driver as non-experimental

Trivial patch to remove the Experimental mark on the AX8817x driver
portion of usbnet.  The driver seems to have made the rounds enough and
is working quite well.

22 years agoFix subtle bug in "finish_wait()", which can cause kernel stack
Linus Torvalds [Fri, 12 Dec 2003 06:20:08 +0000 (22:20 -0800)]
Fix subtle bug in "finish_wait()", which can cause kernel stack
corruption on SMP because of another CPU still accessing a waitqueue
even after it was de-allocated.

Use a careful version of the list emptiness check to make sure we
don't de-allocate the stack frame before the waitqueue is all done.

22 years ago[PATCH] USB: PWC 8.12 driver update
Nemosoft Unv. [Fri, 12 Dec 2003 06:13:03 +0000 (22:13 -0800)]
[PATCH] USB: PWC 8.12 driver update

Attached you will find patches that will bring the Philips Webcam driver
(PWC) up to version 8.12. The most important new feature is support for
the motorized pan & tilt feature of the new Logitech QuickCam
Orbit/Sphere, which I don't think is in the stores yet (at least it's
not on Logitech's website), but should be there soon. In addition, the
documentation in the kernel about the cams is updated.

22 years ago[PATCH] USB: add support for Sony UX50 device to visor driver
Greg Kroah-Hartman [Fri, 12 Dec 2003 05:11:36 +0000 (21:11 -0800)]
[PATCH] USB: add support for Sony UX50 device to visor driver

Thanks to Ralf Dietrich <ralle@envicon.de> for the information.

22 years ago[PATCH] USB: Allow configuration #0
Alan Stern [Fri, 12 Dec 2003 03:57:12 +0000 (19:57 -0800)]
[PATCH] USB: Allow configuration #0

This patch helped Jon Wilson.  It allows devices to have a configuration
numbered 0, in spite of the standard convention that config #0 really
means unconfigured.

22 years ago[PATCH] USB: fix bug when errors happen in ioedgeport driver
Thomas Chen [Fri, 12 Dec 2003 03:03:38 +0000 (19:03 -0800)]
[PATCH] USB: fix bug when errors happen in ioedgeport driver

22 years ago[PATCH] USB: fix io_edgeport driver alignment issues.
Thomas Chen [Fri, 12 Dec 2003 02:31:35 +0000 (18:31 -0800)]
[PATCH] USB: fix io_edgeport driver alignment issues.

22 years ago[PATCH] USB: add support for another pl2303 device
Greg Kroah-Hartman [Fri, 12 Dec 2003 02:02:24 +0000 (18:02 -0800)]
[PATCH] USB: add support for another pl2303 device

Info came from John Zhuge <john.zhuge@troposnetworks.com>

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] scsi_ioctl memcpy'ing user address
Jens Axboe [Tue, 9 Dec 2003 01:03:05 +0000 (17:03 -0800)]
[PATCH] scsi_ioctl memcpy'ing user address

James reported a bug in scsi_ioctl.c where it mem copies a user pointer
instead of using copy_from_user(). I inadvertently introduced this one
when getting rid of CDROM_SEND_PACKET. Here's a trivial patch to fix it.

22 years ago[IPV6]: Fix TCP socket leak.
Arnaldo Carvalho de Melo [Mon, 8 Dec 2003 13:40:01 +0000 (05:40 -0800)]
[IPV6]: Fix TCP socket leak.

TCP IPV6 ->hash() method should not grab a socket reference.

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] tmpfs oops fix
James McMechan [Sun, 7 Dec 2003 13:57:40 +0000 (05:57 -0800)]
[PATCH] tmpfs oops fix

The problem was that the cursor was in the list being walked, and when
the pointer pointed to the cursor the list_del/list_add_tail pair would
oops trying to find the entry pointed to by the prev pointer of the
deleted cursor element.

The solution I found was to move the list_del earlier, before the
beginning of the list walk. since it is not used during the list walk and
should not count in the list enumeration it can be deleted, then the
list pointer cannot point to it so it can be added safely with the
list_add_tail without oopsing, and everything works as expected.

I am unable to oops this version with any of my test programs.

Patch acked by Al Viro.

22 years agoMerge master.kernel.org:/home/davem/BK/net-2.5
Linus Torvalds [Sun, 7 Dec 2003 12:20:28 +0000 (04:20 -0800)]
Merge master.kernel.org:/home/davem/BK/net-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

22 years ago[PKT_SCHED]: In HTB, filters must be destroyed before the classes.
Martin Devera [Sun, 7 Dec 2003 11:33:36 +0000 (03:33 -0800)]
[PKT_SCHED]: In HTB, filters must be destroyed before the classes.

22 years ago[PKT_SCHED]: Do not dereference the special pointer value 'HTB_DIRECT'.
David S. Miller [Sun, 7 Dec 2003 11:31:37 +0000 (03:31 -0800)]
[PKT_SCHED]: Do not dereference the special pointer value 'HTB_DIRECT'.

Based upon a patch from devik.

22 years ago[PATCH] wireless airo oops fix
Jeff Garzik [Sun, 7 Dec 2003 03:00:48 +0000 (19:00 -0800)]
[PATCH] wireless airo oops fix

From Javier Achirica:

Delay MIC activation to prevent Oops

22 years agoFix the PROT_EXEC breakage on anonymous mmap.
Linus Torvalds [Sat, 6 Dec 2003 06:34:40 +0000 (22:34 -0800)]
Fix the PROT_EXEC breakage on anonymous mmap.

Clean up the tests while at it.

22 years ago[PATCH] remove manual driver poisoning of net_device
Jeff Garzik [Fri, 5 Dec 2003 15:35:35 +0000 (07:35 -0800)]
[PATCH] remove manual driver poisoning of net_device

From: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>

   Such poisoning can cause oopses either because the refcount is not
   zero when the poisoning occurs, or due to kernel debugging options
   being enabled.

22 years ago[PATCH] fix oops on unload in pcnet32
Jeff Garzik [Fri, 5 Dec 2003 15:34:00 +0000 (07:34 -0800)]
[PATCH] fix oops on unload in pcnet32

The driver was calling pci_unregister_driver for each _device_, and then
again at the end of the module unload routine.  Remove the call that's
inside the loop, pci_unregister_driver should only be called once.

Caught by Don Fry (and many others)

22 years ago[PATCH] fix use-after-free in libata
Jeff Garzik [Fri, 5 Dec 2003 15:32:14 +0000 (07:32 -0800)]
[PATCH] fix use-after-free in libata

Fixes oops some were seeing on module unload.

Caught by Jon Burgess.

22 years agoMerge master.kernel.org:/home/davem/BK/net-2.5
Linus Torvalds [Fri, 5 Dec 2003 07:28:12 +0000 (23:28 -0800)]
Merge master.kernel.org:/home/davem/BK/net-2.5
into home.osdl.org:/home/torvalds/v2.5/linux

22 years ago[BRIDGE]: Provide correct TOS value to IPv4 routing.
Julian Anastasov [Fri, 5 Dec 2003 04:41:31 +0000 (20:41 -0800)]
[BRIDGE]: Provide correct TOS value to IPv4 routing.

22 years ago[NETFILTER]: In conntrack, do not fragment TSO packets by accident.
David S. Miller [Fri, 5 Dec 2003 04:34:00 +0000 (20:34 -0800)]
[NETFILTER]: In conntrack, do not fragment TSO packets by accident.

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] Fix 'noexec' behaviour
Ulrich Drepper [Thu, 4 Dec 2003 14:26:06 +0000 (06:26 -0800)]
[PATCH] Fix 'noexec' behaviour

We should not allow mmap() with PROT_EXEC on mounts marked "noexec",
since otherwise there is no way for user-supplied executable loaders
(like ld.so and emulator environments) to properly honour the
"noexec"ness of the target.

22 years agoMerge bk://linuxusb.bkbits.net/i2c-2.6
Linus Torvalds [Thu, 4 Dec 2003 09:13:08 +0000 (01:13 -0800)]
Merge bk://linuxusb.bkbits.net/i2c-2.6
into home.osdl.org:/home/torvalds/v2.5/linux

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 ago[PATCH] I2C: fix i2c_smbus_write_byte() for i2c-nforce2
Jean Delvare [Thu, 4 Dec 2003 06:14:33 +0000 (22:14 -0800)]
[PATCH] I2C: fix i2c_smbus_write_byte() for i2c-nforce2

This patch fixes i2c_smbus_write_byte() being broken for i2c-nforce2.
This causes trouble when that module is used together with eeprom (which
is also in 2.6). We have had three user reports about the problem.

Credits go to Mark D. Studebaker for finding and fixing the problem.

22 years ago[PATCH] fix broken x86_64 rdtscll
Jens Axboe [Wed, 3 Dec 2003 23:53:31 +0000 (15:53 -0800)]
[PATCH] fix broken x86_64 rdtscll

The scheduler is completed b0rked on x86_64, and I finally found out
why.  sched_clock() always returned 0, because rdtscll() always returned
0.  The 'a' in the macro doesn't agree with the 'a' in the function,
yippe :-)

This is a show stopper for x86_64.

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