]> git.hungrycats.org Git - linux/log
linux
22 years ago[PATCH] USB: Complete all URBs in UHCI when releasing the bus
Alan Stern [Wed, 31 Mar 2004 05:09:35 +0000 (21:09 -0800)]
[PATCH] USB: Complete all URBs in UHCI when releasing the bus

This patch changes the UHCI driver's bus-release routine; now it will
correctly finish all pending but not-yet-completed URBs.  This fixes a
reported bug, when trying to rmmod uhci-hcd while using a USB mouse under
X.  Also, the patch changes a variable name from ...hs... to ...fs...
("high speed" -> "full speed") -- something I accidentally omitted in an
earlier patch.

22 years ago[PATCH] USB Gadget: Use automatic endpoint selection in file-storage
Alan Stern [Wed, 31 Mar 2004 05:09:04 +0000 (21:09 -0800)]
[PATCH] USB Gadget: Use automatic endpoint selection in file-storage

This patch imports the endpoint auto-config library into the file-storage
gadget, simplifying the code needed for endpoint selection and removing
almost all dependencies on the controller type from the driver.  It also
changes some log messages for reporting fatal problems from INFO to ERROR.

22 years ago[PATCH] USB Gadget: Use configuration-buffer library in file-storage
Alan Stern [Wed, 31 Mar 2004 05:08:35 +0000 (21:08 -0800)]
[PATCH] USB Gadget: Use configuration-buffer library in file-storage

This patch imports the config-buffer library into the file-storage gadget,
simplifying and decreasing the amount of code needed for assembling
configuration descriptors.  It also changes the driver to remove any
pretense at bus-powered operation and to use the new DUALSPEED
configuration option.  This is in line with recent changes made to other
gadget drivers.

22 years ago[PATCH] USB: fix dvb-ttusb-budget driver due to set_configuration locking cleanups
David Brownell [Tue, 30 Mar 2004 09:18:44 +0000 (01:18 -0800)]
[PATCH] USB: fix dvb-ttusb-budget driver due to set_configuration locking cleanups

> Oops, you forgot to grep:
>
> CC [M]  drivers/media/dvb/ttusb-dec/ttusb_dec.o
> drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c: In function `ttusb_setup_interfaces':
> drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c:1011: warning: implicit declaration of function `usb_set_configuration'

Well, when I did the grep that bug wasn't there; it
was just integrated on Feb 26!

> Care to send a patch to fix it up before Andrew gets grumpy with me for
> breaking his build?  :)

The first part makes it use usb_reset_configuration() like
it did before ... I'm surprised this driver hasn't been
generating "it deadlocks during probe" reports.

The second part prints a diagnostic if the configuration
wasn't set right; the fix would use hotplug and sysfs.

22 years ago[PATCH] USB: w9968cf driver misplaced ;
Dave Jones [Tue, 30 Mar 2004 09:18:20 +0000 (01:18 -0800)]
[PATCH] USB: w9968cf driver misplaced ;

22 years ago[PATCH] USB: omninet patch
Alessandro Zummo [Tue, 30 Mar 2004 06:12:25 +0000 (22:12 -0800)]
[PATCH] USB: omninet patch

  here's a small patch for omninet.c .

22 years ago[PATCH] USB: Rename the USB HID driver
Marcel Holtmann [Tue, 30 Mar 2004 06:12:10 +0000 (22:12 -0800)]
[PATCH] USB: Rename the USB HID driver

> > I like to see this rename as soon as possible. So if nobody minds I send
> > a patch to LKML and ask Linus for inclusion.
>
> Go ahead, but also please patch all relevant documentation in the
> kernel.

the attached patch should do the renaming everywhere hid or hid.o was
mentioned. It also removes all references to *.o module names.

22 years ago[PATCH] USB: RNDIS/Ethernet Gadget Driver comment changes
David Brownell [Tue, 30 Mar 2004 06:11:48 +0000 (22:11 -0800)]
[PATCH] USB: RNDIS/Ethernet Gadget Driver comment changes

Whoops, I missed something.  You should apply this patch too.

The RNDIS spec license agreement does NOT require tacking any
GPL-incompatible restrictions on the results of _using_ the
spec:

   "... may be used solely for the purpose of implementing
    the RNDIS protocol message set to interface with ..."
   (the two cases identified in the text)

And that's all the implementation does -- end of story.

22 years ago[PATCH] USB: kill off CONFIG_USB_BRLVGER detritus.
Dave Jones [Tue, 30 Mar 2004 06:11:25 +0000 (22:11 -0800)]
[PATCH] USB: kill off CONFIG_USB_BRLVGER detritus.

This died a while ago, but lingers on in defconfigs.

22 years ago[PATCH] USB Storage: datafab fix and unusual devices
Andries E. Brouwer [Tue, 30 Mar 2004 06:11:00 +0000 (22:11 -0800)]
[PATCH] USB Storage: datafab fix and unusual devices

datafab.c has an often-seen bug: the SCSI READ_CAPACITY command
does not need the number of sectors but the last sector.

I just tried the CF and SM parts of a 5-in-1 card reader.
The CF part works with US_PR_DATAFAB when the bug mentioned is fixed.
The SM part works with US_PR_SDDR55.
(Revision Number is 17.08 - that in case the 0000-ffff
should prove to be too optimistic.)

We still must discuss what setup to use for readers like this -
I have several of them - that require different drivers for
different LUNs. As it is now one has to compile usb-storage
twice, once with CONFIG_USB_STORAGE_DATAFAB defined and once
without, and remove one usb-storage.ko and insert the other
to go from CF to SM. (And that hangs with 2.6.4 so a reboot
is required..)

22 years ago[PATCH] USB: ftdi_sio.c: not unlinking urb on ftdi_close
Paulo Marques [Tue, 30 Mar 2004 06:10:36 +0000 (22:10 -0800)]
[PATCH] USB: ftdi_sio.c: not unlinking urb on ftdi_close

This patch fixes a bug in ftdi_sio.c where the driver wouldn't unlink the
read urb if the user application cleared the HUPCL flag on termios->c_cflag.

