]> pilppa.org Git - linux-2.6-omap-h63xx.git/log
linux-2.6-omap-h63xx.git
17 years agoI2C: Initiallize func_cb to NULL
Tony Lindgren [Tue, 9 Sep 2008 17:40:43 +0000 (10:40 -0700)]
I2C: Initiallize func_cb to NULL

As pointed out by Adrian Hunter.

Signed-off-by: Tony Lindren <tony@atomide.com>
17 years agortc-twl4030: Fix periodic interrupt
Jagadeesh Bhaskar Pakaravoor [Fri, 5 Sep 2008 09:24:46 +0000 (14:54 +0530)]
rtc-twl4030: Fix periodic interrupt

RTC generates an extra spurious interrupt for every actual periodic
interrupt. This is due to a problem with the RTC_IT bit of
REG_PWR_ISR1. It requires two writes or two reads (when COR is
enabled) to clear it. Since COR is enabled and one read of the same
register is done already (inside twl4030-pwrirq.c do_twl4030_pwrirq()
function), we can do away with a need to add one more write into the
same register inside the interrupt handler, by replacing the write
currently present with just one extra read.

Signed-off-by: Jagadeesh Bhaskar Pakaravoor <j-pakaravoor@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agortc-twl4030 cleanup
David Brownell [Thu, 4 Sep 2008 17:24:17 +0000 (10:24 -0700)]
rtc-twl4030 cleanup

Some rtc-twl4030 cleanup, which among other things adds up to
using about 10% less object code:

 - Remove:
    * broken/unfixable "periodic" IRQ support (2^N Hz)
    * duplicated constants in the header file
    * pointless stuff:
       + support for settable epoch
       + memset() calls
       + indirection when reading time and alarm
       + indirection when enabling irqs
    * needless ifdeffery for reading irq enable register
 - IRQ updates:
    * group irq enable/disable utilities together
    * cache irq enable register
    * now disable any old alarm irq before setting alarm
 - Comment updates
    * fix up my copyright attribution (old omap1 code)
    * more correctly describe the rtc mask/set ops
    * have a single place describe the register vs tm_* differences
 - Other:
    * don't support "current" dates in the 20th century
    * switch over to bcd2bin()/bin2bcd()
    * prefer dev_err() and better messages to printk(KERN_ERR...)
    * correct some KERN_WARNING messages (should have been pr_err)
    * whitespace bugs
    * misc

The bugs fixed here are removing "periodic" IRQ support, and
some of the messaging.  Update IRQs still misbehave (two per
second, not one!), and the alarm isn't wake-enabled.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoALSA: Release v1.0.18rc3
Jaroslav Kysela [Tue, 9 Sep 2008 16:55:25 +0000 (18:55 +0200)]
ALSA: Release v1.0.18rc3

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: HDA patch_via.c: Second S/PDIF (HDMI) support
Harald Welte [Tue, 9 Sep 2008 08:02:09 +0000 (16:02 +0800)]
ALSA: HDA patch_via.c: Second S/PDIF (HDMI) support

The VT1702 and VT1708S have a second S/PDIF output which is used to
connect to a HDMI transmitter.  This patch adds support for it.

Signed-off-by: Harald Welte <HaraldWelte@viatech.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: HDA patch_via.c: Independent DAC for headphone
Harald Welte [Tue, 9 Sep 2008 07:58:27 +0000 (15:58 +0800)]
ALSA: HDA patch_via.c: Independent DAC for headphone

This mode allows an output stream to have two substreams, one for the
speakers and one for the headphone.  Each of the substreams has independent
PCM data and uses a different DAC.

Signed-off-by: Harald Welte <HaraldWelte@viatech.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: HDA patch_via.c: Mute on headphone plug-in
Harald Welte [Tue, 9 Sep 2008 07:57:32 +0000 (15:57 +0800)]
ALSA: HDA patch_via.c: Mute on headphone plug-in

Signed-off-by: Harald Welte <HaraldWelte@viatech.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: HDA patch_via.c: Add VT1708S and VT1702 support
Harald Welte [Tue, 9 Sep 2008 07:56:01 +0000 (15:56 +0800)]
ALSA: HDA patch_via.c: Add VT1708S and VT1702 support

The VT1702 and VT1708S codecs are new HDA codecs by VIA.

This patch adds support for them to the patch_via.c file for HDA

Signed-off-by: Harald Welte <HaraldWelte@viatech.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: HDA patch_via.c: Fix inversion of surround and side channels
Harald Welte [Tue, 9 Sep 2008 07:53:36 +0000 (15:53 +0800)]
ALSA: HDA patch_via.c: Fix inversion of surround and side channels

In the current driver, there is a consistent mistake between the SURROUND and
the SIDE channels.  This patch fixes it.

Signed-off-by: Harald Welte <HaraldWelte@viatech.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: HDA patch_via.c: HP and CD pin connect config
Harald Welte [Tue, 9 Sep 2008 07:50:37 +0000 (15:50 +0800)]
ALSA: HDA patch_via.c: HP and CD pin connect config

Signed-off-by: Harald Welte <HaraldWelte@viatech.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: HDA patch_via.c: cleanup
Harald Welte [Tue, 9 Sep 2008 07:40:38 +0000 (15:40 +0800)]
ALSA: HDA patch_via.c: cleanup

