]> pilppa.org Git - linux-2.6-omap-h63xx.git/log
linux-2.6-omap-h63xx.git
17 years ago[SCSI] make scsi_check_sense HARDWARE_ERROR return ADD_TO_MLQUEUE on retry
Mike Anderson [Tue, 12 Aug 2008 19:11:58 +0000 (12:11 -0700)]
[SCSI] make scsi_check_sense HARDWARE_ERROR return ADD_TO_MLQUEUE on retry

Change scsi_check_sense HARDWARE_ERROR check to return ADD_TO_MLQUEUE
if device->retry_hwerror is set to allow retries to occur without
restriction of blk_noretry_request check.

Signed-off-by: Mike Anderson <andmike@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
17 years ago[SCSI] scsi_dh: make check_sense return ADD_TO_MLQUEUE
Mike Anderson [Tue, 12 Aug 2008 19:11:57 +0000 (12:11 -0700)]
[SCSI] scsi_dh: make check_sense return ADD_TO_MLQUEUE

Change scsi_dh check_sense functions to return ADD_TO_MLQUEUE
to allow retries to occur without restriction of blk_noretry_request
check.

Signed-off-by: Mike Anderson <andmike@linux.vnet.ibm.com>
Acked-by: Chandra Seetharaman <sekharan@us.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
17 years ago[SCSI] zfcp: Remove duplicated unlikely() macros.
Hirofumi Nakagawa [Thu, 21 Aug 2008 11:43:37 +0000 (13:43 +0200)]
[SCSI] zfcp: Remove duplicated unlikely() macros.

Some drivers have duplicated unlikely() macros. IS_ERR() already
has unlikely() in itself. This patch cleans up such pointless
codes although there is no real effect on the kernel's behaviour.

Signed-off-by: Hirofumi Nakagawa <hnakagawa@miraclelinux.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
17 years ago[SCSI] zfcp: channel cannot be detached due to refcount imbalance
Swen Schillig [Thu, 21 Aug 2008 11:43:36 +0000 (13:43 +0200)]
[SCSI] zfcp: channel cannot be detached due to refcount imbalance

Due to an imbalance of the nameserver refcounting, channel devices
couldn't be take offline anymore after the channel was activated.

Signed-off-by: Swen Schillig <swen@vnet.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
17 years ago[SCSI] zfcp: Fix reference counter for remote ports
Swen Schillig [Thu, 21 Aug 2008 11:43:35 +0000 (13:43 +0200)]
[SCSI] zfcp: Fix reference counter for remote ports

Fix the remote port reference counter handling during ELS ADISC
commands and find the remote port by WWPN not by D_IDs that could
change.

Signed-off-by: Swen Schillig <swen@vnet.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
17 years ago[SCSI] zfcp: Simplify ccw notify handler
Christof Schmitt [Thu, 21 Aug 2008 11:43:34 +0000 (13:43 +0200)]
[SCSI] zfcp: Simplify ccw notify handler

The notify handler does not change the list of adapters, it only
triggers erp actions to open or shutdown the adapter. We don't
need to hold the config semaphore and wait for the erp to complete.

This is a prerequisite for a fix in the s390 common i/o code.

Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: Martin Petermann <martin@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
17 years ago[SCSI] zfcp: Correctly query end flag in gpn_ft response
Christof Schmitt [Thu, 21 Aug 2008 11:43:33 +0000 (13:43 +0200)]
[SCSI] zfcp: Correctly query end flag in gpn_ft response

When the last port entry in the gpn_ft response is already a known
port, the eval function would skip the end flag and try to attach
ports with wwpn 0. Fix this by checking the flag first.

Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: Martin Petermann <martin@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
17 years ago[SCSI] zfcp: Fix request queue locking
Christof Schmitt [Thu, 21 Aug 2008 11:43:32 +0000 (13:43 +0200)]
[SCSI] zfcp: Fix request queue locking

The request queue lock can be acquired from softirq context when the
SCSI midlayer issues commands. Disable softirqs for this lock when
commands are issued from zfcp.

Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: Martin Petermann <martin@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
17 years ago[SCSI] sd: select CRC_T10DIF only when necessary
Stefan Richter [Sat, 2 Aug 2008 17:49:40 +0000 (19:49 +0200)]
[SCSI] sd: select CRC_T10DIF only when necessary

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Acked-by: "Martin K. Petersen" <martin.petersen@oracle.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
17 years agoALSA: oxygen: fix distorted output on AK4396-based cards
Clemens Ladisch [Fri, 29 Aug 2008 11:08:34 +0000 (13:08 +0200)]
ALSA: oxygen: fix distorted output on AK4396-based cards

When changing the sample rate, the CMI8788's master clock output becomes
unstable for a short time.  The AK4396 needs the master clock to do SPI
writes, so writing to an AK4396 control register directly after a sample
rate change will garble the value.  In our case, this leads to the DACs
being misconfigured to I2S sample format, which results in a wrong
output level and horrible distortions on samples louder than -6 dB.