22 years ago[PATCH] USB: drivers/usb/gadget/epautoconf.c gcc-3.5 build fix
Andrew Morton [Tue, 30 Mar 2004 06:10:11 +0000 (22:10 -0800)]
[PATCH] USB: drivers/usb/gadget/epautoconf.c gcc-3.5 build fix

drivers/usb/gadget/epautoconf.c: In function `ep_matches':
drivers/usb/gadget/epautoconf.c:175: error: `typeof' applied to a bit-field

22 years ago[PATCH] USB: set_configuration locking cleanups
David Brownell [Tue, 30 Mar 2004 01:25:17 +0000 (17:25 -0800)]
[PATCH] USB: set_configuration locking cleanups

I've posted all these before, the only notable change is
treating that one gphoto2 case as warn-and-continue rather
than return-with-failure.

usb_set_configuration() cleanup

 * Remove it from the USB kernel driver API.  No drivers need it now,
   and the sysadmin can change bConfigurationValue using sysfs (say,
   when hotplugging an otherwise problematic device).

 * Simpler/cleaner locking:  caller must own dev->serialize.

 * Access from usbfs now uses usb_reset_configuration() sometimes,
   preventing sysfs thrash, and warns about some dangerous usage
   (which gphoto2 and other programs may be relying on).  (This is
   from Alan Stern, but I morphed an error return into a warning.)

 * Prevent a couple potential "no configuration" oopses. (Alan's?)

 * Remove one broken call from usbcore,  in the "device morphed" path
   of usb_reset_device().  This should be more polite now, hanging
   that one device rather than khubd.

22 years ago[PATCH] USB Gadget: RNDIS/Ethernet Gadget Driver (2/2)
David Brownell [Tue, 30 Mar 2004 00:56:45 +0000 (16:56 -0800)]
[PATCH] USB Gadget: RNDIS/Ethernet Gadget Driver (2/2)

This updates the existing Ethernet gadget driver to
support an additional RNDIS configuration on all
current USB controllers that can support one.

It also includes a bit more work to address the complex
autoconfiguration of this driver.  Needs testing on PXA.

Patch (mostly) contributed by Robert Schwebel, and developed
with support from Auerswald GmbH.

22 years ago[PATCH] USB Gadget: RNDIS/Ethernet Gadget Driver (1/2)
David Brownell [Tue, 30 Mar 2004 00:56:15 +0000 (16:56 -0800)]
[PATCH] USB Gadget: RNDIS/Ethernet Gadget Driver (1/2)

This patch adds the RNDIS message engine and kbuild/kconfig
support for it.  This is currently labeled EXPERIMENTAL.

Patch contributed by Robert Schwebel, and developed with
support from Auerswald GmbH.

22 years ago[PATCH] USB: ohci unlink tweaks
David Brownell [Tue, 30 Mar 2004 00:55:44 +0000 (16:55 -0800)]
[PATCH] USB: ohci unlink tweaks

Minor unlink tweaks, including a case where SMP could oops
if it were abused, as if from 'usbtest' or 'stir4200'.

22 years ago[PATCH] USB: usb/core/config.c null pointers after kfree
David Brownell [Tue, 30 Mar 2004 00:55:23 +0000 (16:55 -0800)]
[PATCH] USB: usb/core/config.c null pointers after kfree

Prevents an oops with some other patchsets.

Clear some pointers after the memory is kfreed, to avoid
making some other patch combinations oops.

22 years ago[PATCH] USB; minor usbfs locking updates
David Brownell [Tue, 30 Mar 2004 00:53:38 +0000 (16:53 -0800)]
[PATCH] USB; minor usbfs locking updates

These are "obvious" locking fixes:  using the right lock
to protect interface claim/release (should be the driver
model bus lock, not BKL).

22 years ago[PATCH] USB: Altsetting update for USB input drivers
Alan Stern [Fri, 26 Mar 2004 06:39:04 +0000 (22:39 -0800)]
[PATCH] USB: Altsetting update for USB input drivers

This patch continues the update process for the cur_altsetting change.
The drivers in usb/input were all in good shape and needed only minimal
changes.

22 years ago[PATCH] USB: ohci misc updates
David Brownell [Fri, 26 Mar 2004 06:26:00 +0000 (22:26 -0800)]
[PATCH] USB: ohci misc updates

Mostly from Benjamin Herrenschmidt:

  - prevent usbcore from asking the HCD root hub code
    to read registers on one more suspend path (some
    hardware gets upset in those cases);

  - try handling a "device died" cleanup case better

  - add some wmb() calls in spots that could matter
    on some hardware

22 years ago[PATCH] IXP425 -> IXP4XX conversion for USB-gadget
Deepak Saxena [Fri, 26 Mar 2004 06:25:35 +0000 (22:25 -0800)]
[PATCH] IXP425 -> IXP4XX conversion for USB-gadget

The 2.6 code for Intel's IXP4xx NPU line has been updated to
remove all references to IXP42x or IXP425 and replace it
with IXP4XX, including config options and file names. This
patch updates the USB-gadget pxa-udc driver with these changes.

22 years agoUSB: fix compiler warning in whiteheat driver.
Greg Kroah-Hartman [Fri, 26 Mar 2004 05:45:58 +0000 (21:45 -0800)]
USB: fix compiler warning in whiteheat driver.

22 years ago[PATCH] USB: add ftdi_sio product ids
Corey Edwards [Fri, 26 Mar 2004 05:42:45 +0000 (21:42 -0800)]
[PATCH] USB: add ftdi_sio product ids

22 years agoUSB: ftdi_sio merge fixups.
Greg Kroah-Hartman [Fri, 26 Mar 2004 05:33:56 +0000 (21:33 -0800)]
USB: ftdi_sio merge fixups.

22 years ago[PATCH] USB: more ftdi_sio ids
Gude Analog- und Digitalsysteme GmbH [Fri, 26 Mar 2004 05:32:06 +0000 (21:32 -0800)]
[PATCH] USB: more ftdi_sio ids

22 years ago[PATCH] USB: Add dummy_hcd to the main kernel
Alan Stern [Fri, 26 Mar 2004 05:29:43 +0000 (21:29 -0800)]
[PATCH] USB: Add dummy_hcd to the main kernel

This is a resubmission of as225, together with appropriate changes for the
g_serial driver.  David Brownell's latest g_ether update makes it
unnecessary to change that file or gadget_chips.h.

dummy_hcd is simultaneously a host controller driver and a device
controller driver.  It creates a simulated HC together with a simulated
UDC plugged into it.  Gadget drivers can run under the simulated UDC and
will appear as regular USB devices on the simulated HC.  The simulation is
reasonably (although not totally) realistic.

It's a wonderful tool for testing and developing gadget drivers without
the need for lots of additional hardware: Both the host driver and the
gadget driver can run on the same computer.  It's been available for quite
some time in David's gadget-2.6 tree and it works well.  I couldn't have
gotten the file-storage gadget running in any reasonable length of time
without it.

22 years agoUSB: mark pwc driver as broken, as it is.
Greg Kroah-Hartman [Fri, 26 Mar 2004 05:23:41 +0000 (21:23 -0800)]
USB: mark pwc driver as broken, as it is.

And the maintainer doesn't seem to want to fix it :(

22 years ago[PATCH] USB: fix whiteheat USB serial compile failure on PPC
Meelis Roos [Fri, 26 Mar 2004 04:32:39 +0000 (20:32 -0800)]
[PATCH] USB: fix whiteheat USB serial compile failure on PPC

> Bah, looks like PPC doesn't ever define CMSPAR :(
>
> How about adding something like:
>  #ifndef CMSPAR
>  #define CMSPAR 0
>  #endif
> To the beginning of the driver like the cdc-acm.c driver does?  If that
> works, care to send me a patch?

Yes, it compiles.

22 years ago[PATCH] USB: g_ether does endpoint autoconfig too
David Brownell [Fri, 26 Mar 2004 04:32:02 +0000 (20:32 -0800)]
[PATCH] USB: g_ether does endpoint autoconfig too

Here's an update for the Ethernet gadget that corresponds
to the earlier one for Gadget Zero ... it gets rid of almost
all the remaining controller-specific #ifdefs in this driver.
(And also lets the driver initialize using "dummy_hcd".)

This is a significant step towards doing hardware-specific
configuration at run time (or at least init-time) rather
than compile time, but other patches will be needed to take
it the rest of the way there.   (Especially considering the
RNDIS support...)  The runtime footprint of the driver shrank
a bit, mostly because things moved into the init section.

22 years ago[PATCH] USB: usbnet, minor probe() fault fix
David Brownell [Fri, 26 Mar 2004 04:31:37 +0000 (20:31 -0800)]
[PATCH] USB: usbnet, minor probe() fault fix

Some hardware had the poor taste to misbehave during probe(),
which turned up a minor bug.  This fixes it:  don't try to
free a network device that hasn't been registerd.

22 years ago[PATCH] USB: define USB feature bit indices
David Brownell [Fri, 26 Mar 2004 04:31:15 +0000 (20:31 -0800)]
[PATCH] USB: define USB feature bit indices

This patch provides standard symbols for the various USB
device and endpoint feature bits, so that drivers can
use symbolic names for them.  It also changes the code
relating to endpoint halts so it uses those symbols.

22 years ago[PATCH] USB: fix race in whiteheat serial driver
Arjan van de Ven [Fri, 26 Mar 2004 04:30:48 +0000 (20:30 -0800)]
[PATCH] USB: fix race in whiteheat serial driver

Patch below fixes an obvious race in the whiteheat usb serial driver...

22 years ago[PATCH] USB: Fix drivers/usb/net/Kconfig
Patrick Mochel [Fri, 26 Mar 2004 03:25:25 +0000 (19:25 -0800)]
[PATCH] USB:  Fix drivers/usb/net/Kconfig

This allows the pegasus driver to actually be seen as a config option.
Apparently it's not that popular, though I have confirmed that it still
works on at least the netgear fv101.

22 years ago[PATCH] USB: fix hfc_usb sleeping in irq
Oliver Neukum [Fri, 26 Mar 2004 03:24:29 +0000 (19:24 -0800)]
[PATCH] USB: fix hfc_usb sleeping in irq

you are using GFP_KERNEL in irq and __devinit with hotpluggable code.

      - use proper GFP flags
      - kill __devinit

22 years ago[PATCH] USB: fix typo in previous patch
Oliver Neukum [Fri, 26 Mar 2004 03:23:03 +0000 (19:23 -0800)]
[PATCH] USB: fix typo in previous patch

I screwed up. This corrects it.

22 years ago[PATCH] USB: cleanup of st5481
Oliver Neukum [Fri, 26 Mar 2004 03:21:48 +0000 (19:21 -0800)]
[PATCH] USB: cleanup of st5481

you are using __devinit which must not be used with USB drivers,
in addition you are using some false GFP values and fail to check
some error codes.

  - check for unlink due to removal of controller
  - correct GFP values
  - no __devinit in USB

22 years ago[PATCH] USB: fix DMA to stack in ftdi driver
Oliver Neukum [Fri, 26 Mar 2004 03:20:06 +0000 (19:20 -0800)]
[PATCH] USB: fix DMA to stack in ftdi driver

this driver is doing DMA to the stack. Here's the obvious fix.

22 years ago[PATCH] USB: fix bug in usb-skeleton.c
Patrick Boettcher [Fri, 26 Mar 2004 03:18:25 +0000 (19:18 -0800)]
[PATCH] USB: fix bug in usb-skeleton.c

22 years ago[PATCH] USB: usb hiddev stack usage patch
Arjan van de Ven [Thu, 25 Mar 2004 09:19:38 +0000 (01:19 -0800)]
[PATCH] USB: usb hiddev stack usage patch

Patch below fixes some obscenely high stack uage;
struct hiddev_usage_ref_multi is well over 4Kb in size so really doesn't
belong on the stack.

22 years ago[PATCH] USB: fix error paths in kobil_sct
Oliver Neukum [Thu, 25 Mar 2004 09:19:03 +0000 (01:19 -0800)]
[PATCH] USB: fix error paths in kobil_sct

some error codes are incorrect and there's an URB leak in an error path.

22 years ago[PATCH] USB: UHCI: Get rid of excessive spinlocks
Alan Stern [Thu, 25 Mar 2004 09:18:01 +0000 (01:18 -0800)]
[PATCH] USB: UHCI: Get rid of excessive spinlocks

This patch introduces a major simplification into the UHCI driver by
replacing its multiple spinlocks with a single one.  The protected area of
code is slightly larger and there's more possibilities for contention on
an SMP system, but I think that shouldn't be a problem.  Stephen Hemminger
has been kind enough to test this on his SMP computer and he hasn't
encountered any difficulties.

22 years ago[PATCH] USB: UHCI: Improved handling of short control transfers
Alan Stern [Thu, 25 Mar 2004 09:17:18 +0000 (01:17 -0800)]
[PATCH] USB: UHCI: Improved handling of short control transfers

This patch simplies the way the UHCI driver handles short control
transfers.  When a transfer is short the HC will stop handling that
endpoint, and it's necessary to get it going again so that the status
stage of the control transfer can take place.  Currently the driver does
this by allocating a new QH for the transfer and setting its element
pointer to point at the final status TD.  The old QH is recycled.  But
it's not necessary to go to all that trouble; the element pointer in the
original QH can be updated directly.

Normally the element pointer is supposed to be owned by the HC, and it's
not safe to just change its value since the HC may overwrite it at any
time.  But when a transfer is stopped because of a short packet, the
current TD is marked inactive and the HC will not update the element
pointer.  To write an unchanged pointer value back to memory would be a
waste of PCI bus cycles.  Now the UHCI spec doesn't say explicitly that an
HC _can't_ do this, but I've tested both Intel and VIA hardware and
neither of them does.

As a side effect of this change, some of the code for removing QHs can be
eliminated.

22 years ago[PATCH] USB: UHCI: Do short packet detection correctly
Alan Stern [Thu, 25 Mar 2004 09:16:33 +0000 (01:16 -0800)]
[PATCH] USB: UHCI: Do short packet detection correctly

This patch makes some simple changes to the way the UHCI driver does short
packet detection.  The current implementation is incorrect in several
ways:

The Short-Packet-Detect flag is set for OUT transfers, which
yields undefined behavior according to the UHCI spec.

It's not set for URBs with URB_SHORT_NOT_OK, which is just the
opposite of what we want!  Those are the ones where short packets
do matter.

It is set for the last packet in a transfer, which causes an
unnecessary pause in the data flow (except of course that the
pause _is_ necessary when URB_SHORT_NOT_OK is set).

The patch also implements the URB_NO_INTERRUPT flag for bulk transfers,
which can help improve system performance by reducing interrupt overhead.

22 years ago[PATCH] USB: Don't trust raw descriptor length in devioc.
Alan Stern [Thu, 25 Mar 2004 09:06:47 +0000 (01:06 -0800)]
[PATCH] USB: Don't trust raw descriptor length in devioc.

This is a very minor point, unlikely ever to come up.  But just in case...

It's conceivable that a device might transmit different values for a
configuration descriptor's wTotalLength the first time we ask for it (in
order to get the length) and the second time (to get the entire
descriptor).  Should that improbable event occur, the rawdescriptor buffer
could be allocated using a size that's smaller than the length recorded in
the rawdescriptor itself.  This patch protects devio.c against such a
problem.