* add extra parenthesis to make code more readable
* use kzalloc() for alloc+zero rather than kcalloc()
* ensure that AUTO_SEQ_* starts at 0

Signed-off-by: Harald Welte <HaraldWelte@viatech.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: fix section for sa11xx-uda1341 platform driver
Uwe Kleine-König [Tue, 9 Sep 2008 11:47:11 +0000 (13:47 +0200)]
ALSA: fix section for sa11xx-uda1341 platform driver

Don't use __init but __devinit to define probe function.  A pointer to
sa11xx_uda1341_probe is passed to the core via platform_driver_register
and so the function must not disappear after the module is loaded.  Using
__init and having HOTPLUG=y and SND_SA11XX_UDA1341=m the following
probably oopses:

echo -n sa11xx_uda1341.1 > /sys/bus/platform/driver/sa11xx_uda1341/unbind
echo -n sa11xx_uda1341.1 > /sys/bus/platform/driver/sa11xx_uda1341/bind

Signed-off-by: Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de>
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Brian Avery <b.avery@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: hda - add missing slave_dig_outs for 92HD73bxx
Matthew Ranostay [Tue, 9 Sep 2008 08:46:38 +0000 (10:46 +0200)]
ALSA: hda - add missing slave_dig_outs for 92HD73bxx

Signed-off-by: Matthew Ranostay <mranostay@embeddedalley.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoAdd default configuration for Arcom/Eurotech Viper SBC
Marc Zyngier [Tue, 29 Jul 2008 09:33:15 +0000 (11:33 +0200)]
Add default configuration for Arcom/Eurotech Viper SBC

Signed-off-by: Marc Zyngier <marc.zyngier@altran.com>
17 years agoAdd support for the Arcom/Eurotech Viper SBC CompactFlash card slot
Marc Zyngier [Tue, 19 Aug 2008 10:15:53 +0000 (12:15 +0200)]
Add support for the Arcom/Eurotech Viper SBC CompactFlash card slot

The Arcom/Eurotech Viper needs some extra care to run. On this board,
the PC104 connector is actually wired to the second PCMCIA slot.
Therefore, this second socket needs to be enabled, despite not being
managed by the PCMCIA code.

I'd rather have the MECR setup in the platform support code so I could,
for example, use the PC104 bus without having the PCMCIA module loaded.

Signed-off-by: Marc Zyngier <marc.zyngier@altran.com>
17 years agoAdd support for the Arcom/Eurotech Viper SBC onboard ethernet.
Marc Zyngier [Tue, 22 Jul 2008 14:59:44 +0000 (16:59 +0200)]
Add support for the Arcom/Eurotech Viper SBC onboard ethernet.

Signed-off-by: Marc Zyngier <marc.zyngier@altran.com>
17 years agoBasic support for the Arcom/Eurotech Viper SBC.
Marc Zyngier [Thu, 14 Aug 2008 15:20:31 +0000 (17:20 +0200)]
Basic support for the Arcom/Eurotech Viper SBC.

Signed-off-by: Marc Zyngier <marc.zyngier@altran.com>
17 years agoExport smc91x led definitions
Marc Zyngier [Fri, 22 Aug 2008 14:36:28 +0000 (16:36 +0200)]
Export smc91x led definitions

Now that we can configure smc91x leds from its platform data,
it seems rather useful to move the led definitions to the
externally visible header file.

Signed-off-by: Marc Zyngier <marc.zyngier@altran.com>
17 years ago[ARM] 5244/1: Add hardware CTSRTS flow control to pxa serial driver
Robert Jarzmik [Sat, 6 Sep 2008 22:01:32 +0000 (23:01 +0100)]
[ARM] 5244/1: Add hardware CTSRTS flow control to pxa serial driver

Adds hardware CTSRTS control for pxa serial devices through
termios controls.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years ago[ARM] pxa: Allow platforms to override PSPR setting
Russell King [Wed, 27 Aug 2008 11:55:04 +0000 (12:55 +0100)]
[ARM] pxa: Allow platforms to override PSPR setting

Currently, we set PSPR just before entering sleep mode.  However,
some platforms have different requirements for setting PSPR in
order to properly wake up.

Set PSPR earlier in the suspend cycle so that platforms can
change the setting by using a sysdev driver instead.

Acked-by: Eric Miao <eric.miao@marvell.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years ago[ARM] 5224/2: PXA SSP: Introduce register accessors
Mark Brown [Tue, 26 Aug 2008 17:40:57 +0000 (18:40 +0100)]
[ARM] 5224/2: PXA SSP: Introduce register accessors

Introduce accessors for the SSP registers so that drivers don't need to
open code offsets from the MMIO base.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Eric Miao <eric.miao@marvell.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years ago[I2C] pxa: provide late suspend and early resume hooks
Russell King [Tue, 26 Aug 2008 09:40:50 +0000 (10:40 +0100)]
[I2C] pxa: provide late suspend and early resume hooks

Properly hook the I2C driver into the PM code; the previous fix for
this (ece5f7b3c4fde70a1ae4add7372ebca5c90bc34d) worked around the
platform where I2C is required to be available early during resume.

It has been found to be sufficient to use the early resume hook for
this function, so the original hack can die.  Leave the hack in
place for the PIO transfer handler though.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years ago[ARM] 5203/1: i2c-pxa: fix scheduling while atomic in i2c_pxa_abort()
Dmitry Baryshkov [Mon, 18 Aug 2008 13:38:48 +0000 (14:38 +0100)]
[ARM] 5203/1: i2c-pxa: fix scheduling while atomic in i2c_pxa_abort()