To fix this, we need to wait until the new master clock signal has
become stable before doing SPI writes.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 years agoALSA: intel8x0: implement ac97_clock whitelist
Jaroslav Kysela [Fri, 29 Aug 2008 09:29:39 +0000 (11:29 +0200)]
ALSA: intel8x0: implement ac97_clock whitelist

The AC97 clock detection is not accurate in some cases. This patch adds
an initial whitelist for audio devices gathered from RedHat's bugzilla:

https://bugzilla.redhat.com/show_bug.cgi?id=441087

As a side effect, white-listing might speedup kernel booting (AC97 clock
measuring code is not activated).

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoremove blk_register_filter and blk_unregister_filter in gendisk
FUJITA Tomonori [Fri, 29 Aug 2008 09:47:07 +0000 (11:47 +0200)]
remove blk_register_filter and blk_unregister_filter in gendisk

This patch remove blk_register_filter and blk_unregister_filter in
gendisk, and adds them to sd.c, sr.c. and ide-cd.c

The commit abf5439370491dd6fbb4fe1a7939680d2a9bc9d4 moved cmdfilter
from gendisk to request_queue. It turned out that in some subsystems
multiple gendisks share a single request_queue. So we get:

Using physmap partition information
Creating 3 MTD partitions on "physmap-flash":
0x00000000-0x01c00000 : "User FS"
0x01c00000-0x01c40000 : "booter"
kobject (8511c410): tried to init an initialized object, something is seriously wrong.
Call Trace:
[<8036644c>] dump_stack+0x8/0x34
[<8021f050>] kobject_init+0x50/0xcc
[<8021fa18>] kobject_init_and_add+0x24/0x58
[<8021d20c>] blk_register_filter+0x4c/0x64
[<8021c194>] add_disk+0x78/0xe0
[<8027d14c>] add_mtd_blktrans_dev+0x254/0x278
[<8027c8f0>] blktrans_notify_add+0x40/0x78
[<80279c00>] add_mtd_device+0xd0/0x150
[<8027b090>] add_mtd_partitions+0x568/0x5d8
[<80285458>] physmap_flash_probe+0x2ac/0x334
[<802644f8>] driver_probe_device+0x12c/0x244
[<8026465c>] __driver_attach+0x4c/0x84
[<80263c64>] bus_for_each_dev+0x58/0xac
[<802633ec>] bus_add_driver+0xc4/0x24c
[<802648e0>] driver_register+0xcc/0x184
[<80100460>] _stext+0x60/0x1bc

In the long term, we need to fix such subsystems but we need a quick
fix now. This patch add the command filter support to only sd and sr
though it might be useful for other SG_IO users (such as cciss).

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Reported-by: Manuel Lauss <mano@roarinelk.homelinux.net>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
17 years agosparc: Remove Documentation/sparc/sbus_drivers.txt
David S. Miller [Thu, 28 Aug 2008 02:59:48 +0000 (19:59 -0700)]
sparc: Remove Documentation/sparc/sbus_drivers.txt

None of the text in this document is relevant any more.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosparc: Delete asm/sbus*.h
David S. Miller [Wed, 27 Aug 2008 12:04:18 +0000 (05:04 -0700)]
sparc: Delete asm/sbus*.h

No longer used.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosparc: Kill now spurious includes of sbus.h
David S. Miller [Thu, 28 Aug 2008 02:54:01 +0000 (19:54 -0700)]
sparc: Kill now spurious includes of sbus.h

In order to make this week I also had to add an include
of linux/dma-mapping.h to asm/pci_32.h because drivers/pci/pci.c
really depends upon getting this header somehow.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosparc32: Kill iounit_map_dma_*().
David S. Miller [Wed, 27 Aug 2008 04:14:05 +0000 (21:14 -0700)]
sparc32: Kill iounit_map_dma_*().

Unused.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosparc: Kill sbus_bus_type.
David S. Miller [Thu, 28 Aug 2008 02:45:20 +0000 (19:45 -0700)]
sparc: Kill sbus_bus_type.

No longer used.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosparc: Remove generic SBUS probing layer.
David S. Miller [Wed, 27 Aug 2008 11:54:04 +0000 (04:54 -0700)]
sparc: Remove generic SBUS probing layer.

The individual SBUS IOMMU arch code now sets the IOMMU information
directly into the OF device objects.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosparc: Add OF archdata propagation helper.
David S. Miller [Wed, 27 Aug 2008 11:22:37 +0000 (04:22 -0700)]
sparc: Add OF archdata propagation helper.

