aboutsummaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)AuthorFilesLines
2006-10-11Merge branch 'master' into upstream-fixesJeff Garzik155-1390/+712
2006-10-11[PATCH] pata-qdi: fix le32 in data_xferPeter Korsgaard1-1/+1
The following tiny patch fixes a typo in qdi_data_xfer (le32 instead of le16). Signed-off-by: Peter Korsgaard <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-10-11[libata] sata_promise: add PCI IDJeff Garzik1-0/+1
Noticed by Steve Brown <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-10-11[PATCH] libata: return sense data in HDIO_DRIVE_CMD ioctlEran Tromer1-7/+39
Make the HDIO_DRIVE_CMD ioctl in libata (ATA command pass through) return a few ATA registers to userspace, following the same convention as the drivers/ide implementation of the same ioctl. This is needed to support ATA commands like CHECK POWER MODE, which return information in nsectors. This fixes "hdparm -C" on SATA drives. Forcing the sense data read via the cc flag causes spurious check conditions, so we filter these out (following the ATA command pass-through specification T10/04-262r7). Signed-off-by: Eran Tromer <[email protected]> Acked-by: Tejun Heo <[email protected]> Cc: Jeff Garzik <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-10-11[PATCH] Fix section mismatch in de2104x.cHelge Deller1-4/+4
WARNING: drivers/net/tulip/de2104x.o - Section mismatch: reference to .init.text:de_init_one from .data.rel.local after 'de_driver' (at offset 0x20) WARNING: drivers/net/tulip/de2104x.o - Section mismatch: reference to .exit.text:de_remove_one from .data.rel.local after 'de_driver' (at offset 0x28) Signed-off-by: Helge Deller <[email protected]> Signed-off-by: Kyle McMartin <[email protected]> Signed-off-by: Matthew Wilcox <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-10-11[PATCH] sky2: set lower pause threshold to prevent overrunStephen Hemminger1-1/+1
Adjust the pause threshold on slower systems to keep from getting overrun. Since FIFO is 2K bytes, don't send XON pause until there is space for a full frame. Signed-off-by: Jeff Garzik <[email protected]>
2006-10-11[PATCH] sky2: revert pci express extensionsStephen Hemminger2-24/+51
The pci express error handling extensions don't work unless PCI access is via mmconfig. Otherwise, all accesses to pci config registers greater than 256 fail. Since the sky2 driver has other ways of getting to PCI config space, it works around this short coming, but the pci_find_ext_capablity doesn't work. This backs out commit 91aeb3edbcf4e6ed72d138ac8c22fd68e6d717c3 Go back to hardcoding, since we know where the error registers are anyway. Fixes http://bugzilla.kernel.org/show_bug.cgi?id=7222 Signed-off-by: Stephen Hemminger <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-10-11[PATCH] skge: version 1.9Stephen Hemminger1-1/+1
Want to be able to track downstream impact of fiber related fixes. Signed-off-by: Stephen Hemminger <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-10-11[PATCH] skge: better flow control negotiationStephen Hemminger2-56/+95
Do flow control negotiation properly. Don't let auto negotiation status limit renegotiation. Separate desired pause values from the result of auto negotiation. Signed-off-by: Stephen Hemminger <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-10-11[PATCH] skge: pause mapping for fiberStephen Hemminger1-17/+21
Do correct mapping of pause and duplex when using 1000BaseX fiber versions of the board. Signed-off-by: Stephen Hemminger <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-10-11[PATCH] skge: fix stuck irq when fiber downStephen Hemminger2-19/+37
The PHY interrupt from the internal fiber is getting stuck on when the link is down. Add code to handle the transition and mask it. Signed-off-by: Stephen Hemminger <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-10-11[PATCH] powerpc/cell spidernet release all descrsLinas Vepstas1-2/+2
Bugfix: rx descriptor release function fails to visit the last entry while walking receive descriptor ring. Signed-off-by: Linas Vepstas <[email protected]> Cc: James K Lewis <[email protected]> Cc: Arnd Bergmann <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-10-11[PATCH] powerpc/cell spidernet DMA direction fixLinas Vepstas1-13/+13
The ring buffer descriptors are DMA-accessed bidirectionally, but are not declared in this way. Fix this. Signed-off-by: Linas Vepstas <[email protected]> Cc: James K Lewis <[email protected]> Cc: Arnd Bergmann <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-10-11[PATCH] powerpc/cell spidernet variable name changeLinas Vepstas3-10/+10
Cosmetic patch: give the variable holding the numer of descriptors a more descriptive name, so to avoid confusion. Signed-off-by: Linas Vepstas <[email protected]> Cc: James K Lewis <[email protected]> Cc: Arnd Bergmann <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-10-11[PATCH] powerpc/cell spidernet reduce DMA kickingLinas Vepstas1-6/+13
The current code attempts to start the TX dma every time a packet is queued. This is too conservative, and wastes CPU time. This patch changes behaviour to call the kick-dma function less often, only when the tx queue is at risk of emptying. This reduces cpu usage, improves performance. Signed-off-by: Linas Vepstas <[email protected]> Cc: James K Lewis <[email protected]> Cc: Arnd Bergmann <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-10-11[PATCH] powerpc/cell spidernetLinas Vepstas1-2/+0
Remove a dummy register read that is not needed. This reduces CPU usage notably during transmit. Signed-off-by: Linas Vepstas <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: James K Lewis <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-10-11[PATCH] powerpc/cell spidernet refine lockingLinas Vepstas1-52/+43
The transmit side of the spider ethernet driver currently places locks around some very large chunks of code. This results in a fair amount of lock contention is some cases. This patch makes the locks much more fine-grained, protecting only the cirtical sections. One lock is used to protect three locations: the queue head and tail pointers, and the queue low-watermark location. Signed-off-by: Linas Vepstas <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: James K Lewis <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-10-11[PATCH] powerpc/cell spidernet NAPI polling info.Linas Vepstas1-8/+8
This patch moves transmit queue cleanup code out of the interrupt context, and into the NAPI polling routine. Signed-off-by: Linas Vepstas <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Cc: James K Lewis <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-10-11[PATCH] powerpc/cell spidernet low watermark patch.Linas Vepstas2-4/+47
Implement basic low-watermark support for the transmit queue. Hardware low-watermarks allow a properly configured kernel to continously stream data to a device and not have to handle any interrupts at all in doing so. Correct zero-interrupt operation can be actually observed for this driver, when the socket buffer is made large enough. The basic idea of a low-watermark interrupt is as follows. The device driver queues up a bunch of packets for the hardware to transmit, and then kicks the hardware to get it started. As the hardware drains the queue of pending, untransmitted packets, the device driver will want to know when the queue is almost empty, so that it can queue some more packets. If the queue drains down to the low waterark, then an interrupt will be generated. However, if the kernel/driver continues to add enough packets to keep the queue partially filled, no interrupt will actually be generated, and the hardware can continue streaming packets indefinitely in this mode. The impelmentation is done by setting the DESCR_TXDESFLG flag in one of the packets. When the hardware sees this flag, it will interrupt the device driver. Because this flag is on a fixed packet, rather than at fixed location in the queue, the code below needs to move the flag as more packets are queued up. This implementation attempts to keep the flag at about 1/4 from "empty". Signed-off-by: Linas Vepstas <[email protected]> Signed-off-by: James K Lewis <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-10-11[PATCH] powerpc/cell spidernet incorrect offsetLinas Vepstas1-1/+3
Bugfix -- the rx chain is in memory after the tx chain -- the offset being used was wrong, resulting in memory corruption when the size of the rx and tx rings weren't exactly the same. Signed-off-by: Linas Vepstas <[email protected]> Cc: James K Lewis <[email protected]> Cc: Arnd Bergmann <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-10-11[PATCH] powerpc/cell spidernet stop error printing patch.Linas Vepstas1-4/+9
Turn off mis-interpretation of the queue-empty interrupt status bit as an error. Signed-off-by: Linas Vepstas <[email protected]> Signed-off-by: James K Lewis <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-10-11[PATCH] powerpc/cell spidernet fix error interrupt printLinas Vepstas1-1/+1
The print message associated with the descriptor chain end interrupt prints a bogs value. Fix that. Signed-off-by: Linas Vepstas <[email protected]> Cc: James K Lewis <[email protected]> Cc: Arnd Bergmann <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-10-11[PATCH] powerpc/cell spidernet bogus rx interrupt bitLinas Vepstas1-3/+2
The current receive interrupt mask sets a bogus bit that doesn't even belong to the definition of this register. Remove it. Signed-off-by: Linas Vepstas <[email protected]> Cc: James K Lewis <[email protected]> Cc: Arnd Bergmann <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-10-11[PATCH] Spidernet stop queue when queue is full.Linas Vepstas1-23/+10
This patch adds a call to netif_stop_queue() when there is no more room for more packets on the transmit queue. Signed-off-by: Linas Vepstas <[email protected]> Cc: James K Lewis <[email protected]> Cc: Arnd Bergmann <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-10-11[PATCH] Spidernet fix register field definitionsLinas Vepstas2-6/+12
This patch fixes the names of a few fields in the DMA control register. There is no functional change. Signed-off-by: Linas Vepstas <[email protected]> Cc: James K Lewis <[email protected]> Cc: Arnd Bergmann <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-10-11[PATCH] powerpc/cell spidernet add missing netdev watchdogLinas Vepstas1-0/+1
Set the netdev watchdog timer. Signed-off-by: Linas Vepstas <[email protected]> Cc: James K Lewis <[email protected]> Cc: Arnd Bergmann <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-10-11[PATCH] powerpc/cell spidernet zlen min packet lengthLinas Vepstas1-4/+14
Polite device drivers pad short packets to 60 bytes, so that mean-spirited users don't accidentally DOS some other OS that can't handle short packets. Signed-off-by: Linas Vepstas <[email protected]> Cc: James K Lewis <[email protected]> Cc: Arnd Bergmann <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-10-11[PATCH] powerpc/cell spidernet force-end fixLinas Vepstas1-1/+4
Bugfix: when cleaning up the transmit queue upon device close, be sure to walk the entire queue. Signed-off-by: Linas Vepstas <[email protected]> Cc: James K Lewis <[email protected]> Cc: Arnd Bergmann <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-10-11[PATCH] Spidernet module parm permissionsLinas Vepstas1-2/+2
The module param permsissions should bw read-only, not writable. From: James K Lewis <[email protected]> Signed-off-by: James K Lewis <[email protected]> Signed-off-by: Linas Vepstas <[email protected]> Cc: Arnd Bergmann <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-10-11[PATCH] powerpc/cell spidernet burst alignment patch.Linas Vepstas1-1/+1
This patch increases the Burst Address alignment from 64 to 1024 in the Spidernet driver. This improves transmit performance for large packets. From: James K Lewis <[email protected]> Signed-off-by: James K Lewis <[email protected]> Signed-off-by: Linas Vepstas <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-10-11[PATCH] powerpc/cell spidernet ethtool -i version number info.Linas Vepstas3-1/+6
This patch adds version information as reported by ethtool -i to the Spidernet driver. From: James K Lewis <[email protected]> Signed-off-by: James K Lewis <[email protected]> Signed-off-by: Linas Vepstas <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-10-11[PATCH] ehea: fix port state notification, default queue sizesJan-Bernd Themann2-9/+10
This patch includes a bug fix for the port state notification and fixes the default queue sizes. Signed-off-by: Jan-Bernd Themann <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-10-11[PATCH] ehea: firmware (hvcall) interface changesJan-Bernd Themann1-335/+238
This eHEA patch covers required changes related to Anton Blanchard's new hvcall interface. Signed-off-by: Jan-Bernd Themann <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-10-11[PATCH] ibmveth irq fixAndrew Morton1-1/+1
drivers/net/ibmveth.c:939: error: too many arguments to function `ibmveth_interrupt' Cc: Jeff Garzik <[email protected]> Cc: Anton Blanchard <[email protected]> Cc: Paul Mackerras <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-10-11[PATCH] b44: fix eeprom endianess issueMichael Buesch1-1/+1
This fixes eeprom read on big-endian architectures. readw returns the data in CPU order. With cpu_to_le16 we convert it to little endian, because "ptr" is a pointer to a _byte_ arrray. See the cast above. A byte array is little endian. The bug is: Reading u16 values with readw, casting them into an u8 array and accessing this u8 array as an u8 (byte) array. The correct fix is to swap the CPU-ordering value returned by readw into little endian, as the u8 array is little endian. This compiles to nothing on little endian hardware (so it does not change b44 code on LE hardware), but _fixes_ code on BE hardware. Signed-off-by: Michael Buesch <[email protected]> Cc: Jeff Garzik <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-10-11[PATCH] Update smc91x driver with ARM Versatile board infoDeepak Saxena1-0/+18
We need to specify a Versatile-specific SMC_IRQ_FLAGS value or the new generic IRQ layer will complain thusly: No IRQF_TRIGGER set_type function for IRQ 25 (<NULL>) Signed-off-by: Deepak Saxena <[email protected]> Cc: Jeff Garzik <[email protected]> Cc: Russell King <[email protected]> Cc: Nicolas Pitre <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
2006-10-11Merge branch 'master' into upstream-fixesJeff Garzik917-3827/+2751
2006-10-11Input: serio - add lockdep annotationsJiri Kosina2-2/+7
Signed-off-by: Jiri Kosina <[email protected]> Acked-by: Peter Zijlstra <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2006-10-11Input: atkbd - supress "too many keys" error messageDmitry Torokhov1-13/+41
Many users seems to be annoyed by this warning so kill the message and implement a counter exported as a sysfs attribute so we still know what is going on. Make atkbd use attribute groups while we are at it. Signed-off-by: Dmitry Torokhov <[email protected]>
2006-10-11Input: i8042 - supress ACK/NAKs when blinking during panicDmitry Torokhov1-2/+11
This allows using SysRq and not fill logs with complaints from atkbd. Signed-off-by: Dmitry Torokhov <[email protected]>
2006-10-11Input: add missing exports to fix modular buildDmitry Torokhov1-0/+1
Signed-off-by: Dmitry Torokhov <[email protected]>
2006-10-10ACPI: Allow setting SCI_EN bit in PM1_CONTROL registerLinus Torvalds1-2/+0
This is needed by at least the Mac Mini's, which (incorrectly) come back from suspend with SCI_EN clear. Thanks to Fr�d�ric Riss for hunting this down. Acked-by: Fr�d�ric Riss <[email protected]> Cc: Pavel Machek <[email protected]> Cc: Len Brown <[email protected]> Cc: Arjan van de Ven <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-10[PATCH] firmware/dcdbas: fix bug in error cleanupJeff Garzik1-1/+1
The error path path mistakenly called sysfs_create_group() rather than sysfs_remove_group(). They take the same arguments, so it's easy to cut-n-paste such a bug. Signed-off-by: Jeff Garzik <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-10[PATCH] irda: donauboe fixes, cleanupsJeff Garzik1-13/+7
- fix: toshoboe_invalid_dev() was recently removed, but not all callers were updated, causing the obvious linker error. Remove caller, because the check (like the one removed) isn't used. - fix: propagate request_irq() return value - cleanup: remove void* casts - cleanup: remove impossible ASSERTs Signed-off-by: Jeff Garzik <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-10Merge branch 'merge' of ↵Linus Torvalds4-49/+45
git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc: [POWERPC] Fix windfarm platform device usage [POWERPC] Fix i2c-powermac platform device usage [POWERPC] Fix secondary CPU startup on old "powersurge" SMP powermacs [POWERPC] ARCH=ppc pt_regs fixes [POWERPC] Update maple defconfig [POWERPC] Fix Maple secondary IDE interrupt [POWERPC] Make U4 PCIe work on maple [POWERPC] cell: fix default zImage build target [POWERPC] Fix boot wrapper invocation if CROSS_COMPILE contains spaces [POWERPC] Fix xmon IRQ handler for pt_regs removal
2006-10-10[PATCH] endianness annotations in s2ioAl Viro1-161/+161
Signed-off-by: Al Viro <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-10[PATCH] chelsio: add endian annotationsAlexey Dobriyan1-3/+3
Signed-off-by: Alexey Dobriyan <[email protected]> Signed-off-by: Al Viro <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-10[PATCH] cdrom: add endianness annotationsAlexey Dobriyan1-3/+3
Signed-off-by: Alexey Dobriyan <[email protected]> Signed-off-by: Al Viro <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-10[PATCH] use %p for pointersAl Viro1-1/+1
Signed-off-by: Al Viro <[email protected]> Acked-by: David S. Miller <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-10[PATCH] use %zu for size_tAl Viro1-1/+1
Signed-off-by: Al Viro <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>