i2c_pxa_abort can be called from the atomic context.
Change it to use mdelay and counted loop.

Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Acked-by: Eric Miao <eric.miao@marvell.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years ago[ARM] 5201/1: PXA3xx: Add support for power i2c bus
Mike Rapoport [Sun, 17 Aug 2008 05:23:05 +0000 (06:23 +0100)]
[ARM] 5201/1: PXA3xx: Add support for power i2c bus

Add power I2C support for PXA3xx processors

Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years agoRevert some merge-errors
Tony Lindgren [Tue, 9 Sep 2008 15:24:26 +0000 (08:24 -0700)]
Revert some merge-errors

As pointed out by Russell King.

Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years ago[ARM] Add -march=all to assembly file build in arch/arm/boot/compressed
Russell King [Tue, 9 Sep 2008 12:56:45 +0000 (13:56 +0100)]
[ARM] Add -march=all to assembly file build in arch/arm/boot/compressed

This allows assembly files to be crafted to cover all ARM CPU types
rather than erroring out on instructions only in later CPUs.  We
are careful in these files to only execute CPU specific code when
the CPU ID says we can.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years agoipsec: Restore larval states and socket policies in dump
Herbert Xu [Tue, 9 Sep 2008 12:23:37 +0000 (05:23 -0700)]
ipsec: Restore larval states and socket policies in dump

The commit commit 4c563f7669c10a12354b72b518c2287ffc6ebfb3 ("[XFRM]:
Speed up xfrm_policy and xfrm_state walking") inadvertently removed
larval states and socket policies from netlink dumps.  This patch
restores them.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agopowerpc/44x: Add hwmon support to Sequoia device tree
Matthias Fuchs [Sun, 7 Sep 2008 21:57:21 +0000 (21:57 +0000)]
powerpc/44x: Add hwmon support to Sequoia device tree

This patch adds support for the AD7414 temperature sensor
on Sequoia PPC440EPx board.

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
Acked-by: Stefan Roese <sr@denx.de>
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
17 years agoMerge branch 'master' of git://eden-feed.erg.abdn.ac.uk/net-next-2.6
David S. Miller [Tue, 9 Sep 2008 12:09:24 +0000 (05:09 -0700)]
Merge branch 'master' of git://eden-feed.erg.abdn.ac.uk/net-next-2.6

17 years agobnx2x: EEH recovery fix
Yitchak Gertner [Tue, 9 Sep 2008 12:07:25 +0000 (05:07 -0700)]
bnx2x: EEH recovery fix

When EEH detects an i/o error it resets the device thus it cannot be accessed.
In this case the driver needs to unload its interface only with OS, kernel and
network stack but not with the device.
After successful recovery, the driver can load normally.

Signed-off-by: Yitchak Gertner <gertner@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agoThis reverts "Merge branch 'dccp' of git://eden-feed.erg.abdn.ac.uk/dccp_exp"
Gerrit Renker [Tue, 9 Sep 2008 11:27:22 +0000 (13:27 +0200)]
This reverts "Merge branch 'dccp' of git://eden-feed.erg.abdn.ac.uk/dccp_exp"
as it accentally contained the wrong set of patches. These will be
submitted separately.
Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
17 years ago[S390] cio: allow offline processing for disconnected devices
Peter Oberparleiter [Tue, 9 Sep 2008 10:38:59 +0000 (12:38 +0200)]
[S390] cio: allow offline processing for disconnected devices

When disconnected ccw devices are removed, the device has to be set
offline, otherwise there will be side effects including a reference
count imbalance. This patch modifies ccw_device_offline to work for
devices in disconnecte/not operational state. ccw_device_offline is
called by cio for devices which are online during device removal.

Signed-off-by: Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
17 years ago[S390] cio: handle ssch() return codes correctly.
Cornelia Huck [Tue, 9 Sep 2008 10:38:58 +0000 (12:38 +0200)]
[S390] cio: handle ssch() return codes correctly.

ssch() has two classes of return codes:
- condition codes (0-3) which need to be translated to Linux
  error codes
- Linux error codes (-EIO on exceptions) which should be passed
  to the caller (instead of erronously being handled like
  condition code 3)

Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
17 years ago[S390] cio: Correct cleanup on error.
Cornelia Huck [Tue, 9 Sep 2008 10:38:57 +0000 (12:38 +0200)]
[S390] cio: Correct cleanup on error.

Fix cleanup on error in chp_new() and init_channel_subsystem()
(must not call kfree() on structures that had been registered).

Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
17 years ago[S390] CVE-2008-1514: prevent ptrace padding area read/write in 31-bit mode
Jarod Wilson [Tue, 9 Sep 2008 10:38:56 +0000 (12:38 +0200)]
[S390] CVE-2008-1514: prevent ptrace padding area read/write in 31-bit mode

When running a 31-bit ptrace, on either an s390 or s390x kernel,
reads and writes into a padding area in struct user_regs_struct32
will result in a kernel panic.

This is also known as CVE-2008-1514.

Test case available here:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/~checkout~/tests/ptrace-tests/tests/user-area-padding.c?cvsroot=systemtap

Steps to reproduce:
1) wget the above
2) gcc -o user-area-padding-31bit user-area-padding.c -Wall -ggdb2 -D_GNU_SOURCE -m31
3) ./user-area-padding-31bit
<panic>