Add a helper function that, given a bus of_device node, propagates
all iommu, stc, and host_controller values down to the child nodes.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosparc: Kill sbus_arch_preinit().
David S. Miller [Wed, 27 Aug 2008 11:20:14 +0000 (04:20 -0700)]
sparc: Kill sbus_arch_preinit().

32-bit sparc just needed it to register the ioport procfs bits, do this
via an arch_initcall() instead.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosparc32: Kill sbus_is_slave().
David S. Miller [Wed, 27 Aug 2008 11:18:55 +0000 (04:18 -0700)]
sparc32: Kill sbus_is_slave().

Unused.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosparc: Kill OBP property members of sbus_dev and sbus_bus
David S. Miller [Wed, 27 Aug 2008 11:18:02 +0000 (04:18 -0700)]
sparc: Kill OBP property members of sbus_dev and sbus_bus

Unused.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosparc: Kill sbus_devaddr() and sbus_dev_slot().
David S. Miller [Wed, 27 Aug 2008 11:17:24 +0000 (04:17 -0700)]
sparc: Kill sbus_devaddr() and sbus_dev_slot().

Unused.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosparc: Kill sbus_ioremap() and sbus_iounmap().
David S. Miller [Wed, 27 Aug 2008 11:11:16 +0000 (04:11 -0700)]
sparc: Kill sbus_ioremap() and sbus_iounmap().

No more users.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosparc: Convert remaining sbus_ioremap() and sbus_iounmap() users.
David S. Miller [Wed, 27 Aug 2008 11:05:35 +0000 (04:05 -0700)]
sparc: Convert remaining sbus_ioremap() and sbus_iounmap() users.

Use of_ioremap() and of_iounmap() instead.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosparc: Remove dinky old-style SBUS probing facilities.
David S. Miller [Wed, 27 Aug 2008 10:47:56 +0000 (03:47 -0700)]
sparc: Remove dinky old-style SBUS probing facilities.

No drivers or code uses this stuff any more, every driver has been
converted over to OF device probing.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosparc: Remove SBUS layer resource and irq handling.
David S. Miller [Wed, 27 Aug 2008 10:38:42 +0000 (03:38 -0700)]
sparc: Remove SBUS layer resource and irq handling.

All the drivers use OF device objects now for this
information.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosparc: Kill SBUS layer IRQ hooks.
David S. Miller [Wed, 27 Aug 2008 09:56:39 +0000 (02:56 -0700)]
sparc: Kill SBUS layer IRQ hooks.

IRQs are obtained by drivers from the of_device struct.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosparc32: Convert sun4d IRQ code to use generic device tree probing.
David S. Miller [Wed, 27 Aug 2008 09:50:57 +0000 (02:50 -0700)]
sparc32: Convert sun4d IRQ code to use generic device tree probing.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosparc32: Convert pmc to OF driver.
David S. Miller [Wed, 27 Aug 2008 09:48:26 +0000 (02:48 -0700)]
sparc32: Convert pmc to OF driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosparc32: Convert apc to OF driver.
David S. Miller [Wed, 27 Aug 2008 09:45:36 +0000 (02:45 -0700)]
sparc32: Convert apc to OF driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosparc32: Make mmu_map_dma_area and mmu_unmap_dma_area take a device pointer.
David S. Miller [Thu, 28 Aug 2008 01:40:38 +0000 (18:40 -0700)]
sparc32: Make mmu_map_dma_area and mmu_unmap_dma_area take a device pointer.

This lets us kill this "map it in every IOMMU" crazy code, and also
some of the final references to sbus_root.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosparc32: Kill mmu_translate_dvma and implementations.
David S. Miller [Wed, 27 Aug 2008 09:29:50 +0000 (02:29 -0700)]
sparc32: Kill mmu_translate_dvma and implementations.

No longer used.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosparc32: Kill mmu_translate_dvma() usage.
David S. Miller [Wed, 27 Aug 2008 09:20:35 +0000 (02:20 -0700)]
sparc32: Kill mmu_translate_dvma() usage.

Just simply use virt_to_page() on the provided virtual address pointer.

Kill #if 0'd code.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosparc64: Convert SBUS floppy probing to use OF device objects.
David S. Miller [Wed, 27 Aug 2008 08:55:54 +0000 (01:55 -0700)]
sparc64: Convert SBUS floppy probing to use OF device objects.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosparc: Convert uctrl driver to OF driver.
David S. Miller [Thu, 28 Aug 2008 01:39:47 +0000 (18:39 -0700)]
sparc: Convert uctrl driver to OF driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosparc: Convert flash driver to OF device probing.
David S. Miller [Wed, 27 Aug 2008 08:13:12 +0000 (01:13 -0700)]
sparc: Convert flash driver to OF device probing.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agofore200e: Convert over to pure OF driver.
David S. Miller [Wed, 27 Aug 2008 08:06:07 +0000 (01:06 -0700)]
fore200e: Convert over to pure OF driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agocs4231: Convert SBUS side to OF driver.
David S. Miller [Thu, 28 Aug 2008 01:24:01 +0000 (18:24 -0700)]
cs4231: Convert SBUS side to OF driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agoalsa: Remove special SBUS dma support code.
David S. Miller [Wed, 27 Aug 2008 07:33:26 +0000 (00:33 -0700)]
alsa: Remove special SBUS dma support code.