If you feel this sequence of events is too unlikely to worry about, then
don't bother to apply the patch.

22 years ago[PATCH] USB: race condition in open of w9968cf
Oliver Neukum [Thu, 25 Mar 2004 08:53:25 +0000 (00:53 -0800)]
[PATCH] USB: race condition in open of w9968cf

there's a race in how open handles multiple openers.
You implement exclusive opening and wait for close
in case of further openers. However if there are more than one
waiter, only one of them must be allowed to proceed.

22 years ago[PATCH] USB: Unusual_devs.h update
Alan Stern [Thu, 25 Mar 2004 08:52:38 +0000 (00:52 -0800)]
[PATCH] USB: Unusual_devs.h update

On Thu, 18 Mar 2004, Urban Borstnik wrote:

> The 2.6.4 and 2.6.3 (and possibly some earlier) kernels log the
> following message when I plug in a Lexar CompactFlash Reader:
>
> usb-storage: This device (05dc,b002,0113 S 06 P 50) has unneeded
> SubClass and Protocol entries in unusual_devs.h
>    Please send a copy of this message to <linux-usb-devel@lists.sourceforge.net>
>
> Otherwise it has been working very well with the devepment kernels on at
> least 4 machines ever since a trivial fix was introduced for this device
> to unusual_devs.c over a year ago.
>
> Best regards,
> Urban.