Test status
-----------
Without patch, both s390 and s390x kernels panic. With patch, the test case,
as well as the gdb testsuite, pass without incident, padding area reads
returning zero, writes ignored.

Nb: original version returned -EINVAL on write attempts, which broke the
gdb test and made the test case slightly unhappy, Jan Kratochvil suggested
the change to return 0 on write attempts.

Signed-off-by: Jarod Wilson <jarod@redhat.com>
Tested-by: Jan Kratochvil <jan.kratochvil@redhat.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
17 years agoMX2: Add DMA support for mx2 and (eventually) mx1
Sascha Hauer [Tue, 9 Sep 2008 08:19:44 +0000 (10:19 +0200)]
MX2: Add DMA support for mx2 and (eventually) mx1

This patch adds DMA support for Freescale i.MX27 SoCs. It is derived
from the i.MX1 port and should (though currently untested) still be
working for the i.MX1.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
17 years agoi.MX: Add FIQ support
Paulius Zaleckas [Tue, 9 Sep 2008 08:19:43 +0000 (10:19 +0200)]
i.MX: Add FIQ support

Drivers which are going to use it will have to select it and use
imx_set_irq_fiq() to set FIQ mode for this interrupt.

Changes since V1:
- removed '#ifdef CONFIG_FIQ' from irqs.h
- renamed imx_set_irq_type() to imx_set_irq_fiq()
- made irqt unsigned
- fixed irq number check

Signed-off-by: Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
17 years agoMXC: Remove WD IRQ priority setting
Darius Augulis [Tue, 9 Sep 2008 08:19:43 +0000 (10:19 +0200)]
MXC: Remove WD IRQ priority setting

Remove WD IRQ priority setting from ARCH_MXC common init code, because
it's application specific.

Signed-off-by: Darius Augulis <augulis.darius@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
17 years agoi.MX3: Fix compiler warnings
Luotao Fu [Tue, 9 Sep 2008 08:19:43 +0000 (10:19 +0200)]
i.MX3: Fix compiler warnings

Fix some base address declaration by adding a cast.

Signed-off-by: Luotao Fu <l.fu@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
17 years agoMXC: add RTCK alternate function definitions
Luotao Fu [Tue, 9 Sep 2008 08:19:43 +0000 (10:19 +0200)]
MXC: add RTCK alternate function definitions

This one adds definitions to configure RTCK pad (PE16) in primary and alternate
function. The RTCK Pin is used by one wire master controller and as JTAG Clock
return.

Signed-off-by: Luotao Fu <l.fu@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
17 years agomxc: add cscr register defintions
Luotao Fu [Tue, 9 Sep 2008 08:19:42 +0000 (10:19 +0200)]
mxc: add cscr register defintions

This adds macros to get CSCR upper, lower and additional registers.
These registers are needed to configure a chip select line. The offset
layouts of these Registers are identical on mx27 and mx31, hence we can
use the macros in generic way

Signed-off-by: Luotao Fu <l.fu@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
17 years agoMX31: add macros to configure spi pins
Luotao Fu [Tue, 9 Sep 2008 08:19:42 +0000 (10:19 +0200)]
MX31: add macros to configure spi pins

this adds convenience values usable by mxc_iomux_mode() to configure Pins of the
spi interfaces on mx31.

Signed-off-by: Luotao Fu <l.fu@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
17 years agoMXC: Lets handle IRQ by priority, defined with exported API function
Darius Augulis [Tue, 9 Sep 2008 09:29:41 +0000 (11:29 +0200)]
MXC: Lets handle IRQ by priority, defined with exported API function

Signed-off-by: Darius Augulis <augulis.darius@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
17 years agoMerge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/holtmann/bluet...
David S. Miller [Tue, 9 Sep 2008 09:11:11 +0000 (02:11 -0700)]
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/holtmann/bluetooth-2.6

17 years agoi.MX31ADS: Add CPLD interrupts demultiplexing (take 3).
Gilles Chanteperdrix [Tue, 9 Sep 2008 08:19:42 +0000 (10:19 +0200)]
i.MX31ADS: Add CPLD interrupts demultiplexing (take 3).

Needed for 8250 serial port and CS89x0 ethernet interface.

Signed-off-by: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
17 years agoi.MX31ADS: Enable the first IMX serial port. (take 3)
Gilles Chanteperdrix [Tue, 9 Sep 2008 08:19:41 +0000 (10:19 +0200)]
i.MX31ADS: Enable the first IMX serial port. (take 3)

Signed-off-by: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
17 years agoi.MX27: add definitions for USB pins
Sascha Hauer [Tue, 9 Sep 2008 08:19:41 +0000 (10:19 +0200)]
i.MX27: add definitions for USB pins

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
17 years agoi.MX2: make SoC devices globally available
Sascha Hauer [Tue, 9 Sep 2008 08:19:41 +0000 (10:19 +0200)]
i.MX2: make SoC devices globally available

Make SoC devices globally available to boards rather than using
a device specific init function.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
17 years agoi.MX3: make SoC devices globally available
Sascha Hauer [Tue, 9 Sep 2008 08:19:41 +0000 (10:19 +0200)]
i.MX3: make SoC devices globally available