No longer used.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agocs4231: Use SNDRV_DMA_TYPE_DEV instead of SNDRV_DMA_TYPE_SBUS.
David S. Miller [Wed, 27 Aug 2008 07:31:36 +0000 (00:31 -0700)]
cs4231: Use SNDRV_DMA_TYPE_DEV instead of SNDRV_DMA_TYPE_SBUS.

SBUS layer now uses dma_*() interfaces, no need for special DMA code
any longer.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agodbri: Convert to pure OF driver.
David S. Miller [Wed, 27 Aug 2008 07:30:59 +0000 (00:30 -0700)]
dbri: Convert to pure OF driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agoamd7930: Convert to pure OF driver.
David S. Miller [Wed, 27 Aug 2008 07:29:27 +0000 (00:29 -0700)]
amd7930: Convert to pure OF driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agoqlogicpti: Convert to pure OF driver.
David S. Miller [Wed, 27 Aug 2008 07:24:00 +0000 (00:24 -0700)]
qlogicpti: Convert to pure OF driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosun_esp: Convert to pure OF driver.
David S. Miller [Wed, 27 Aug 2008 07:20:58 +0000 (00:20 -0700)]
sun_esp: Convert to pure OF driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agoparport_sunbpp: Convert to pure OF driver.
David S. Miller [Wed, 27 Aug 2008 07:17:50 +0000 (00:17 -0700)]
parport_sunbpp: Convert to pure OF driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosunqe: Convert to pure OF driver.
David S. Miller [Wed, 27 Aug 2008 07:12:27 +0000 (00:12 -0700)]
sunqe: Convert to pure OF driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosunlance: Convert to pure OF driver.
David S. Miller [Wed, 27 Aug 2008 07:07:53 +0000 (00:07 -0700)]
sunlance: Convert to pure OF driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosunhme: Convert to pure OF driver.
David S. Miller [Fri, 29 Aug 2008 09:14:29 +0000 (02:14 -0700)]
sunhme: Convert to pure OF driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosunbmac: Convert to pure OF driver.
David S. Miller [Wed, 27 Aug 2008 06:40:25 +0000 (23:40 -0700)]
sunbmac: Convert to pure OF driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agomyri_sbus: Convert to pure OF driver.
David S. Miller [Wed, 27 Aug 2008 06:36:58 +0000 (23:36 -0700)]
myri_sbus: Convert to pure OF driver.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosparc: Move SBUS DMA attribute interfaces out of asm/sbus.h
David S. Miller [Wed, 27 Aug 2008 06:33:42 +0000 (23:33 -0700)]
sparc: Move SBUS DMA attribute interfaces out of asm/sbus.h

This is in preparation for the subsequent asm/sbus.h removal.

Also, make these routines take a "struct device" or no
arguments, as appropriate.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosparc: Convert all SBUS drivers to dma_*() interfaces.
David S. Miller [Thu, 28 Aug 2008 01:09:11 +0000 (18:09 -0700)]
sparc: Convert all SBUS drivers to dma_*() interfaces.

And all the SBUS dma interfaces are deleted.

A private implementation remains inside of the 32-bit sparc port which
exists only for the sake of the implementation of dma_*().

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosparc32: Implement more generic dma_*() interfaces.
David S. Miller [Thu, 28 Aug 2008 01:01:36 +0000 (18:01 -0700)]
sparc32: Implement more generic dma_*() interfaces.

These dispatch to either PCI or SBUS routines based upon
the device bus type.

This will allow us to let SBUS drivers call these routines.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosparc32: Make mmu_{get,release}_*() take a struct device pointer.
David S. Miller [Wed, 27 Aug 2008 06:00:58 +0000 (23:00 -0700)]
sparc32: Make mmu_{get,release}_*() take a struct device pointer.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosparc: Make SBUS DMA interfaces take struct device.
David S. Miller [Thu, 28 Aug 2008 01:37:58 +0000 (18:37 -0700)]
sparc: Make SBUS DMA interfaces take struct device.

This is the first step in converting all the SBUS drivers
over to generic dma_*().

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosparc: Propagate SBUS iommu archdata into real of_device objects.
David S. Miller [Tue, 26 Aug 2008 05:52:37 +0000 (22:52 -0700)]
sparc: Propagate SBUS iommu archdata into real of_device objects.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosparc32: Make IOMMU and IO-UNIT init work with device nodes.
David S. Miller [Tue, 26 Aug 2008 05:47:20 +0000 (22:47 -0700)]
sparc32: Make IOMMU and IO-UNIT init work with device nodes.

