Alan Stern [Thu, 17 Jul 2003 07:46:26 +0000 (00:46 -0700)]
[PATCH] USB: Handle over current inputs on all Intel controllers
This patch for the UHCI driver changes the test for over current inputs,
which can cause false Resume indications with some of Intel's USB
controllers. Previously the code only checked for one specific controller
chip, but now another one has turned up that exhibits the same flaw. It
seems best just to check for Intel being the manufacturer, especially
since it doesn't hurt to check for the condition when it isn't present or
is only temporary.
Adrian Bunk [Thu, 17 Jul 2003 03:43:53 +0000 (20:43 -0700)]
[PATCH] remove all #include <blk.h>'s
This causes blk.h to print a warning and removes all uses of blk.h.
I've tested the compilation in 2.6.0-test1 with a .config that tries to
compile as many drivers as possible.
- Reset netdevice to defaults in offline processing.
- Fix checksumming.
- Fix routing status display.
- Get rid of _ccw_device_get_device_number in qeth.
- Inline some functions to save stack space.
- Fix two memory leaks.
- Clear pending status in cio_enable_subchannel.
- Don't call device_unregister from interrupt context.
- Fix refcounting problems on static device structures for the ccw console.
- Delete timeouts for qdio after successful startup.
Frank Cusack [Thu, 17 Jul 2003 03:28:19 +0000 (20:28 -0700)]
[PATCH] Allow unattended nfs3/krb5 mounts
The comment in nfs_get_root() basically describes the patch:
Some authentication types (gss/krb5, most notably)
are such that root won't be able to present a
credential for GETATTR (ie, getroot()).
An easy way (ie, without this patch) to have unattended mounts is to
have a root/host@REALM (or similar) principal stashed in a keytab, which
root (rather, gssd) can use. However, this might not be desirable for
many sites. In any case, RFC2623 specifically describes the problem
addressed here.
Notes:
- Root inode gets inum of 1. This doesn't seem to matter, but may be
aesthetically unpleasing. I wanted to choose an inum unlikely to
conflict with an existing inum (although NFS has specific support
for that). It looks like more work than it's worth to change the
inum after the info is available. AFAICT it's not critical info.
- Solaris has this "wierd" (but understandable) behavior that after
mounting without a credential, the mount point is not visible at all
until an access is attempted with a credential. This now-you-see-it-
now-you-don't behavior doesn't seem worthwhile to reproduce here.
- Unfortunately, MOUNT_VERSION must go to 5. Some kernels with ver 4
do not understand pseudoflavor. Keeping it at 4 means that the
userland mount can't know for sure whether the kernel accepted the
option or not. (Unless I'm missing some hack that could be done.)
It works in my environment, against a netapp server (with the rpcsec_gss
patch I provided earlier).
Michael Hunold [Thu, 17 Jul 2003 03:10:19 +0000 (20:10 -0700)]
[PATCH] Update Technisat Skystar2 DVB driver
This is a follow-up patch to my latest patch series. It fixes the
problems and flaws Greg KH pointed out.
There was a typo in the Makefile, so the driver was never compiled. But
I assumed that it built without errors. Doh!
- update the Technisat Skystar2 driver:
- follow kernel coding rules, change comments
- change function return values from u32 to int where possible
- make all functions static
- comment out unused functions
- fix return values of functions to follow kernel rules
- removed bogus delay, read and write functions
Michael Hunold [Thu, 17 Jul 2003 03:10:12 +0000 (20:10 -0700)]
[PATCH] Add two drivers for USB based DVB-T adapters
- add two new usb dvb drivers:
o dvb-ttusb-budget.c for Technotrend/Hauppauge Nova-USB devices
(Thanks to Holger Waechtler <holger@convergence.de> and elix Domke
<tmbinc@gmx.net>)
o dvb-ttusb-dec.c for Technotrend/Hauppauge USB DEC2000-T devices
(Thanks to Alex Woods <linux-dvb@giblets.org>)
Michael Hunold [Thu, 17 Jul 2003 03:09:55 +0000 (20:09 -0700)]
[PATCH] Update various other frontend drivers
- In alps_tdlb7.c read SP8870 status reg to clear pending irqs in
FE_SET_FRONTEND, as suggested by Ragnar Sundblad to avoid frontend
hang-ups.
- the vp310 support in mt312.c support should be configured to 90Mhz,
too. skystar2 driver with bugfixed master_xfer() should probably
work now.
Michael Hunold [Thu, 17 Jul 2003 03:09:33 +0000 (20:09 -0700)]
[PATCH] Add two drivers for Hexium frame grabber cards
- add drivers for the Orion and Gemini frame grabber cards, based on
the saa7146. For details, see http://www.hexium.hu/. Thanks to
Michael Hunold <michael@mihu.de>.
Michael Hunold [Thu, 17 Jul 2003 03:09:07 +0000 (20:09 -0700)]
[PATCH] More saa7146 driver core updates
- separate all EXPORT_SYMBOL stuff to saa7146_ksyms.c
- properly stop capturing when no more buffers are available (missing
register upload)
- make extension data a per-device member, not a per-extension member,
so that every device can have it's own private data (necessary for
DVB drivers which handle more than one device)
- implement field based capturing, ie. capturing fields to different
capture buffers
- change default old of capture fields for ALTERNATE mode (comply with
bttv)
- follow these changes in various analog saa7146 based cards drivers
(mxb.c and dpc7146.c)
- follow these changes in various saa7146 based budget card drivers
Michael Hunold [Thu, 17 Jul 2003 03:08:58 +0000 (20:08 -0700)]
[PATCH] Update the DVB av7110 driver
- Fix to 'Sharing SDRAM between TT re-insertion and OSD...' - OSD
didn't get the maximum available memory in one piece; needs new
firmware version 0x2616
- Improved performance when setting palette with full 256 color OSD
- read MAC from EEPROM if available, contributed by Michael Glaum
<mglaum@kvh.com>
- add some MODULE_PARM_DESC for modinfo
- add support for the "analog module" available for DVB-C cards: the
saa7113 is initialized and some more v4l2 ioctls are available. you
can use "xawtv" now to switch between "dvb" and "analog" input. when
you are one the "analog" input, you can tune in analog channels.
Michael Hunold [Thu, 17 Jul 2003 03:08:31 +0000 (20:08 -0700)]
[PATCH] Update dvb frontend drivers
- grundig_29504-401.c: fix charge pump and band switch setting bug,
caught by Robert Schlabbach <robert_s@gmx.net>
- grundig_29504-401.c: pass apply_frontend_param() return value to
upper layers
- grundig_29504-401.c: try to make a more specific detection mechanism
- grundig_29504-491.c:remove bogus out-of-range check, FEC table index
is limited to 0...7 due to &= ~0x03 anyway...
- nxt6000.c: Patch by Paul Andreassen: Add Support for Comtech
DVBT-6k07 (PLL IC: SP5730)
- ves1820.c: use Robert Schlabbach's suggestions for CLKCONF (0x03) and
CARCONF (0x04)
- alps_bsrv2.c: don't enable voltage on init + inversion bugfix
Michael Hunold [Thu, 17 Jul 2003 03:08:25 +0000 (20:08 -0700)]
[PATCH] Major dvb net code cleanup, many fixes
- code review and fix the old race condition in dev->set_multicast_list
- use tq_schedule instead of tq_immediate
- remove card_num and dev_num from struct dvb_net (now obsolete)
- prevent interface from being removed while it is in use
- allow add/remove only for the superuser
- set check-CRC flag on section filter to drop broken packets
- some more debug printfs in filter handling code
- cleaned up and commented packet reception handler
- fix formatting
Michael Hunold [Thu, 17 Jul 2003 03:08:09 +0000 (20:08 -0700)]
[PATCH] Update the saa7146 driver core
- fix WRITE_RPS0 and WRITE_RPS1 inlines, fix usage in mxb and budget
drivers
- export "saa7146_start_preview" and "saa7146_stop_preview" to allow
drivers to start and stop video overlay (necessary for analog module
support in the av7110 driver)
- fix i2c implementation: some frontend drivers transfer a huge amount
of firmware data (> 30kB), speed up the transmission by busy waiting
between byte transfers for bigger transmissions
- change ioctl function in various driver to accept a saa7146
filehandle instead of a saa714 device structure
Peter Osterlund [Thu, 17 Jul 2003 02:56:07 +0000 (19:56 -0700)]
[PATCH] Incorrect timeout in CDROM_SEND_PACKET ioctl
The CDROM_SEND_PACKET ioctl passes a struct cdrom_generic_command from
user space, which contains a timeout field.
The timeout is measured in jiffies, but the conversion from user to
kernel jiffies is missing, which makes the timeout 10 times shorter than
it should be in 2.5 kernels on x86. This causes CDRW formatting with
cdrwtool to fail. The following patch fixes this problem.
Rudo Thomas [Thu, 17 Jul 2003 02:05:48 +0000 (19:05 -0700)]
[PATCH] fix emu10k1 removal oops
All of the cleanup functions in sound/oss/emu10k1/main.c were incorrectly
marked as __devinit. This little one fixes it, so that the module no longer
oopses when being removed.
Since the IO-APIC irq disable fix went in we can now enable
the proper IRQ disabling in the IDE driver again. That had
been disabled due to the problems with UP IO-APIC.
Steve French [Wed, 16 Jul 2003 15:36:51 +0000 (10:36 -0500)]
Fix inverted kmalloc parm ordering (noticed by Zwane) that caused oops on mounts of long server names (reported on bugzilla). Fix multiuser mount option.
David Mosberger [Wed, 16 Jul 2003 12:44:13 +0000 (05:44 -0700)]
ia64: If the compiler supports it, use attribute (model (small)) to
tell the compiler that per-CPU variables can be addressed
with "addl".
On the simulator kernel, this saves about 2776 bytes in the
kernel image. On a zx1 kernel, it saves about 5593 bytes.
As per-CPU variables are used more, these savings will
increase, of course.
David Mosberger [Tue, 15 Jul 2003 09:40:35 +0000 (02:40 -0700)]
ia64: Patch by Arun Sharma: Make execve()ing of ia32 tasks work again.
The impact on native ia64 fork+execve performance as measured by
LMbench is in the noise range (plus or minus 0.1%). The first two
hunks in the patch are not together because we wanted to hide the
memory latency.
David Brownell [Tue, 15 Jul 2003 07:54:08 +0000 (00:54 -0700)]
[PATCH] USB: gadget zero learns about pxa2xx udc
The original code needed some updates to work properly with
the USB Device Controller found in Intel's PXA 2xx processors.
- SET_INTERFACE and SET_CONFIGURATION involve hardware
automagic: all endpoints get reset. This is a PITA,
and will likely get more work. (Seems like the reset
is only partial, hosts need to CLEAR_HALT themselves...)
What this does is to handle -ECONNABORTED notifications
from pxa2xx_udc, in those cases. In general, gadget
drivers need to reset endpoints themselves, since the
lower levels (hardware!) won't know how the endpoints
are allocated between interfaces and altsettings.
- The config symbol will be CONFIG_USB_PXA2XX, since the
same controller (modulo errata) is in several processors
other than the "older" pxa250.
- This also adds an "i/o pattern" parameter, so that it
can continue to use the "all zeroes" pattern or switch
to something else. The initial "something else" is an
easily predicted "mod63" pattern.
David Brownell [Tue, 15 Jul 2003 07:53:55 +0000 (00:53 -0700)]
[PATCH] USB: usbtest, autoconfigure from descriptors
Not all gadget controllers support ep2in-bulk and ep2out-bulk,
unlike the EZ-USB (non-FX2) devices or the net2280.
So this patch teaches "usbtest" how to look at the descriptors
it's given, and use the appropriate endpoints. This helps
support Linux test devices using hardware like the pxa2xx UDC,
and other controllers.
David Brownell [Tue, 15 Jul 2003 07:53:43 +0000 (00:53 -0700)]
[PATCH] USB: ethernet gadget learns about pxa2xx udc
The original code needed some updates to work properly with
the USB Device Controller found in Intel's PXA 2xx processors.
- SET_INTERFACE is effectively unusable. So the driver
now has a "minimalist" mode, with none of the bells and
whistles of CDC.
- The config symbol will be CONFIG_USB_PXA2XX, since the
same controller (modulo errata) is in several processors
other than the "older" pxa250.
For the record, that "minimalist" mode was the original idea
behind this driver ... implementing CDC was a win for interop
since most non-MSFT host operating systems support it already,
without needing a new driver.
There were also a few other minor updates:
- Net2280: queue depth shrank a bit, don't use the same
endpoint numbers for the IN and OUT sides. (CATC doesn't
let filters consider direction, just numbers.)
- Join the Jihad! Abolish register_netdev()!! This just
nests the gadget-private data structures inside the
netdev data structure, instead of the other way around.