Make SoC devices globally available to boards rather than using
a device specific init function.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
17 years agoMXC: add convenience function to register platform devices
Sascha Hauer [Tue, 9 Sep 2008 08:19:40 +0000 (10:19 +0200)]
MXC: add convenience function to register platform devices

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
17 years agoALSA: hda: SPDIF mux name change
Matthew Ranostay [Mon, 8 Sep 2008 15:36:59 +0000 (11:36 -0400)]
ALSA: hda: SPDIF mux name change

Changed the mux naming scheme from "IEC9258 Mux" to "IEC958 Playback Source" to match
the coding style.

Signed-by-off: Matthew Ranostay <mranostay@embeddedalley.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: hda: digital slave support for IDT codecs
Matthew Ranostay [Mon, 8 Sep 2008 15:20:05 +0000 (11:20 -0400)]
ALSA: hda: digital slave support for IDT codecs

Added slave_dig_outs entries for several IDT codecs that have multiple
SPDIF outs, and enabled these SPDIF outs in several pin configs.

Signed-off-by: Matthew Ranostay <mranostay@embeddedalley.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: ASoC: Use codec digital mute when stopping playback
Mark Brown [Sat, 6 Sep 2008 17:33:24 +0000 (18:33 +0100)]
ALSA: ASoC: Use codec digital mute when stopping playback

Muting the DAC masks artefacts introduced as the digital stream shuts
down, for example when the input stops being clocked.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: ASoC: Sort Kconfig and Makefile entries for codecs
Mark Brown [Sat, 6 Sep 2008 17:11:51 +0000 (18:11 +0100)]
ALSA: ASoC: Sort Kconfig and Makefile entries for codecs

Hopefully this will make merges a little bit easier.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: ASoC: Fix indentation in WM9713
Mark Brown [Fri, 5 Sep 2008 21:40:49 +0000 (22:40 +0100)]
ALSA: ASoC: Fix indentation in WM9713

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: hda: slave digital out support
Matthew Ranostay [Sun, 7 Sep 2008 18:31:40 +0000 (14:31 -0400)]
ALSA: hda: slave digital out support

Added support for playing a stream on multiple digital outs. This is done
by defining codec->slave_dig_outs as array of hda_nid_t with a null-terminated entry to set the
slave SPDIF outs, in which the slave outs have cloned settings of the master out (e.g. dig_out_nid).

Signed-off-by: Matthew Ranostay <mranostay@embeddedalley.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: fix section mismatch in the sound_core
Krzysztof Helt [Sun, 7 Sep 2008 15:24:33 +0000 (17:24 +0200)]
ALSA: fix section mismatch in the sound_core

The __exit cleanup_oss_soundcore() is called from
the __init init_soundcore(). This causes section mismatch
and breaks kernel's linking on sparc64.

Remove the __exit attribute from the cleanup_oss_soundcore().

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: use correct lock in snd_ctl_dev_disconnect()
Takashi Iwai [Sun, 7 Sep 2008 10:51:13 +0000 (12:51 +0200)]
ALSA: use correct lock in snd_ctl_dev_disconnect()

The lock used in snd_ctl_dev_disconnect() should be card->ctl_files_rwlock
for protection of card->ctl_files entries, instead of card->controls_rwsem.

Reported-by: Vegard Nossum <vegard.nossum@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: ice1712.c: fix coding style
Alexander Beregalov [Sun, 7 Sep 2008 10:17:02 +0000 (14:17 +0400)]
ALSA: ice1712.c: fix coding style

before:
total: 113 errors, 169 warnings, 2786 lines checked
total: 26 errors, 24 warnings, 504 lines checked

after:
total: 14 errors, 163 warnings, 2799 lines checked
total: 0 errors, 24 warnings, 504 lines checked

Compile tested only.

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: ice1724.c: fix coding style
Alexander Beregalov [Sun, 7 Sep 2008 10:11:04 +0000 (14:11 +0400)]
ALSA: ice1724.c: fix coding style

before:
total: 96 errors, 66 warnings, 2612 lines checked

after:
total: 11 errors, 64 warnings, 2624 lines checked

Compile tested only.

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: ice1712/ice1724: Coding style fixes part 1 (more coming up)
Vedran Miletic [Sun, 7 Sep 2008 10:00:02 +0000 (12:00 +0200)]
ALSA: ice1712/ice1724: Coding style fixes part 1 (more coming up)

Inspired by Alexander Beregalov's patches for wtm and aureon.c,
I decided to run checkpatch on some more files. After some work
checkpatch.pl-0.23 --no-tree --file --strict <file> reports
0 errors, 0 warnings, 0 checks, n lines checked for:
phase.c
phase.h
juli.c (1 check about unused code, maybe we should comment it)
juli.h (no changes necessary)
In other files I have just fixed // comments and long lines along the
way (but not all of them), more coming up.

Signed-off-by: Vedran Miletic <rivanvx@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: hda: removed unneeded hp_nid references
Matthew Ranostay [Sun, 7 Sep 2008 10:04:17 +0000 (12:04 +0200)]
ALSA: hda: removed unneeded hp_nid references

Removed unneeded hp_nid references for 92hd73xx codec family.

Signed-off-by: Matthew Ranostay <mranostay@embeddedalley.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: hda: SPDIF mux controls
Matthew Ranostay [Sun, 7 Sep 2008 10:03:41 +0000 (12:03 +0200)]
ALSA: hda: SPDIF mux controls