And stick the iommu archdata pointer into the generic OF device tree
of_device struct as well.

We still have to pass the sbus_bus object down into the routines so
that the SBUS bus objects get the iommu cookies set properly.  After
drivers get converted to being pure OF drivers, that can go away.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosparc: Kill SBUS DVMA layer.
David S. Miller [Thu, 28 Aug 2008 00:01:57 +0000 (17:01 -0700)]
sparc: Kill SBUS DVMA layer.

This thing was completely pointless.

Just find the OF device in the parent of drivers that want to program
this device, and map the DMA regs inside such drivers too.

This also moves the dummy claim_dma_lock() and release_dma_lock()
implementation to floppy_32.h, which makes it handle this issue
just like floppy_64.h does.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosparc: Kill videopix SBUS driver.
David S. Miller [Wed, 27 Aug 2008 05:26:21 +0000 (22:26 -0700)]
sparc: Kill videopix SBUS driver.

This has been marked BROKEN for a long time and it's more likely
to get rewritten from scratch than to be fixed up and made usable.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosparc: Delete bare sbus char bpp driver, obsoleted by parport_sunbpp
David S. Miller [Wed, 27 Aug 2008 05:25:03 +0000 (22:25 -0700)]
sparc: Delete bare sbus char bpp driver, obsoleted by parport_sunbpp

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agosound: make OSS sound core optional
Tejun Heo [Thu, 28 Aug 2008 14:42:51 +0000 (16:42 +0200)]
sound: make OSS sound core optional

sound/sound_core.c implements soundcore.ko and contains two parts -
sound_class which is shared by both ALSA and OSS and device
redirection support for OSS.  It's always compiled when any sound
support is enabled although it's necessary only when OSS (the actual
one or emulation) is enabled.  This is slightly wasteful and as device
redirection always registers character device region for major 14, it
prevents alternative implementation.

This patch introduces a new config SOUND_OSS_CORE which is selected
iff OSS support is actually necessary and build the OSS core part
conditionally.

If OSS is disabled, soundcore merely contains sound_class but leaving
it that way seems to be the simplest approach as otherwise sound_class
should be in ALSA core file if OSS is disabled but should be in
soundcore if OSS is enabled.  Also, there's also the user confusion
factor.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: hda - Add support of Toshiba RX1
Hiroshi Miura [Thu, 28 Aug 2008 14:09:06 +0000 (16:09 +0200)]
ALSA: hda - Add support of Toshiba RX1

Added the support of Toshiba RX1 laptop with ALC262 codec chip.
Related ALSA bug#3386:
    https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3386

Signed-off-by: Hiroshi Miura <miurahr@acm.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: ac97 - vt1618 7.1 Audio Support
John L. Utz III [Thu, 28 Aug 2008 14:04:40 +0000 (16:04 +0200)]
ALSA: ac97 - vt1618 7.1 Audio Support

1. Implement 7.1 Output for vt1618 codec.
2. Fix typos in comments from my previous 1617a patch.

Signed-off-by: John L. Utz III <john.utz@dmx.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: remove obsolete *_FIRMARE_IN_KERNEL in isa/Kconfig
Takashi Iwai [Wed, 27 Aug 2008 13:31:03 +0000 (15:31 +0200)]
ALSA: remove obsolete *_FIRMARE_IN_KERNEL in isa/Kconfig

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: ASoC: Convert DAPM pop time configuration to debugfs
Mark Brown [Thu, 28 Aug 2008 11:46:24 +0000 (12:46 +0100)]
ALSA: ASoC: Convert DAPM pop time configuration to debugfs

Pop time configuration is a debugging feature which shouldn't be used in
normal operation so move it to debugfs where it is clearer. This also
simplifies the code since debugfs provides standard facilities for
exposing simple integer values to user space.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: hda - Add descriptions of missing model values
Takashi Iwai [Wed, 27 Aug 2008 16:12:42 +0000 (18:12 +0200)]
ALSA: hda - Add descriptions of missing model values

Added the descriptions of missing model values.
Also, fixed the model strings of a few new models to a standard style.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: hda - Fix VIA recording problem
Joseph Chan [Tue, 26 Aug 2008 12:38:03 +0000 (14:38 +0200)]
ALSA: hda - Fix VIA recording problem

Add a workaround for bad DMA-position reporting on VIA chipset.

Signed-off-by: Joseph Chan <josephchan@via.com.tw>
[modified and cleaned up by tiwai]
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: ASoC: WM8903 I2C cleanups
Mark Brown [Tue, 26 Aug 2008 14:29:11 +0000 (15:29 +0100)]
ALSA: ASoC: WM8903 I2C cleanups