Thank you for sending this in.  An update will appear soon.

22 years ago[PATCH] USB: fix race in ati_remote and small cleanup
Torrey Hoffman [Thu, 25 Mar 2004 08:41:16 +0000 (00:41 -0800)]
[PATCH] USB: fix race in ati_remote and small cleanup

On Thu, 2004-03-18 at 07:44, Oliver Neukum wrote:
> Hi,
>
> you must use set_current_state() only after usb_submit_urb() with GFP_KERNEL
> as second argument, because it may sleep to allocate memory and is woken up
> resetting the state to TASK_RUNNING. In that case you had a busy polling loop.
> Furthermore, always use wake_up unconditionally. It checkes anyway.

Thanks for reviewing this code, I'm new to Linux driver development and
more eyes on my work is a good thing.   I've actually been working on
some more cleanups to the driver to fix the race between open and
disconnect, and was just about to send it in...

So, the attached patch against 2.6.5-rc1-mm1 includes a mutex to lock
the open/disconnect paths, modelled after the usb-skeleton driver. It
includes Oliver Neukum's fixes and other cleanups as well.

22 years ago[PATCH] USB: kernel-doc comment tweak in vicam.c
Michael Still [Thu, 25 Mar 2004 08:20:30 +0000 (00:20 -0800)]
[PATCH] USB: kernel-doc comment tweak in vicam.c

Correct kernel-doc comment with incorrect parameters documented