Dynamically create mux controls for SPDIF outs on certain IDT/Sigmatel codecs.

Signed-off-by: Matthew Ranostay <mranostay@embeddedalley.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: ice1712/wtm: fix coding style
Alexander Beregalov [Sat, 6 Sep 2008 21:54:27 +0000 (01:54 +0400)]
ALSA: ice1712/wtm: fix coding style

before:
total: 2 errors, 0 warnings, 20 lines checked
total: 49 errors, 2 warnings, 518 lines checked

after:
total: 0 errors, 0 warnings, 20 lines checked
total: 0 errors, 0 warnings, 518 lines checked

Compile tested, size and code are equal.

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: ice1712/aureon.c: fix coding style
Alexander Beregalov [Sat, 6 Sep 2008 21:19:00 +0000 (01:19 +0400)]
ALSA: ice1712/aureon.c: fix coding style

before:
total: 304 errors, 137 warnings, 2259 lines checked

after:
total: 0 errors, 121 warnings, 2284 lines checked

Compile tested, size is different because of include was changed,
but without that change md5sum is different because of cmp cx,dx/cmp
dx,cx swap and __LINE__ was changed in printk function.

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agosound: ASoC: Blackfin: Include Blackfin architecture support in build
Cliff Cai [Fri, 5 Sep 2008 10:21:34 +0000 (18:21 +0800)]
sound: ASoC: Blackfin: Include Blackfin architecture support in build

Signed-off-by: Cliff Cai <cliff.cai@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agosound: ASoC: Blackfin: add Blackfin arch ASoC Kconfig and Makefile
Cliff Cai [Fri, 5 Sep 2008 10:21:42 +0000 (18:21 +0800)]
sound: ASoC: Blackfin: add Blackfin arch ASoC Kconfig and Makefile

Signed-off-by: Cliff Cai <cliff.cai@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agosound: ASoC: Blackfin: board driver for SSM2602 sound chip
Cliff Cai [Fri, 5 Sep 2008 10:21:41 +0000 (18:21 +0800)]
sound: ASoC: Blackfin: board driver for SSM2602 sound chip

Signed-off-by: Cliff Cai <cliff.cai@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agosound: ASoC: Blackfin: board driver for AD1980/1 audio codec
Cliff Cai [Fri, 5 Sep 2008 10:21:40 +0000 (18:21 +0800)]
sound: ASoC: Blackfin: board driver for AD1980/1 audio codec

Signed-off-by: Cliff Cai <cliff.cai@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agosound: ASoC: Blackfin: I2S CPU DAI driver
Cliff Cai [Fri, 5 Sep 2008 10:21:39 +0000 (18:21 +0800)]
sound: ASoC: Blackfin: I2S CPU DAI driver

[Additional coding standards fixes by Mark Brown.]

Signed-off-by: Cliff Cai <cliff.cai@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agosound: ASoC: Blackfin: DMA Driver for I2S sound chip
Cliff Cai [Fri, 5 Sep 2008 10:21:38 +0000 (18:21 +0800)]
sound: ASoC: Blackfin: DMA Driver for I2S sound chip

Signed-off-by: Cliff Cai <cliff.cai@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agosound: ASoC: Blackfin: AC97 Blackfin CPU DAI driver
Cliff Cai [Fri, 5 Sep 2008 10:21:37 +0000 (18:21 +0800)]
sound: ASoC: Blackfin: AC97 Blackfin CPU DAI driver

Signed-off-by: Cliff Cai <cliff.cai@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agosound: ASoC: Blackfin: DMA Driver for AC97 sound chip
Cliff Cai [Fri, 5 Sep 2008 10:21:36 +0000 (18:21 +0800)]
sound: ASoC: Blackfin: DMA Driver for AC97 sound chip

[Additional coding standards fixes by Mark Brown.]

Signed-off-by: Bryan Wu <cooloney@kernel.org>
Signed-off-by: Cliff Cai <cliff.cai@analog.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agosound: ASoC: Blackfin: SPORT peripheral interface driver
Cliff Cai [Fri, 5 Sep 2008 10:21:35 +0000 (18:21 +0800)]
sound: ASoC: Blackfin: SPORT peripheral interface driver

SPORT is a serial port which can support serveral serial communication
protocols.  It can be used as I2C/PCM/AC97. For further information,
please look up the HRM.

[Additional coding standards fixes by Mark Brown.]

Signed-off-by: Cliff Cai <cliff.cai@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agosound: ASoC codec: SSM2602 audio codec driver
Cliff Cai [Fri, 5 Sep 2008 10:09:57 +0000 (18:09 +0800)]
sound: ASoC codec: SSM2602 audio codec driver

[Some checkpatch fixups done by Mark Brown.]

Signed-off-by: Cliff Cai <cliff.cai@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agosound: ASoC: Convert wm8510 to a new-style i2c driver
Jean Delvare [Tue, 2 Sep 2008 15:07:30 +0000 (17:07 +0200)]
sound: ASoC: Convert wm8510 to a new-style i2c driver

Convert the wm8510 codec driver to the new (standard) device
driver binding model.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Geoffrey Wossum <gwossum@acm.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agosound: ASoC: Convert neo1973/lm4857 to a new-style i2c driver
Jean Delvare [Mon, 1 Sep 2008 15:46:57 +0000 (17:46 +0200)]
sound: ASoC: Convert neo1973/lm4857 to a new-style i2c driver