Fix a few issues identified by Jean Delvare:

 - Add missing newline to error display.
 - Return an error when we fail to locate the I2C adaptor.
 - Remove the static wm8903_i2c_device Jean suggested, it's redundant.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: ASoC: Add missing new-line at end of strings
Jean Delvare [Tue, 26 Aug 2008 13:47:55 +0000 (15:47 +0200)]
ALSA: ASoC: Add missing new-line at end of strings

Two warning messages lack their trailing new-line, add it.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: hda - Add more ALC662/663 codec support
Kailang Yang [Tue, 26 Aug 2008 12:03:29 +0000 (14:03 +0200)]
ALSA: hda - Add more ALC662/663 codec support

- Add support for ECS (1019:9087)
- Delete G71V record from alc662_cfg_tbl[]
  The PCI SubsystemID was the same with M70V
- Add more ASUS notebook support

Signed-off-by: Kailang Yang <kailang@realtek.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: hda - support more ALC888 devices
Kailang Yang [Tue, 26 Aug 2008 11:17:46 +0000 (13:17 +0200)]
ALSA: hda - support more ALC888 devices

- Add Lenovo Sky support (17aa:101d)
- Add ASUS M90V support (1043:8317)
- Add ASUS Eee 1601 support (1043:835f)

Signed-off-by: Kailang Yang <kailang@realtek.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: hda - Add support of Quanta FL1
Kailang Yang [Tue, 26 Aug 2008 11:13:00 +0000 (13:13 +0200)]
ALSA: hda - Add support of Quanta FL1

Added the support of Quanta FL1 with ALC269 code chip.
Also a bit space clean-ups.

Signed-off-by: Kailang Yang <kailang@realtek.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: hda - Add support of Acer Aspire One
Kailang Yang [Tue, 26 Aug 2008 11:10:22 +0000 (13:10 +0200)]
ALSA: hda - Add support of Acer Aspire One

Added the support of Acer Aspire One with ALC269 codec chip.

Signed-off-by: Kailang Yang <kailang@realtek.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: hda - Add support of Toshiba S06
Kailang Yang [Tue, 26 Aug 2008 11:05:55 +0000 (13:05 +0200)]
ALSA: hda - Add support of Toshiba S06

Added the support of Toshiba S06 with ALC262 codec chip.

Signed-off-by: Kailang Yang <kailang@realtek.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: hda - Add support of HP DC7600
Kailang Yang [Tue, 26 Aug 2008 11:02:23 +0000 (13:02 +0200)]
ALSA: hda - Add support of HP DC7600

Fixed the support of HP DC7600 with ALC260, which was formerly handled
as model=hp-3013.

Signed-off-by: Kailang Yang <kailang@realtek.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: hda - fix spaces in patch_realtek.c
Kailang Yang [Tue, 26 Aug 2008 10:58:38 +0000 (12:58 +0200)]
ALSA: hda - fix spaces in patch_realtek.c

Signed-off-by: Kailang Yang <kailang@realtek.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: ASoC: Add WM8903 CODEC driver
Mark Brown [Tue, 26 Aug 2008 12:05:27 +0000 (13:05 +0100)]
ALSA: ASoC: Add WM8903 CODEC driver

The WM8903 is a high performance ultra-low power stereo CODEC optimised
for portable audio applications.  Features include:

    * 5mW power consumption for DAC to headphone playback
    * Stereo DAC SNR 96dB typical, THD -86dB typical
    * Stereo ADC SNR 93dB typical, THD -80dB typical
    * Up to 3 single ended inputs per stereo channel
    * Up to 2 pseudo differential inputs per stereo channel
    * Up to 1 fully differential mic input per stereo channel
    * Digital Dynamic Range Controller (compressor/limiter)
    * Digital sidetone mixing

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: Cosmetic change: CA0106 on MSI K8N Diamond PLUS Motherboard
Jaroslav Kysela [Mon, 25 Aug 2008 06:11:50 +0000 (08:11 +0200)]
ALSA: Cosmetic change: CA0106 on MSI K8N Diamond PLUS Motherboard

Make ',' delimited with space as for other entries in table.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agopcmcia: device_id header cleanup
Dominik Brodowski [Thu, 28 Aug 2008 21:44:45 +0000 (23:44 +0200)]
pcmcia: device_id header cleanup

Wrap in #ifdef to include header just once, and wrap in another #ifdef
to avoid it being used in userspace. Also, format the header similar to
the other PCMCIA header files.

Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
17 years agopcmcia: encapsulate ioaddr_t
Dominik Brodowski [Wed, 27 Aug 2008 23:05:34 +0000 (01:05 +0200)]
pcmcia: encapsulate ioaddr_t

By now, ioaddr_t should only be used by the deprecated ioctl, as it does not
correctly reflect the maximum ioport range at least on some architectures.

Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
17 years agopcmcia: cleanup device driver header file
Dominik Brodowski [Wed, 27 Aug 2008 22:41:16 +0000 (00:41 +0200)]
pcmcia: cleanup device driver header file