22 years ago[PATCH] USB: Regularize unusual_devs entries for Genesys Logic
Alan Stern [Thu, 25 Mar 2004 08:15:24 +0000 (00:15 -0800)]
[PATCH] USB: Regularize unusual_devs entries for Genesys Logic

I saw that you just added another unusual_devs.h entry submitted by
Henning Schild, for vendor ID 0x05e3.  It turns out this is our old friend
Genesys Logic.

A recent message from Brad Campbell included a Windows driver file by
Genesys, and it included these lines:

USB\VID_05E3&PID_0700.DeviceDesc="USB Card Reader"
USB\VID_05E3&PID_0701.DeviceDesc="USB Optical Device"
USB\VID_05E3&PID_0702.DeviceDesc="USB Mass Storage Device"

Based on this information, we can clean up the 0x05e3 entries in
unusual_devs.h.  This patch puts all three entries into a regularized
form.

22 years ago[PATCH] USB: Unusual_devs update
Alan Stern [Thu, 25 Mar 2004 08:14:29 +0000 (00:14 -0800)]
[PATCH] USB: Unusual_devs update

On Tue, 16 Mar 2004, John Katzmaier wrote:

> Hi,
>
> Just wanted to let you know that when using my Panasonic PV-SD4090 digital
> camera with kernel 2.6.3, I found this entry in my logs:
>
> Mar 16 21:43:27 rocket kernel: usb-storage: Vendor: Panasonic
> Mar 16 21:43:27 rocket kernel: usb-storage: Product: LS-120 Camera
> Mar 16 21:43:27 rocket kernel: usb-storage: This device (04da,0901,0109 S 00 P
> 00) has an unneeded Protocol entry in unusual_devs.h
> Mar 16 21:43:27 rocket kernel:    Please send a copy of this message to
> <linux-usb-devel@lists.sourceforge.net>
>
> I thought it might be best to follow its instructions and so I did.
>
> Thanks.
>
> -John Katzmaier

Thank you for sending this in.  An update will appear in a forthcoming
kernel.

Greg, here's the patch.

22 years ago[PATCH] USB: fix osdl bugid 2006 (timer init and fault paths)
David Brownell [Thu, 25 Mar 2004 08:06:44 +0000 (00:06 -0800)]
[PATCH] USB: fix osdl bugid 2006 (timer init and fault paths)

Need to initialize timers a bit earlier to handle
certain initialization faults.

OSDL bug 2006

Need to initialize some timers a bit earlier to clean up safely
after very early init HCD failures.

Those early init faults were needlessly mysterious since they
didn't emit diagnostics except at HCD discretion.

22 years ago[PATCH] USB: fix osdl bugid 481 (USB boot messages)
David Brownell [Thu, 25 Mar 2004 07:56:56 +0000 (23:56 -0800)]
[PATCH] USB: fix osdl bugid 481 (USB boot messages)

Some boot-time messages were obnoxiously long because
they used "old-style" diagnostics.

OSDL bugid 481

Get rid of most remaining "old style" diagnostics from usbcore.
Most messages use driver model style diagnostics.  Messages that
don't have an associated device use the standard kernel printk
wrappers and label themselves as from "usbcore".  (Except that
there's no such wrapper for KERN_ERR.)

This doesn't touch usbfs, "config.c" (Alan's patches do this), or
usb_reset_device() (needs a more substantial overhaul).  Or any
other USB drivers (notably HID).

22 years ago[PATCH] USB: Code improvements for core/config.c
Alan Stern [Thu, 25 Mar 2004 07:17:16 +0000 (23:17 -0800)]
[PATCH] USB: Code improvements for core/config.c

This patch makes some improvements to the code in config.c.

Create a subroutine to handle the repeated task of skipping
forward to the next descriptor of a certain type.

Remove some fairly useless debugging messages (they could
never even have been enabled in the pre-as221 code).

Verify that endpoint descriptors don't have an address
equal to 0 (as well as not being above 15).

Rename some local variables so they are a little more
consistent and meaningful.

Despite all the changes, the functionality should remain the same.
Please apply.

22 years ago[PATCH] USB: Improve core/config.c error messages
Alan Stern [Thu, 25 Mar 2004 07:16:15 +0000 (23:16 -0800)]
[PATCH] USB: Improve core/config.c error messages

This patch improves error reporting in the configuration parsing routines.
It also adds a few extra minor tweaks.

#include linux/config.h and make the usual DEBUG settings
available.

Use the driver-model dev_xxx() macros for log output.

Be much more explicit about the nature of errors, including
configuration, interface, and altsetting numbers where
appropriate.

Log fatal problems as errors, non-fatal ones as warnings.

Remove a #define'd constant that is already set in linux/usb.h.

Fix some variables declared as pointer to char that really
should be pointers to unsigned char.

Replace a whole bunch of "out-of-memory" error messages with
a single message.

Wrap source lines that are longer than 80 columns (but not
log output lines!).

Clean up the logic for detecting errors when retrieving a
configuration descriptor.

Apart from the log messages themselves, this introduces no functional
changes.

22 years ago[PATCH] USB: USB gadgets can autoconfigure endpoints
David Brownell [Thu, 25 Mar 2004 05:43:15 +0000 (21:43 -0800)]
[PATCH] USB: USB gadgets can autoconfigure endpoints

This adds some code that gadget drivers can call from
driver initialization, to simplify the "configure against
this hardware" step.

Add endpoint autoconfiguration for gadget drivers.

Endpoint selection is currently being done with conditional compilation.
That doesn't look nice, but more importantly it doesn't work well with
the model that some distributions won't be custom-matched to hardware.
Say, a PDA distro running on iPaq (pxa2xx_udc) or Axim (mq11xx_udc).

This code just makes it easier for drivers to match to hardware at
run-time.  It's a convenience function for something they could have
been doing already, but weren't.

22 years ago[PATCH] USB: add cytherm driver to the build
Greg Kroah-Hartman [Thu, 25 Mar 2004 03:53:52 +0000 (19:53 -0800)]
[PATCH] USB: add cytherm driver to the build