Convert the lm4857 driver in neo1973_wm8753 to the new (standard)
i2c device driver binding model. I assumed that the LM4857 was always
on the same I2C bus as the WM8753 codec.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Tim Niemeyer <reddog@mastersword.de>
Cc: Graeme Gregory <graeme@openmoko.org>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agosound: ASoC: Convert wm8753 to a new-style i2c driver
Jean Delvare [Mon, 1 Sep 2008 15:45:34 +0000 (17:45 +0200)]
sound: ASoC: Convert wm8753 to a new-style i2c driver

Convert the wm8753 codec driver to the new (standard) i2c device
driver binding model.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Ville Syrjala <syrjala@sci.fi>
Cc: Frank Mandarino <fmandarino@endrelia.com>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agosound: ASoC: Fix an error path in neo1973_wm8753
Jean Delvare [Mon, 1 Sep 2008 15:44:05 +0000 (17:44 +0200)]
sound: ASoC: Fix an error path in neo1973_wm8753

The error handling in neo1973_init is incorrect:

* If platform_device_add fails, we go on with the rest of the
  initialization instead of bailing out. Things will break when the
  module is removed (platform_device_unregister called on a device
  that wasn't registered.)

* If i2c_add_driver fails, we return an error so the module will not
  load, but we don't unregister neo1973_snd_device, so we are leaking
  resources.

Add the missing error handling.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Tim Niemeyer <reddog@mastersword.de>
Cc: Graeme Gregory <graeme@openmoko.org>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agosound: remove reference to dead sound OSS vars AEDSP16_MSS and SBPRO
Robert P. J. Day [Fri, 5 Sep 2008 07:16:38 +0000 (09:16 +0200)]
sound: remove reference to dead sound OSS vars AEDSP16_MSS and SBPRO

Remove the Kconfig definitions of unused variables AEDSP16_MSS and
AEDSP16_SBPRO since they're:

1) unused, and
2) referenced incorrectly anyway.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: us122l - Add missing dependency on CONFIG_SND_HWDEP
Randy Dunlap [Fri, 5 Sep 2008 03:28:13 +0000 (20:28 -0700)]
ALSA: us122l - Add missing dependency on CONFIG_SND_HWDEP

CONFIG_SND_USB_US122L uses snd_hwdep_new(), so SND_HWDEP needs
to be enabled (selected).

ERROR: "snd_hwdep_new" [sound/usb/usx2y/snd-usb-us122l.ko] undefined!

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: ASoC codec: fix compiling error in ad1980 driver after ASoC API changed
Cliff Cai [Thu, 4 Sep 2008 08:25:54 +0000 (16:25 +0800)]
ALSA: ASoC codec: fix compiling error in ad1980 driver after ASoC API changed

Signed-off-by: Cliff Cai <cliff.cai@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: remove stale files
Takashi Iwai [Thu, 4 Sep 2008 07:20:40 +0000 (09:20 +0200)]
ALSA: remove stale files

Empty files remained likely due to wrong patching.
Remove them now.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoALSA: hda - allow probing of 4 codecs
Takashi Iwai [Wed, 3 Sep 2008 14:00:44 +0000 (16:00 +0200)]
ALSA: hda - allow probing of 4 codecs

Allow probing of 4 codecs on known good situations.
On some known bad situations, it should be avoided.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years agoseccomp: drop now bogus dependency on PROC_FS
Alexey Dobriyan [Tue, 9 Sep 2008 07:01:31 +0000 (11:01 +0400)]
seccomp: drop now bogus dependency on PROC_FS

seccomp is prctl(2)-driven now.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years agox86: unused variable in dma_alloc_coherent_gfp_flags()
Steven Noonan [Mon, 8 Sep 2008 23:19:11 +0000 (16:19 -0700)]
x86: unused variable in dma_alloc_coherent_gfp_flags()

Fixed a warning caused by a badly placed ifdef.

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 years ago[Bluetooth] Reject L2CAP connections on an insecure ACL link
Marcel Holtmann [Tue, 9 Sep 2008 05:19:20 +0000 (07:19 +0200)]
[Bluetooth] Reject L2CAP connections on an insecure ACL link

The Security Mode 4 of the Bluetooth 2.1 specification has strict
authentication and encryption requirements. It is the initiators job
to create a secure ACL link. However in case of malicious devices, the
acceptor has to make sure that the ACL is encrypted before allowing
any kind of L2CAP connection. The only exception here is the PSM 1 for
the service discovery protocol, because that is allowed to run on an
insecure ACL link.

Previously it was enough to reject a L2CAP connection during the
connection setup phase, but with Bluetooth 2.1 it is forbidden to
do any L2CAP protocol exchange on an insecure link (except SDP).

The new hci_conn_check_link_mode() function can be used to check the
integrity of an ACL link. This functions also takes care of the cases
where Security Mode 4 is disabled or one of the devices is based on
an older specification.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
17 years ago[Bluetooth] Enforce correct authentication requirements
Marcel Holtmann [Tue, 9 Sep 2008 05:19:20 +0000 (07:19 +0200)]
[Bluetooth] Enforce correct authentication requirements

With the introduction of Security Mode 4 and Simple Pairing from the
Bluetooth 2.1 specification it became mandatory that the initiator
requires authentication and encryption before any L2CAP channel can
be established. The only exception here is PSM 1 for the service
discovery protocol (SDP). It is meant to be used without any encryption
since it contains only public information. This is how Bluetooth 2.0
and before handle connections on PSM 1.