The header file primarily used for (in-kernel) PCMCIA device drivers
also deserved a major cleanup. This header file also serves as the dumping
ground for all typedefs and definitions only used by the deprecated PCMCIA
ioctl and the deprecated PCMCIA userspace tools using this ioctl.

Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
17 years agosparc: Fix resource flags for PCI children in OF device tree.
David S. Miller [Fri, 29 Aug 2008 04:02:58 +0000 (21:02 -0700)]
sparc: Fix resource flags for PCI children in OF device tree.

When a device is under an EBUS or ISA bus, the resource flags
don't get set properly.

Fix this by re-evaluating the resource flags at each level of
bus as we apply ranges on the way to the root.  And let PCI
override any existing flags setting, but don't let the
default flags calculator make such overrides.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agocrypto: skcipher - Use RNG interface instead of get_random_bytes
Herbert Xu [Thu, 14 Aug 2008 12:21:31 +0000 (22:21 +1000)]
crypto: skcipher - Use RNG interface instead of get_random_bytes

This patch makes the IV generators use the new RNG interface so
that the user can pick an RNG other than the default get_random_bytes.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years agocrypto: rng - RNG interface and implementation
Neil Horman [Thu, 14 Aug 2008 12:15:52 +0000 (22:15 +1000)]
crypto: rng - RNG interface and implementation

This patch adds a random number generator interface as well as a
cryptographic pseudo-random number generator based on AES.  It is
meant to be used in cases where a deterministic CPRNG is required.

One of the first applications will be as an input in the IPsec IV
generation process.

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years agocrypto: api - Add fips_enable flag
Neil Horman [Tue, 5 Aug 2008 06:13:08 +0000 (14:13 +0800)]
crypto: api - Add fips_enable flag

Add the ability to turn FIPS-compliant mode on or off at boot

In order to be FIPS compliant, several check may need to be preformed that may
be construed as unusefull in a non-compliant mode.  This patch allows us to set
a kernel flag incating that we are running in a fips-compliant mode from boot
up.  It also exports that mode information to user space via a sysctl
(/proc/sys/crypto/fips_enabled).

Tested successfully by me.

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years agocrypto: skcipher - Move IV generators into their own modules
Herbert Xu [Sun, 17 Aug 2008 08:04:30 +0000 (18:04 +1000)]
crypto: skcipher - Move IV generators into their own modules

This patch moves the default IV generators into their own modules
in order to break a dependency loop between cryptomgr, rng, and
blkcipher.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years agocrypto: cryptomgr - Test ciphers using ECB
Herbert Xu [Sun, 17 Aug 2008 07:01:56 +0000 (17:01 +1000)]
crypto: cryptomgr - Test ciphers using ECB

As it is we only test ciphers when combined with a mode.  That means
users that do not invoke a mode of operations may get an untested
cipher.

This patch tests all ciphers using the ECB mode so that simple cipher
users such as ansi-cprng are also protected.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years agocrypto: api - Use test infrastructure
Herbert Xu [Sun, 3 Aug 2008 13:15:23 +0000 (21:15 +0800)]
crypto: api - Use test infrastructure

This patch makes use of the new testing infrastructure by requiring
algorithms to pass a run-time test before they're made available to
users.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years agocrypto: cryptomgr - Add test infrastructure
Herbert Xu [Thu, 31 Jul 2008 09:08:25 +0000 (17:08 +0800)]
crypto: cryptomgr - Add test infrastructure

This patch moves the newly created alg_test infrastructure into
cryptomgr.  This shall allow us to use it for testing at algorithm
registrations.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years agocrypto: tcrypt - Add alg_test interface
Herbert Xu [Thu, 31 Jul 2008 07:41:55 +0000 (15:41 +0800)]
crypto: tcrypt - Add alg_test interface

This patch creates a new interface algorithm testing.  A test can
be requested for a particular implementation of an algorithm.  This
is achieved by taking both the name of the algorithm and that of
the implementation.

The all-inclusive test has also been rewritten to no longer require
a duplicate listing of all algorithms with tests.  In that process
a number of missing tests have also been discovered and rectified.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years agocrypto: tcrypt - Abort and only log if there is an error
Herbert Xu [Thu, 31 Jul 2008 06:03:44 +0000 (14:03 +0800)]
crypto: tcrypt - Abort and only log if there is an error

The info printed is a complete waste of space when there is no error
since it doesn't tell us anything that we don't already know.  If there
is an error, we can also be more verbose.

In case that there is an error, this patch also aborts the test and
returns the error to the caller.  In future this will be used to
algorithms at registration time.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years agocrypto: crc32c - Use Intel CRC32 instruction
Austin Zhang [Thu, 7 Aug 2008 01:57:03 +0000 (09:57 +0800)]
crypto: crc32c - Use Intel CRC32 instruction