22 years ago[PATCH] USB: new cypress thermometer driver
Erik Rigtorp [Thu, 25 Mar 2004 03:53:27 +0000 (19:53 -0800)]
[PATCH] USB: new cypress thermometer driver

22 years ago[PATCH] USB: rtl8150 update
Petko Manolov [Thu, 25 Mar 2004 03:31:25 +0000 (19:31 -0800)]
[PATCH] USB: rtl8150 update

adds two more vid/did and better packet error statistics.  Link
detection also has been added.

22 years ago[PATCH] USB: gadget zero does endpoint autoconfig
David Brownell [Thu, 25 Mar 2004 03:30:58 +0000 (19:30 -0800)]
[PATCH] USB: gadget zero does endpoint autoconfig

Here's where all those preceding autoconfig patches start
to fit together:  one gadget driver gets rid of almost all
the controller-specific #ifdeffery.

Two of the other gadget drivers can do the same thing,
and just as easily:  file storage, and serial.  (I'll
hope their maintainers do those changes though.)

The "ether.c" gadget driver is a lot more complicated to
do this way since it has to cope with some differences
by switching to alternate protocols (CDC Ethernet vs
a subset) and soon be able to handle RNDIS.  So that'll
be a while yet.

Gadget Zero learns to autoconfigure.

    - Gets rid of remaining controller-specific #ifdeffery.  Now
      hardware choices can be made at run time too (not just
      compile time).

    - Simplifies its use of the "DEBUG" CPP symbol.

    - Force device to report itself consistently as self-powered.

22 years ago[PATCH] USB: kernel-doc comment tweak
Michael Still [Thu, 25 Mar 2004 03:05:11 +0000 (19:05 -0800)]
[PATCH] USB: kernel-doc comment tweak

Correct kernel-doc comment with incorrect parameters documented

22 years ago[PATCH] USB: FTDI 232BM "USB-RS232 OptoBridge"
Gude Analog- und Digitalsysteme GmbH [Thu, 25 Mar 2004 03:04:37 +0000 (19:04 -0800)]
[PATCH] USB: FTDI 232BM "USB-RS232 OptoBridge"