For Bluetooth 2.1 devices the pairing procedure differentiates between
no bonding, general bonding and dedicated bonding. The L2CAP layer
wrongly uses always general bonding when creating new connections, but it
should not do this for SDP connections. In this case the authentication
requirement should be no bonding and the just-works model should be used,
but in case of non-SDP connection it is required to use general bonding.

If the new connection requires man-in-the-middle (MITM) protection, it
also first wrongly creates an unauthenticated link key and then later on
requests an upgrade to an authenticated link key to provide full MITM
protection. With Simple Pairing the link key generation is an expensive
operation (compared to Bluetooth 2.0 and before) and doing this twice
during a connection setup causes a noticeable delay when establishing
a new connection. This should be avoided to not regress from the expected
Bluetooth 2.0 connection times. The authentication requirements are known
up-front and so enforce them.

To fulfill these requirements the hci_connect() function has been extended
with an authentication requirement parameter that will be stored inside
the connection information and can be retrieved by userspace at any
time. This allows the correct IO capabilities exchange and results in
the expected behavior.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
17 years ago[Bluetooth] Fix reference counting during ACL config stage
Marcel Holtmann [Tue, 9 Sep 2008 05:19:19 +0000 (07:19 +0200)]
[Bluetooth] Fix reference counting during ACL config stage

The ACL config stage keeps holding a reference count on incoming
connections when requesting the extended features. This results in
keeping an ACL link up without any users. The problem here is that
the Bluetooth specification doesn't define an ownership of the ACL
link and thus it can happen that the implementation on the initiator
side doesn't care about disconnecting unused links. In this case the
acceptor needs to take care of this.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
17 years agosparc64: Add missing rtc_close() in update_persistent_clock()
David S. Miller [Tue, 9 Sep 2008 02:53:28 +0000 (19:53 -0700)]
sparc64: Add missing rtc_close() in update_persistent_clock()

Noticed by David Brownell.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agoomap2_nand updates
David Brownell [Sun, 31 Aug 2008 21:19:05 +0000 (14:19 -0700)]
omap2_nand updates

Minor updates to the OMAP{2,3} NAND driver:

 - Rename those buffer PIO routines as *_buf16()
 - Get rid of pointless LE16 data conversions; OMAP is always LE
 - Speed up buffer reads by switching to __raw_readsl()

Right now this driver only handles 16-bit NAND, but eventually it
should handle 8-bit too.  Moreover it may be worth using DMA...

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoARM: OMAP2: defconfig for the Gumstix Overo board (rev 3)
Steve Sakoman [Sun, 7 Sep 2008 06:41:44 +0000 (23:41 -0700)]
ARM: OMAP2: defconfig for the Gumstix Overo board (rev 3)

Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoALSA: ASoC: Add support for Gumstix Overo (rev 3)
Steve Sakoman [Sun, 7 Sep 2008 06:41:43 +0000 (23:41 -0700)]
ALSA: ASoC: Add support for Gumstix Overo (rev 3)

Signed-off-by: Steve Sakoman <steve@sakoman.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoALSA: ASoC: Add support for TWL4030 audio codec (rev 4)
Steve Sakoman [Mon, 8 Sep 2008 21:41:39 +0000 (14:41 -0700)]
ALSA: ASoC: Add support for TWL4030 audio codec (rev 4)

Signed-off-by: Steve Sakoman <steve@sakoman.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoARM: OMAP2: Add video driver the Gumstix Overo board (rev 3)
Steve Sakoman [Sun, 7 Sep 2008 06:41:41 +0000 (23:41 -0700)]
ARM: OMAP2: Add video driver the Gumstix Overo board (rev 3)

Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoARM: OMAP2: Add support for the Gumstix Overo board (rev 3)
Steve Sakoman [Sun, 7 Sep 2008 06:41:40 +0000 (23:41 -0700)]
ARM: OMAP2: Add support for the Gumstix Overo board (rev 3)

This patch adds support for basic features: nand, uarts, i2c,
mmc, rtc, and usb

Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoASoC: OMAP: Add support for OMAP2430 and OMAP34xx in McBSP DAI driver
Jarkko Nikula [Mon, 8 Sep 2008 10:29:44 +0000 (13:29 +0300)]
ASoC: OMAP: Add support for OMAP2430 and OMAP34xx in McBSP DAI driver

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoARM: OMAP: Add support for OMAP2430 in McBSP
Jarkko Nikula [Mon, 8 Sep 2008 10:29:43 +0000 (13:29 +0300)]
ARM: OMAP: Add support for OMAP2430 in McBSP

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoARM: OMAP: Update GPMC code for ioremap
Tony Lindgren [Tue, 9 Sep 2008 00:35:42 +0000 (17:35 -0700)]
ARM: OMAP: Update GPMC code for ioremap

Update GPMC code for ioremap

Signed-off-by: Tony Lindgren <tony@atomide.com>
17 years agoMerge branch 'dccp' of git://eden-feed.erg.abdn.ac.uk/dccp_exp
David S. Miller [Tue, 9 Sep 2008 00:28:59 +0000 (17:28 -0700)]
Merge branch 'dccp' of git://eden-feed.erg.abdn.ac.uk/dccp_exp

Conflicts:

net/dccp/input.c
net/dccp/options.c