From NHM processor onward, Intel processors can support hardware accelerated
CRC32c algorithm with the new CRC32 instruction in SSE 4.2 instruction set.
The patch detects the availability of the feature, and chooses the most proper
way to calculate CRC32c checksum.
Byte code instructions are used for compiler compatibility.
No MMX / XMM registers is involved in the implementation.

Signed-off-by: Austin Zhang <austin.zhang@intel.com>
Signed-off-by: Kent Liu <kent.liu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years agocrypto: tcrypt - Avoid using contiguous pages
Herbert Xu [Thu, 31 Jul 2008 04:23:53 +0000 (12:23 +0800)]
crypto: tcrypt - Avoid using contiguous pages

If tcrypt is to be used as a run-time integrity test, it needs to be
more resilient in a hostile environment.  For a start allocating 32K
of physically contiguous memory is definitely out.

This patch teaches it to use separate pages instead.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years agocrypto: api - Display larval objects properly
Herbert Xu [Mon, 4 Aug 2008 06:22:29 +0000 (14:22 +0800)]
crypto: api - Display larval objects properly

Rather than displaying larval objects as real objects, this patch
makes them show up under /proc/crypto as of type larval.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years agocrypto: api - Export crypto_alg_lookup instead of __crypto_alg_lookup
Herbert Xu [Mon, 4 Aug 2008 03:44:59 +0000 (11:44 +0800)]
crypto: api - Export crypto_alg_lookup instead of __crypto_alg_lookup

Since the only user of __crypto_alg_lookup is doing exactly what
crypto_alg_lookup does, we can now the latter in lieu of the former.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years agocrypto: Kconfig - Replace leading spaces with tabs
Adrian Bunk [Wed, 16 Jul 2008 11:28:00 +0000 (19:28 +0800)]
crypto: Kconfig - Replace leading spaces with tabs

Instead of tabs there were two spaces.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years agoLinux 2.6.27-rc5 v2.6.27-rc5
Linus Torvalds [Thu, 28 Aug 2008 22:52:02 +0000 (15:52 -0700)]
Linux 2.6.27-rc5

17 years agoMerge master.kernel.org:/home/rmk/linux-2.6-arm
Linus Torvalds [Thu, 28 Aug 2008 19:34:27 +0000 (12:34 -0700)]
Merge master.kernel.org:/home/rmk/linux-2.6-arm

* master.kernel.org:/home/rmk/linux-2.6-arm:
  [ARM] 5226/1: remove unmatched comment end.
  [ARM] Skip memory holes in FLATMEM when reading /proc/pagetypeinfo
  [ARM] use bcd2bin/bin2bcd
  [ARM] use the new byteorder headers
  [ARM] OMAP: Fix 2430 SMC91x ethernet IRQ
  [ARM] OMAP: Add and update OMAP default configuration files
  [ARM] OMAP: Change mailing list for OMAP in MAINTAINERS
  [ARM] S3C2443: Fix the S3C2443 clock register definitions
  [ARM] JIVE: Fix the spi bus numbering
  [ARM] S3C24XX: pwm.c: stop debugging output
  [ARM] S3C24XX: Fix sparse warnings in pwm.c
  [ARM] S3C24XX: Fix spare errors in pwm-clock driver
  [ARM] S3C24XX: Fix sparse warnings in arch/arm/plat-s3c24xx/gpiolib.c
  [ARM] S3C24XX: Fix nor-simtec driver sparse errors
  [ARM] 5225/1: zaurus: Register I2C controller for audio codecs
  [ARM] orion5x: update defconfig to v2.6.27-rc4
  [ARM] Orion: register UART1 on QNAP TS-209 and TS-409
  [ARM] Orion: activate lm75 driver on DNS-323
  [ARM] Orion: fix MAC detection on QNAP TS-209 and TS-409
  [ARM] Orion: Fix boot crash on Kurobox Pro

17 years agoMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney...
Linus Torvalds [Thu, 28 Aug 2008 19:34:01 +0000 (12:34 -0700)]
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/blackfin-2.6

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/blackfin-2.6:
  Blackfin arch: Fix PM building on BF52x: No ROTWE on BF52x, add USBWE
  Blackfin arch: sram: use 'unsigned long' for irqflags
  Blackfin arch: let PCI depend on BROKEN
  Blackfin arch: move include/asm-blackfin header files to arch/blackfin
  Blackfin arch: fix bug - MPU crashes under stress
  Blackfin arch: Fix bug - when to rmmod the L1_module, it stucks and then reboot the board.
  Blackfin arch: dont actually need to muck with EMAC_SYSTAT for BF52x for demuxing
  Blackfin arch: Add MTD Partitions for MTD_DATAFLASH, increase max SPI SCLK