we (the german company Gude Analog und Digitalsysteme GmbH,
http://www.gude.info) have manufactored a USB<->RS232 adapter with
galvanic isolated RS232 Interface. Data is transmitted by optical
signals only.

The Product's name is "USB-RS232 OptoBridge".
We used the FTDI 233BM Chip with PID 0xE889 (VID 0x0403).
The Product will be released this Cebit 2004.

Could you please extend the ftdi_sio code with this PID.
You find a .diff file attached which I have tested with kernel 2.6.4

At http://ftdi-usb-sio.sourceforge.net/ I saw that you provide a patch
for 2.4.x kernels. Will our PID also find it's way in this back-ported
driver patch?

In the future (in the next 10 month), our company will have some more
Products using the FTDI Chip. The PID's FTDI already allocated for us
are: E888 to E88F and E808 to E80F

Thank you very much,
   Martin Bachem

22 years ago[PATCH] forgotten pci_dma_mapping_error on x86-64
Jeff Garzik [Thu, 25 Mar 2004 01:06:31 +0000 (17:06 -0800)]
[PATCH] forgotten pci_dma_mapping_error on x86-64

x86-64 needs this (obvious) patch, due to the rename.

22 years ago[PATCH] ia64: don't prompt for the floppy driver
Andrew Morton [Thu, 25 Mar 2004 00:09:28 +0000 (16:09 -0800)]
[PATCH] ia64: don't prompt for the floppy driver

From: David Mosberger <davidm@napali.hpl.hp.com>

From: Bjorn Helgaas <bjorn.helgaas@hp.com>

We can't build floppy.o on ia64, so why bother asking?

22 years ago[PATCH] don't show cdroms in /proc/partitions
Andrew Morton [Thu, 25 Mar 2004 00:09:13 +0000 (16:09 -0800)]
[PATCH] don't show cdroms in /proc/partitions

From: Jens Axboe <axboe@suse.de>

Currently SCSI cdroms show up in /proc/partitions in 2.6, they didn't in
2.4.  And ATAPI cdroms don't show up either.  Mark both as genhd removable
for now, when they are partionable this can be updated.

22 years ago[PATCH] Broken CDROMs default to writeable
Andrew Morton [Thu, 25 Mar 2004 00:08:59 +0000 (16:08 -0800)]
[PATCH] Broken CDROMs default to writeable

From: Jens Axboe <axboe@suse.de>

If the drive doesn't support GPCMD_READ_DISC_INFO at all, permit writeable
opens.

22 years ago[PATCH] ext2&3: use the right i_flags in find_group_orlov()
Andrew Morton [Thu, 25 Mar 2004 00:08:43 +0000 (16:08 -0800)]
[PATCH] ext2&3: use the right i_flags in find_group_orlov()

Spotted by Jorn Engel <joern@wohnheim.fh-wedel.de>: both the generic and
fs-specific parts of the inode have an i_flags.  find_group_orlov() is using
the wrong one.

22 years ago[PATCH] null-terminate sb->s_id
Andrew Morton [Thu, 25 Mar 2004 00:08:29 +0000 (16:08 -0800)]
[PATCH] null-terminate sb->s_id

strncpy() may not null-terminate the destination.

22 years ago[PATCH] ppc64: SMT snooze fix in idle loop
Andrew Morton [Thu, 25 Mar 2004 00:08:17 +0000 (16:08 -0800)]
[PATCH] ppc64: SMT snooze fix in idle loop

From: Olof Johansson <olof@austin.ibm.com>

A smt_snooze_delay of 0 is supposed to mean "disabled", but current idle
loop logic doesn't take that into account and snoozes immediately instead.

Below patch fixes the logic in the idle loop, as well as cleans up the test
a bit.  An idling processor might no longer see a snooze change
immediately, but that's not needed anyway.

22 years ago[PATCH] ppc64: getdents patch for 32 -> 64 converter
Andrew Morton [Thu, 25 Mar 2004 00:08:02 +0000 (16:08 -0800)]
[PATCH] ppc64: getdents patch for 32 -> 64 converter

From: Anton Blanchard <anton@samba.org>

From: Marcus Meissner <meissner@suse.de>

With 2.6.4 we now have the glorious hidden d_type passing in getdents.

glibc CVS expects this to be passed if we have a kernel version after
2.6.4, so we have to also handle it in the 32bit syscall converter.

22 years ago[PATCH] ppc64: fix mount compat translation bug
Anton Blanchard [Wed, 24 Mar 2004 13:44:16 +0000 (05:44 -0800)]
[PATCH] ppc64: fix mount compat translation bug

From Dave Miller:

We weren't handling a NULL 'type' argument to mount() properly,
f.e. this happens legitimately when changing the options of an
existing mount.

22 years agoMerge davem@nuts.davemloft.net:/disk1/BK/net-2.6
David S. Miller [Wed, 24 Mar 2004 06:40:42 +0000 (22:40 -0800)]
Merge davem@nuts.davemloft.net:/disk1/BK/net-2.6
into kernel.bkbits.net:/home/davem/net-2.6

22 years agoJFS: don't use global lock in lmLogSync when local lock is sufficient
Dave Kleikamp [Wed, 24 Mar 2004 08:17:44 +0000 (02:17 -0600)]
JFS: don't use global lock in lmLogSync when local lock is sufficient

I stupidly used the global jfs_log_sem to protect log->sb_list when
implementing the shared journal stuff.  Since we already hold
LOG_LOCK, it makes more sense to use that to protect log->sb_list.
This caused horrible serialization when running on lots of jfs
volumes.

22 years agoJFS: Prevent hang in __lock_metapage
Dave Kleikamp [Wed, 24 Mar 2004 08:11:52 +0000 (02:11 -0600)]
JFS: Prevent hang in __lock_metapage

Remove the hold_metapage call from txLog to prevent a hang.
While investigating this one, I audited all functions that held
metapage locks and found several error paths that did not release
them correctly.  These are fixed as well.

22 years ago[IPSEC]: Missing family settings in af_key and xfrm_user.
John Williams Floroiu [Wed, 24 Mar 2004 06:18:54 +0000 (22:18 -0800)]
[IPSEC]: Missing family settings in af_key and xfrm_user.

22 years ago[IPV6]: Error is option length increases amidst corking.
Krishna Kumar [Wed, 24 Mar 2004 06:05:05 +0000 (22:05 -0800)]
[IPV6]: Error is option length increases amidst corking.

22 years ago[NET_SCHED]: Trailing whitespace cleanup in TBF qdisc.
Dmitry Torokhov [Wed, 24 Mar 2004 05:57:06 +0000 (21:57 -0800)]
[NET_SCHED]: Trailing whitespace cleanup in TBF qdisc.

22 years ago[NET_SCHED]: Fix class reporting in TBF qdisc.
Dmitry Torokhov [Wed, 24 Mar 2004 05:55:48 +0000 (21:55 -0800)]
[NET_SCHED]: Fix class reporting in TBF qdisc.

The patch below fixes issue with 'tc class show dev <dev>' not showing any
classes when TBF qdisc is present in the chain. PLease consider for
inclusion.

22 years ago[IPVS]: Fix to hold the lock before updating a service
Wensong Zhang [Wed, 24 Mar 2004 05:54:40 +0000 (21:54 -0800)]
[IPVS]: Fix to hold the lock before updating a service

Brett E. <brettspamacct@fastclick.com> noticed the missing service lock
for editing dest.

Julian Anastasov <ja@ssi.bg> provided the patch.

22 years ago[IPV4]: Zap CONFIG_INET_ECN, just always off by default.
David S. Miller [Wed, 24 Mar 2004 05:53:57 +0000 (21:53 -0800)]
[IPV4]: Zap CONFIG_INET_ECN, just always off by default.

22 years agoMerge http://linux-lksctp.bkbits.net/lksctp-2.5.work
David S. Miller [Wed, 24 Mar 2004 04:00:22 +0000 (20:00 -0800)]
Merge http://linux-lksctp.bkbits.net/lksctp-2.5.work
into nuts.davemloft.net:/disk1/BK/net-2.6

22 years agoMerge nuts.davemloft.net:/disk1/BK/network-2.6
David S. Miller [Wed, 24 Mar 2004 03:20:40 +0000 (19:20 -0800)]
Merge nuts.davemloft.net:/disk1/BK/network-2.6
into nuts.davemloft.net:/disk1/BK/net-2.6

22 years ago[PATCH] fix ppc32 sys_swapcontext
Paul Mackerras [Tue, 23 Mar 2004 23:27:03 +0000 (15:27 -0800)]
[PATCH] fix ppc32 sys_swapcontext

This fixes a bug in the swapcontext system call on ppc32.

On ppc32, the system call entry only saves the volatile registers,
except in the case of a few system calls (e.g.  fork) which need all the
registers saved.  Swapcontext needs all the registers but we weren't
saving them all. So fixes that.

22 years ago[PATCH] Threaded core dumps for PPC32
Paul Mackerras [Tue, 23 Mar 2004 23:26:51 +0000 (15:26 -0800)]
[PATCH] Threaded core dumps for PPC32

At the moment, ppc32 kernels will oops if a threaded program tries to
dump core.  We call dump_fpu with a NULL regs pointer, which it tries
to dereference.

This fixes the issue by implementing the hooks used in doing threaded
core dumps properly.

22 years agoMerge davem@nuts.davemloft.net:/disk1/BK/sparc-2.6
David S. Miller [Tue, 23 Mar 2004 17:27:24 +0000 (09:27 -0800)]
Merge davem@nuts.davemloft.net:/disk1/BK/sparc-2.6
into kernel.bkbits.net:/home/davem/sparc-2.6

22 years ago[SPARC64]: Handle NULL type arg properly in sys32_mount().
David S. Miller [Tue, 23 Mar 2004 16:26:40 +0000 (08:26 -0800)]
[SPARC64]: Handle NULL type arg properly in sys32_mount().

22 years ago[PATCH] Cosmetic fix of BMAC boot messages
Benjamin Herrenschmidt [Tue, 23 Mar 2004 09:31:57 +0000 (01:31 -0800)]
[PATCH] Cosmetic fix of BMAC boot messages

This fixes the display of the boot messages on the BMAC driver (pmac
only).  It used to be messed up in 2.6

22 years ago[PATCH] More pmac-zilog sleep fix
Benjamin Herrenschmidt [Tue, 23 Mar 2004 09:31:46 +0000 (01:31 -0800)]
[PATCH] More pmac-zilog sleep fix

In the long story of "BenH can't get a simple fix right the first time",
please add this one to pmac_zilog, and now people should enjoy really
working sleep again on pmac laptops ...

If the serial port was closed, we could use an uninitialized "pwr_delay"
and pass that to schedule_timeout().

22 years ago[SCTP] Avoid the use of hackish CONFIG_IPV6_SCTP__ option.
Sridhar Samudrala [Tue, 23 Mar 2004 02:58:31 +0000 (18:58 -0800)]
[SCTP] Avoid the use of hackish CONFIG_IPV6_SCTP__ option.

22 years ago[SCTP] Don't do any ppid byte-order conversions as it is opaque to SCTP.
Sridhar Samudrala [Tue, 23 Mar 2004 02:50:56 +0000 (18:50 -0800)]
[SCTP] Don't do any ppid byte-order conversions as it is opaque to SCTP.

22 years ago[PATCH] rename dma_error()
Andrew Morton [Tue, 23 Mar 2004 02:32:21 +0000 (18:32 -0800)]
[PATCH] rename dma_error()

We're getting namespace collisions from the new dma_error(), and it wasn't a
well-chosen identifier.  Rename it to dma_mapping_error().

22 years ago[PATCH] tgafb: missing include
James Simmons [Tue, 23 Mar 2004 02:09:08 +0000 (18:09 -0800)]
[PATCH] tgafb: missing include

This is a temporary fix, pending fuller TGA updates.

From: Christian Vogel:

    drivers/video/tgafb.c is missing a include, complaining about
    color_table[] and others not being defined.

22 years ago[PATCH] i386 Kconfig typo fix
Andrew Morton [Mon, 22 Mar 2004 23:25:52 +0000 (15:25 -0800)]
[PATCH] i386 Kconfig typo fix

From: Armin Schindler <armin@melware.de>

just a small patch to fix a typo.

22 years ago[PATCH] fbcon font cloning fix
Andrew Morton [Mon, 22 Mar 2004 23:25:38 +0000 (15:25 -0800)]
[PATCH] fbcon font cloning fix

From: Petr Baudis <pasky@ucw.cz>

This patch fixes a bug which I hit when migrating from 2.4.  Basically,
when I do setfont during the system boot, the then-spawned ttys do not
retain the new font but fall back to the default one.

I've tracked that down to a clearly bogus test in fbcon_set_display(),
because vc->vc_font.width is not set at that time yet (no font has been
loaded for the new vc).  But even if it would (or this was meant to test
against tmp->vc_font.width), it would mean only *HUGE* fonts would be
retained.  And even if there were *two* bugs there and it was supposed to
be less-than there, I couldn't make a sense of the test.

22 years ago[PATCH] Work around compiler error in proc_misc.c
Andrew Morton [Mon, 22 Mar 2004 23:25:24 +0000 (15:25 -0800)]
[PATCH] Work around compiler error in proc_misc.c

From: Alan Stern <stern@rowland.harvard.edu>

A change which was recently applied to fs/proc/proc_misc.c included a comment
about splitting a seq_printf into two pieces to work around a bug in
gcc-2.95.3.  Unfortunately gcc-2.96 still chokes on the statements.  The
patch below makes it work better and tidies the code up a bit.

22 years ago[PATCH] sh: various fixes
Andrew Morton [Mon, 22 Mar 2004 23:25:10 +0000 (15:25 -0800)]
[PATCH] sh: various fixes

From: Paul Mundt <lethal@linux-sh.org>

This is the rest of the sh update, which includes everything else
sh-specific, general cleanups, bugfixes, etc.  Nothing really eventful.

22 years ago[PATCH] sh: sh-specific framebuffer updates
Andrew Morton [Mon, 22 Mar 2004 23:24:24 +0000 (15:24 -0800)]
[PATCH] sh: sh-specific framebuffer updates

From: Paul Mundt <lethal@linux-sh.org>

This includes sh-specific framebuffer updates, including updates to hitfb and
pvr2fb, as well as adding sh to the pgprot_writecombine() users in fb_mmap().

22 years ago[PATCH] sh: hugetlb support
Andrew Morton [Mon, 22 Mar 2004 23:24:11 +0000 (15:24 -0800)]
[PATCH] sh: hugetlb support

From: Paul Mundt <lethal@linux-sh.org>

This implements hugetlb support for SH-4.  SH-4 supports 1k/4k/64k/1MB pages,
since we're only interested in the 64k/1MB sizes, this is what we support.

The sh hugetlbpage code borrows heavily off of the sparc64 port, which works
fine for these cases at this point in time.

22 years ago[PATCH] sh: DMA Mapping API
Andrew Morton [Mon, 22 Mar 2004 23:23:59 +0000 (15:23 -0800)]
[PATCH] sh: DMA Mapping API

From: Paul Mundt <lethal@linux-sh.org>

This implements the DMA mapping API for sh, as well as cleaning up some
sh-specific DMA drivers.

22 years ago[PATCH] sh: DAC ODD driver
Andrew Morton [Mon, 22 Mar 2004 23:23:33 +0000 (15:23 -0800)]
[PATCH] sh: DAC ODD driver

From: Paul Mundt <lethal@linux-sh.org>

SuperH DAC OSS driver.

22 years ago[PATCH] sh: port sh-sci driver to the new API
Andrew Morton [Mon, 22 Mar 2004 23:23:22 +0000 (15:23 -0800)]
[PATCH] sh: port sh-sci driver to the new API

From: Paul Mundt <lethal@linux-sh.org>

This ports the sh-sci driver to the new API.  sh and h8 both use this.  The
intention is to leave the drivers/char sh-sci in place for a short period of
time until all the h8 people are on the new driver (sh no longer uses the
drivers/char version).