]> pilppa.org Git - linux-2.6-omap-h63xx.git/log
linux-2.6-omap-h63xx.git
17 years ago[ARM] 5112/1: PXA SSP: Strip in-code changelog
Mark Brown [Thu, 19 Jun 2008 02:11:50 +0000 (03:11 +0100)]
[ARM] 5112/1: PXA SSP: Strip in-code changelog

It's not been updated in quite some time and we now have git for
history.

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[ARM] 5110/1: PXA SSP: Remember the platform device on probe()
Mark Brown [Thu, 19 Jun 2008 01:55:52 +0000 (02:55 +0100)]
[ARM] 5110/1: PXA SSP: Remember the platform device on probe()

pdev is used later on by dev_printk() so must be set.

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[ARM] 5108/2: PXA SSP: Don't unconditionally free interrupt
Mark Brown [Thu, 19 Jun 2008 02:18:09 +0000 (03:18 +0100)]
[ARM] 5108/2: PXA SSP: Don't unconditionally free interrupt

Callers may stop the SSP core requesting the interrupt so it can't be
freed unconditionally.  Also use NO_IRQ like we should.

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 agoMerge branch 'imx' into devel
Russell King [Thu, 10 Jul 2008 15:41:50 +0000 (16:41 +0100)]
Merge branch 'imx' into devel

Conflicts:

arch/arm/mm/Kconfig

17 years agoMerge branches 'at91', 'dyntick', 'ep93xx', 'iop', 'ixp', 'misc', 'orion', 'omap...
Russell King [Thu, 10 Jul 2008 15:38:50 +0000 (16:38 +0100)]
Merge branches 'at91', 'dyntick', 'ep93xx', 'iop', 'ixp', 'misc', 'orion', 'omap-reviewed', 'rpc', 'rtc' and 's3c' into devel

17 years ago[GFS2] Remove unused declaration
Li Xiaodong [Mon, 7 Jul 2008 10:04:09 +0000 (18:04 +0800)]
[GFS2] Remove unused declaration

The implementation of gfs2_inode_attr_in is removed.
So remove its declaration.

Signed-off-by: Li Xiaodong <lixd@cn.fujitsu.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
17 years ago[GFS2] Remove support for unused and pointless flag
Steven Whitehouse [Thu, 10 Jul 2008 15:09:29 +0000 (16:09 +0100)]
[GFS2] Remove support for unused and pointless flag

The ability to mark files for direct i/o access when opened
normally is both unused and pointless, so this patch removes
support for that feature.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
17 years ago[GFS2] Replace rgrp "recent list" with mru list
Steven Whitehouse [Thu, 10 Jul 2008 14:54:12 +0000 (15:54 +0100)]
[GFS2] Replace rgrp "recent list" with mru list

This patch removes the "recent list" which is used during allocation
and replaces it with the (already existing) mru list used during
deletion. The "recent list" was not a true mru list leading to a number
of inefficiencies including a "next" function which made scanning the
list an order N^2 operation wrt to the number of list elements.

This should increase allocation performance with large numbers of rgrps.
Its also a useful preparation and cleanup before some further changes
which are planned in this area.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
17 years ago[ARM] 5171/1: ep93xx: fix compilation of modules using clocks
Dmitry Baryshkov [Thu, 10 Jul 2008 13:44:23 +0000 (14:44 +0100)]
[ARM] 5171/1: ep93xx: fix compilation of modules using clocks

Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years agoip2: use request_firmware()
David Woodhouse [Wed, 11 Jun 2008 15:57:21 +0000 (16:57 +0100)]
ip2: use request_firmware()

Converted with help from Jaswinder Singh

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Acked-by: Alan Cox <alan@redhat.com>
17 years agofirmware: convert Ambassador ATM driver to request_firmware()
David Woodhouse [Thu, 5 Jun 2008 11:59:51 +0000 (12:59 +0100)]
firmware: convert Ambassador ATM driver to request_firmware()

Since it had various regions to be loaded to separate addresses, and it
wanted to do them in fairly small chunks anyway, switch it to use the
new ihex code. Encode the start address in the first record.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Acked-by: Chas Williams <chas@cmf.nrl.navy.mil>
17 years agowhiteheat: use request_firmware()
David Woodhouse [Fri, 30 May 2008 22:35:29 +0000 (01:35 +0300)]
whiteheat: use request_firmware()

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agoti_usb_3410_5052: use request_firmware()
David Woodhouse [Fri, 30 May 2008 15:49:51 +0000 (18:49 +0300)]
ti_usb_3410_5052: use request_firmware()

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agoemi62: use request_firmware()
David Woodhouse [Fri, 30 May 2008 14:35:47 +0000 (17:35 +0300)]
emi62: use request_firmware()

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agoemi26: use request_firmware()
David Woodhouse [Fri, 30 May 2008 13:19:39 +0000 (16:19 +0300)]
emi26: use request_firmware()

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agokeyspan_pda: use request_firmware()
David Woodhouse [Fri, 30 May 2008 12:15:13 +0000 (15:15 +0300)]
keyspan_pda: use request_firmware()

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agokeyspan: use request_firmware()
David Woodhouse [Fri, 30 May 2008 11:04:03 +0000 (14:04 +0300)]
keyspan: use request_firmware()

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agottusb-budget: use request_firmware()
David Woodhouse [Thu, 29 May 2008 16:50:06 +0000 (19:50 +0300)]
ttusb-budget: use request_firmware()

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Acked-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 years agokaweth: use request_firmware()
David Woodhouse [Thu, 29 May 2008 14:17:17 +0000 (17:17 +0300)]
kaweth: use request_firmware()

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agosmctr: use request_firmware()
David Woodhouse [Thu, 29 May 2008 13:39:16 +0000 (16:39 +0300)]
smctr: use request_firmware()

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agofirmware: convert ymfpci driver to use firmware loader exclusively
David Woodhouse [Thu, 29 May 2008 12:07:34 +0000 (15:07 +0300)]
firmware: convert ymfpci driver to use firmware loader exclusively

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agofirmware: convert maestro3 driver to use firmware loader exclusively
David Woodhouse [Thu, 29 May 2008 11:48:34 +0000 (14:48 +0300)]
firmware: convert maestro3 driver to use firmware loader exclusively

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agofirmware: convert korg1212 driver to use firmware loader exclusively
David Woodhouse [Mon, 26 May 2008 22:01:27 +0000 (23:01 +0100)]
firmware: convert korg1212 driver to use firmware loader exclusively

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agoihex: Add support for long records to ihex2fw.c
David Woodhouse [Thu, 26 Jun 2008 12:55:30 +0000 (13:55 +0100)]
ihex: Add support for long records to ihex2fw.c

Some drivers could do with using records like Intel HEX, but with each
record being larger than 256 bytes. This has been possible in the binary
representation (struct ihex_binrec) in the kernel since the beginning --
at least of the the current version of history. But we haven't been able
to represent that in the .HEX files which get converted to .fw files.

This adds a '-w' option to ihex2fw to make it interpret the first _two_
bytes of each line as the record length, instead of only one byte. And
adds makefile rules for %.H16->%.fw which use that.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agoihex: add ihex2fw tool for converting HEX files into firmware images
David Woodhouse [Sat, 31 May 2008 12:07:18 +0000 (15:07 +0300)]
ihex: add ihex2fw tool for converting HEX files into firmware images

Not the straight conversion to binary which objcopy can do for us, but
actually representing each record with its original {addr, length},
because some drivers need that information preserved.

Fix up 'firmware_install' to be able to build $(hostprogs-y) too.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agoihex: request_ihex_firmware() function to load and validate firmware
David Woodhouse [Sat, 31 May 2008 12:20:37 +0000 (15:20 +0300)]
ihex: request_ihex_firmware() function to load and validate firmware

Provide a helper to load the file and validate it in one call, to
simplify error handling in the drivers which are going to use it.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agoihex.h: binary representation of ihex records
David Woodhouse [Fri, 30 May 2008 10:57:27 +0000 (13:57 +0300)]
ihex.h: binary representation of ihex records

Some devices need their firmware as a set of {address, len, data...}
records in some specific order rather than a simple blob.

The normal way of doing this kind of thing is 'ihex', which is a text
format and not entirely suitable for use in the kernel.

This provides a binary representation which is very similar, but much
more compact -- and a helper routine to skip to the next record,
because the alignment constraints mean that everybody will screw it up
for themselves otherwise.

Also a helper function which can verify that a 'struct firmware'
contains a valid set of ihex records, and that following them won't run
off the end of the loaded data.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agofirmware: Add firmware installation to modules_install, add firmware_install
David Woodhouse [Thu, 29 May 2008 08:01:51 +0000 (11:01 +0300)]
firmware: Add firmware installation to modules_install, add firmware_install

For 'make modules_install', install any firmware required by
the modules which are being installed.

Also add a 'make firmware_install' target which doesn't depend on the
configuration, but installs _all_ available in-kernel-tree firmware into
$(INSTALL_FW_PATH), which defaults to /lib/firmware. This is intended
for distributors to make arch-independent (and config-independent)
packages containing firmware.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
17 years agofirmware: Add CONFIG_FIRMWARE_IN_KERNEL option.
David Woodhouse [Wed, 25 Jun 2008 12:56:07 +0000 (13:56 +0100)]
firmware: Add CONFIG_FIRMWARE_IN_KERNEL option.

This will control whether we build firmware into the kernel image for
_every_ driver which we convert to request_firmware(), to avoid a
proliferation of 'CONFIG_XXX_FIRMWARE' options for each one.

Default to 'y' for now, which is the wrong thing to do but people seem
to be insisting on it and refusing to even review patches until it's
done. And it does preserve the existing behaviour for built-in drivers.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years ago[ARM] 5169/1: Defconfig for the EZX machines
Stefan Schmidt [Thu, 10 Jul 2008 13:32:54 +0000 (14:32 +0100)]
[ARM] 5169/1: Defconfig for the EZX machines

This defconfig enables all currently available features. It also builds one
zImage which runs on all machines.

Signed-off-by: Antonio Ospite <ao2@openezx.org>
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years agofirmware: Add CONFIG_EXTRA_FIRMWARE option
David Woodhouse [Fri, 23 May 2008 12:58:12 +0000 (13:58 +0100)]
firmware: Add CONFIG_EXTRA_FIRMWARE option

This allows arbitrary firmware files to be included in the static kernel
where the firmware loader can find them without requiring userspace to
be alive.

(Updated and CONFIG_EXTRA_FIRMWARE_DIR added with lots of help from
Johannes Berg).

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
17 years agofirmware: allow firmware files to be built into kernel image
David Woodhouse [Fri, 23 May 2008 12:52:42 +0000 (13:52 +0100)]
firmware: allow firmware files to be built into kernel image

Some drivers have their own hacks to bypass the kernel's firmware loader
and build their firmware into the kernel; this renders those unnecessary.

Other drivers don't use the firmware loader at all, because they always
want the firmware to be available. This allows them to start using the
firmware loader.

A third set of drivers already use the firmware loader, but can't be
used without help from userspace, which sometimes requires an initrd.
This allows them to work in a static kernel.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agofirmware: make fw->data const
David Woodhouse [Fri, 23 May 2008 17:38:49 +0000 (18:38 +0100)]
firmware: make fw->data const

In preparation for supporting firmware files linked into the static
kernel, make fw->data const to ensure that users aren't modifying it (so
that we can pass a pointer to the original in-kernel copy, rather than
having to copy it).

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agoFix a const pointer usage warning in the Digigram miXart soundcard driver
David Howells [Tue, 8 Jul 2008 16:43:01 +0000 (17:43 +0100)]
Fix a const pointer usage warning in the Digigram miXart soundcard driver

Fix a const pointer usage warning in the Digigram miXart soundcard driver.  A
const pointer is being passed to copy_from_user() to load the firmware into.
This is okay in this case because the function has allocated the firmware
struct itself, but the const qualifier is part of the firmware struct - so the
patch casts the const away.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
17 years agoFix a const pointer usage warning in the Digigram pcxhr soundcard driver
David Howells [Tue, 8 Jul 2008 16:45:58 +0000 (17:45 +0100)]
Fix a const pointer usage warning in the Digigram pcxhr soundcard driver

Fix a const pointer usage warning in the Digigram pcxhr compatible soundcard
driver.  A const pointer is being passed to copy_from_user() to load the
firmware into.  This is okay in this case because the function has allocated
the firmware struct itself, but the const qualifier is part of the firmware
struct - so the patch casts the const away.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
17 years agoFix a const pointer error in the Conexant cx23418 MPEG encoder driver
David Howells [Tue, 8 Jul 2008 16:38:56 +0000 (17:38 +0100)]
Fix a const pointer error in the Conexant cx23418 MPEG encoder driver

Fix a const pointer to non-const pointer assignment error in the Conexant
cx23418 MPEG encoder driver.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
17 years agoFix a const assignment in moxa_load_fw()
David Howells [Tue, 8 Jul 2008 16:37:15 +0000 (17:37 +0100)]
Fix a const assignment in moxa_load_fw()

Fix an assignment of a const pointer to a non-const pointer in moxa_load_fw().

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
17 years agoFix a const pointer usage warning in the Digigram VX soundcard driver
David Howells [Tue, 8 Jul 2008 16:36:45 +0000 (17:36 +0100)]
Fix a const pointer usage warning in the Digigram VX soundcard driver

Fix a const pointer usage warning in the Digigram VX soundcard driver.  A
const pointer is being passed to copy_from_user() to load the firmware into.
This is okay in this case because the function has allocated the firmware
struct itself, but the const qualifier will be part of the firmware
struct - so the patch casts the const away.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
17 years agoisight: treat firmware data as const
gregkh@suse.de [Thu, 29 May 2008 17:17:38 +0000 (10:17 -0700)]
isight: treat firmware data as const

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agox86 microcode: firmware data is const
Greg Kroah-Hartman [Thu, 29 May 2008 17:05:08 +0000 (10:05 -0700)]
x86 microcode: firmware data is const

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agodell_rbu: firmware data is const
Greg Kroah-Hartman [Thu, 29 May 2008 17:05:08 +0000 (10:05 -0700)]
dell_rbu: firmware data is const

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agoymfpci: treat firmware data as const
David Woodhouse [Thu, 29 May 2008 11:40:00 +0000 (14:40 +0300)]
ymfpci: treat firmware data as const

Standardise both in-kernel and loaded firmware to be stored as
little-endian instead of host-endian.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agomaestro3: treat firmware data as const
David Woodhouse [Thu, 29 May 2008 08:58:27 +0000 (11:58 +0300)]
maestro3: treat firmware data as const

The maestro3 driver is byte-swapping its firmware to be host-endian in
advance, when it doesn't seem to be necessary -- we could just use
le16_to_cpu() as we load it.

Doing that means that we need to switch the in-tree firmware to be
little-endian too.

Take the least intrusive way of doing this, which is to switch the
existing snd_m3_convert_from_le() function to convert _to_ little-endian
instead, and use it on the in-tree firmware instead of the loaded
firmware. It's a bit suboptimal but doesn't matter much right now
because we're about to remove the special cases for the in-tree version
anyway.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agotuners: treat firmware data as const
David Woodhouse [Fri, 23 May 2008 23:13:34 +0000 (00:13 +0100)]
tuners: treat firmware data as const

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agogp8psk: treat firmware data as const
David Woodhouse [Fri, 23 May 2008 23:13:08 +0000 (00:13 +0100)]
gp8psk: treat firmware data as const

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agocxusb: treat firmware data as const
David Woodhouse [Fri, 23 May 2008 23:12:42 +0000 (00:12 +0100)]
cxusb: treat firmware data as const

...which means allocating our own copy when we want to modify it.

(stupid thinko fixed by mkrufky)

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
17 years agodvb frontends: treat firmware data as const
David Woodhouse [Fri, 23 May 2008 23:12:23 +0000 (00:12 +0100)]
dvb frontends: treat firmware data as const

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agottusb-dec: treat firmware data as const
David Woodhouse [Fri, 23 May 2008 23:12:00 +0000 (00:12 +0100)]
ttusb-dec: treat firmware data as const

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agobt8xx: treat firmware data as const
David Woodhouse [Fri, 23 May 2008 23:11:44 +0000 (00:11 +0100)]
bt8xx: treat firmware data as const

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agocxgb3: treat firmware data as const
David Woodhouse [Fri, 23 May 2008 23:10:55 +0000 (00:10 +0100)]
cxgb3: treat firmware data as const

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agoirda-usb: treat firmware data as const
David Woodhouse [Fri, 23 May 2008 23:10:26 +0000 (00:10 +0100)]
irda-usb: treat firmware data as const

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agoatmel: treat firmware data as const
David Woodhouse [Fri, 23 May 2008 23:09:29 +0000 (00:09 +0100)]
atmel: treat firmware data as const

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agop54: treat firmware data as const
David Woodhouse [Fri, 23 May 2008 23:08:55 +0000 (00:08 +0100)]
p54: treat firmware data as const

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agort2x00: treat firmware data as const
David Woodhouse [Fri, 23 May 2008 23:08:39 +0000 (00:08 +0100)]
rt2x00: treat firmware data as const

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agozd1201: treat firmware data as const
David Woodhouse [Fri, 23 May 2008 23:08:19 +0000 (00:08 +0100)]
zd1201: treat firmware data as const

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agoaic94xx: treat firmware data as const
David Woodhouse [Fri, 23 May 2008 23:05:45 +0000 (00:05 +0100)]
aic94xx: treat firmware data as const

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agocxacru: treat firmware data as const
David Woodhouse [Fri, 23 May 2008 23:05:28 +0000 (00:05 +0100)]
cxacru: treat firmware data as const

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agoueagle-atm: treat firmware data as const
David Woodhouse [Fri, 23 May 2008 23:05:10 +0000 (00:05 +0100)]
ueagle-atm: treat firmware data as const

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agovx: treat firmware data as const
David Woodhouse [Fri, 23 May 2008 23:02:49 +0000 (00:02 +0100)]
vx: treat firmware data as const

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agopcxhr: treat firmware data as const
David Woodhouse [Fri, 23 May 2008 23:02:28 +0000 (00:02 +0100)]
pcxhr: treat firmware data as const

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agoriptide: treat firmware data as const
David Woodhouse [Fri, 23 May 2008 23:02:03 +0000 (00:02 +0100)]
riptide: treat firmware data as const

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agovx222: treat firmware data as const
David Woodhouse [Fri, 23 May 2008 23:01:40 +0000 (00:01 +0100)]
vx222: treat firmware data as const

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agomyri10ge: treat firmware data as const
David Woodhouse [Fri, 23 May 2008 23:00:07 +0000 (00:00 +0100)]
myri10ge: treat firmware data as const

... which means allocating our own buffer for reading it back.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agocx25840: treat firmware data as const
David Woodhouse [Fri, 23 May 2008 22:58:24 +0000 (23:58 +0100)]
cx25840: treat firmware data as const

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Acked-by: Hans Verkuil <hverkuil@xs4all.nl>
Acked-by: Tyler Trafford <ttrafford@gmail.com>
Acked-by: Mike Isely <isely@pobox.com>
17 years agocyclades: treat firmware data as const
David Woodhouse [Fri, 23 May 2008 22:57:19 +0000 (23:57 +0100)]
cyclades: treat firmware data as const

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agobluetooth: treat firmware data as const
David Woodhouse [Fri, 23 May 2008 22:56:51 +0000 (23:56 +0100)]
bluetooth: treat firmware data as const

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agolibertas: treat firmware data as const
David Woodhouse [Fri, 23 May 2008 17:37:51 +0000 (18:37 +0100)]
libertas: treat firmware data as const

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
17 years agoALSA: HDA - HP dc7600 with pci sub IDs 0x103c/0x3011 belongs to hp-3013 model
Jaroslav Kysela [Thu, 10 Jul 2008 12:49:19 +0000 (14:49 +0200)]
ALSA: HDA - HP dc7600 with pci sub IDs 0x103c/0x3011 belongs to hp-3013 model

As reported and tested by an RedHat customer, HP dc7600 with pci sub IDs
0x103c/0x3011 works with the hp-3013 model and not with the hp only model.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
17 years ago[ARM] 5162/1: Common code for the Motorola EZX GSM phones
Stefan Schmidt [Wed, 9 Jul 2008 07:08:17 +0000 (08:08 +0100)]
[ARM] 5162/1: Common code for the Motorola EZX GSM phones

Common code for the different EZX GSM phones. Functions to control framebuffer,
backlight power, OHCI and UART init.

Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: Daniel Ribeiro <drwyrm@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] 5161/1: Maintainer entries for the Motorola EZX GSM mobile phones
Stefan Schmidt [Wed, 9 Jul 2008 07:08:50 +0000 (08:08 +0100)]
[ARM] 5161/1: Maintainer entries for the Motorola EZX GSM mobile phones

Maintainer entries for the Motorola EZX GSM mobile phones.

Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: Daniel Ribeiro <drwyrm@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] 5163/1: pxa27x_udc: Allow choosing the bits in UP2OCR_SEOS
Stefan Schmidt [Wed, 9 Jul 2008 07:07:29 +0000 (08:07 +0100)]
[ARM] 5163/1: pxa27x_udc: Allow choosing the bits in UP2OCR_SEOS

Allow choosing the bits in UP2OCR_SEOS.

Signed-off-by: Daniel Ribeiro <drwyrm@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] 5164/1: pxafb: Support for RGB666, RGBT666, RGB888 and RGBT888
Stefan Schmidt [Wed, 9 Jul 2008 07:06:32 +0000 (08:06 +0100)]
[ARM] 5164/1: pxafb: Support for RGB666, RGBT666, RGB888 and RGBT888

Add the .depth field to pxafb_mode_info and use it to set pixel data format
as 18(RGB666), 19(RGBT666), 24(RGB888) or 25(RGBT888)

Signed-off-by: Daniel Ribeiro <drwyrm@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] 5165/1: pxafb: More LCCR3 depth defines
Stefan Schmidt [Wed, 9 Jul 2008 07:05:42 +0000 (08:05 +0100)]
[ARM] 5165/1: pxafb: More LCCR3 depth defines

Add missing depth definitions to LCCR3.

Signed-off-by: Daniel Ribeiro <drwyrm@gmail.com>
Acked-by: Eric Miao <eric.miao@marvell.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
17 years agocrypto: talitos - Add support for sha256 and md5 variants
Lee Nipper [Thu, 10 Jul 2008 10:29:18 +0000 (18:29 +0800)]
crypto: talitos - Add support for sha256 and md5 variants

This patch adds support for:
authenc(hmac(sha256),cbc(aes)),
authenc(hmac(sha256),cbc(des3_ede)),
authenc(hmac(md5),cbc(aes)),
authenc(hmac(md5),cbc(des3_ede)).
Some constant usage was changed to use aes, des, and sha include files.

Signed-off-by: Lee Nipper <lee.nipper@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years agocrypto: hash - Move ahash functions into crypto/hash.h
Herbert Xu [Thu, 10 Jul 2008 08:01:22 +0000 (16:01 +0800)]
crypto: hash - Move ahash functions into crypto/hash.h

All new crypto interfaces should go into individual files as much
as possible in order to ensure that crypto.h does not collapse under
its own weight.

This patch moves the ahash code into crypto/hash.h and crypto/internal/hash.h
respectively.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years agocrypto: crc32c - Add ahash implementation
Herbert Xu [Tue, 8 Jul 2008 12:54:28 +0000 (20:54 +0800)]
crypto: crc32c - Add ahash implementation

This patch reimplements crc32c using the ahash interface.  This
allows one tfm to be used by an unlimited number of users provided
that they all use the same key (which all current crc32c users do).

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years agocrypto: hash - Added scatter list walking helper
Herbert Xu [Mon, 7 Jul 2008 14:19:53 +0000 (22:19 +0800)]
crypto: hash - Added scatter list walking helper

This patch adds the walking helpers for hash algorithms akin to
those of block ciphers.  This is a necessary step before we can
reimplement existing hash algorithms using the new ahash interface.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years agocrypto: prng - Deterministic CPRNG
Neil Horman [Mon, 7 Jul 2008 14:41:31 +0000 (22:41 +0800)]
crypto: prng - Deterministic CPRNG

This patch adds a cryptographic pseudo-random number generator
based on CTR(AES-128).  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: hash - Removed vestigial ahash fields
Herbert Xu [Mon, 7 Jul 2008 12:54:35 +0000 (20:54 +0800)]
crypto: hash - Removed vestigial ahash fields

The base field in ahash_tfm appears to have been cut-n-pasted from
ablkcipher.  It isn't needed here at all.  Similarly, the info field
in ahash_request also appears to have originated from its cipher
counter-part and is vestigial.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years agocrypto: hash - Fixed digest size check
Herbert Xu [Mon, 7 Jul 2008 12:23:56 +0000 (20:23 +0800)]
crypto: hash - Fixed digest size check

The digest size check on hash algorithms is incorrect.  It's
perfectly valid for hash algorithms to have a digest length
longer than their block size.  For example crc32c has a block
size of 1 and a digest size of 4.  Rather than having it lie
about its block size, this patch fixes the checks to do what
they really should which is to bound the digest size so that
code placing the digest on the stack continue to work.

HMAC however still needs to check this as it's only defined
for such algorithms.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years agocrypto: rmd - sparse annotations
Harvey Harrison [Fri, 4 Jul 2008 11:48:58 +0000 (19:48 +0800)]
crypto: rmd - sparse annotations

Similar to the rmd128.c annotations, significantly cuts down on the
noise.

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years agocrypto: rmd128 - sparse annotations
Harvey Harrison [Fri, 4 Jul 2008 11:45:57 +0000 (19:45 +0800)]
crypto: rmd128 - sparse annotations

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years agocrypto: camellia - Use kernel-provided bitops, unaligned access helpers
Harvey Harrison [Fri, 4 Jul 2008 11:42:24 +0000 (19:42 +0800)]
crypto: camellia - Use kernel-provided bitops, unaligned access helpers

Remove the private implementation of 32-bit rotation and unaligned
access with byteswapping.

As a bonus, fixes sparse warnings:
crypto/camellia.c:602:2: warning: cast to restricted __be32
crypto/camellia.c:603:2: warning: cast to restricted __be32
crypto/camellia.c:604:2: warning: cast to restricted __be32
crypto/camellia.c:605:2: warning: cast to restricted __be32
crypto/camellia.c:710:2: warning: cast to restricted __be32
crypto/camellia.c:711:2: warning: cast to restricted __be32
crypto/camellia.c:712:2: warning: cast to restricted __be32
crypto/camellia.c:713:2: warning: cast to restricted __be32
crypto/camellia.c:714:2: warning: cast to restricted __be32
crypto/camellia.c:715:2: warning: cast to restricted __be32
crypto/camellia.c:716:2: warning: cast to restricted __be32
crypto/camellia.c:717:2: warning: cast to restricted __be32

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years agocrypto: talitos - Use proper form for algorithm driver names
Herbert Xu [Thu, 3 Jul 2008 11:14:02 +0000 (19:14 +0800)]
crypto: talitos - Use proper form for algorithm driver names

The name authenc(hmac(sha1-talitos),cbc(aes-talitos)) is potentially
ambiguous since it could also mean using the generic authenc template
on hmac(sha1-talitos) and cbc(aes-talitos).  In general, parentheses
should be reserved for templates that spawn algorithms.

This patches changes it to the form authenc-hmac-sha1-cbc-aes-talitos.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years agocrypto: talitos - Add support for 3des
Lee Nipper [Thu, 3 Jul 2008 11:08:46 +0000 (19:08 +0800)]
crypto: talitos - Add support for 3des

This patch adds support for authenc(hmac(sha1),cbc(des3_ede))
to the talitos crypto driver for the Freescale Security Engine.
Some adjustments were made to the scatterlist to link table conversion
to make 3des work for ping -s 1439..1446.

Signed-off-by: Lee Nipper <lee.nipper@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years agocrypto: padlock - Make module loading quieter when hardware isn't available
Jeremy Katz [Thu, 3 Jul 2008 11:03:31 +0000 (19:03 +0800)]
crypto: padlock - Make module loading quieter when hardware isn't available

When loading aes or sha256 via the module aliases, the padlock modules
also try to get loaded.  Make the error message for them not being
present only be a NOTICE rather than an ERROR so that use of 'quiet'
will suppress the messages

Signed-off-by: Jeremy Katz <katzj@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years agocrypto: tcrpyt - Remove unnecessary kmap/kunmap calls
Herbert Xu [Thu, 3 Jul 2008 06:57:30 +0000 (14:57 +0800)]
crypto: tcrpyt - Remove unnecessary kmap/kunmap calls

Noticed by Neil Horman: we are doing unnecessary kmap/kunmap calls
on kmalloced memory.  This patch removes them.  For the purposes of
testing SG construction, the underlying crypto code already does plenty
of kmap/kunmap calls anyway.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years agocrypto: ixp4xx - Hardware crypto support for IXP4xx CPUs
Christian Hohnstaedt [Wed, 25 Jun 2008 06:38:47 +0000 (14:38 +0800)]
crypto: ixp4xx - Hardware crypto support for IXP4xx CPUs

Add support for the hardware crypto engine provided by the NPE C
of the Intel IXP4xx networking processor series.

Supported ciphers: des, des3, aes
and a combination of them with md5 and sha1 hmac

Signed-off-by: Christian Hohnstaedt <chohnstaedt@innominate.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years agocrypto: talitos - Freescale integrated security engine (SEC) driver
Kim Phillips [Mon, 23 Jun 2008 11:50:15 +0000 (19:50 +0800)]
crypto: talitos - Freescale integrated security engine (SEC) driver

Add support for the SEC available on a wide range of PowerQUICC devices,
e.g. MPC8349E, MPC8548E.

This initial version supports authenc(hmac(sha1),cbc(aes)) for use with IPsec.

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years ago[CRYPTO] tcrypt: Add self test for des3_ebe cipher operating in cbc mode
Neil Horman [Tue, 3 Jun 2008 10:00:16 +0000 (20:00 +1000)]
[CRYPTO] tcrypt: Add self test for des3_ebe cipher operating in cbc mode

Patch to add checking  of DES3 test vectors using CBC mode.  FIPS-140-2
compliance mandates that any supported mode of operation must include a self
test.  This satisfies that requirement for cbc(des3_ede).  The included test
vector was generated by me using openssl.  Key/IV was generated with the
following command:

openssl enc -des_ede_cbc -P

input and output values were generated by repeating the string "Too many
secrets" a few times over, truncating it to 128 bytes, and encrypting it with
openssl using the aformentioned key.  Tested successfully by myself

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Acked-by: Adrian-Ken Rueegsegger <rueegsegger@swiss-it.ch>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years ago[CRYPTO] rmd: Use pointer form of endian swapping operations
Herbert Xu [Mon, 2 Jun 2008 11:30:38 +0000 (21:30 +1000)]
[CRYPTO] rmd: Use pointer form of endian swapping operations

This patch converts the relevant code in the rmd implementations to
use the pointer form of the endian swapping operations.  This allows
certain architectures to generate more optimised code.  For example,
on sparc64 this more than halves the CPU cycles on a typical hashing
operation.

Based on a patch by David Miller.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years ago[CRYPTO] hifn: Simplify code using ARRAY_SIZE() macro
Robert P. J. Day [Mon, 26 May 2008 11:21:07 +0000 (21:21 +1000)]
[CRYPTO] hifn: Simplify code using ARRAY_SIZE() macro

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years ago[CRYPTO] rmd320: Fix endian issues
Adrian-Ken Rueegsegger [Mon, 26 May 2008 10:54:34 +0000 (20:54 +1000)]
[CRYPTO] rmd320: Fix endian issues

This patch fixes endian issues making rmd320 work
properly on big-endian machines.

Signed-off-by: Adrian-Ken Rueegsegger <rueegsegger@swiss-it.ch>
Acked-by: Sebastian Siewior <sebastian@breakpoint.cc>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years ago[CRYPTO] rmd256: Fix endian issues
Adrian-Ken Rueegsegger [Mon, 26 May 2008 10:33:44 +0000 (20:33 +1000)]
[CRYPTO] rmd256: Fix endian issues

This patch fixes endian issues making rmd256 work
properly on big-endian machines.

Signed-off-by: Adrian-Ken Rueegsegger <rueegsegger@swiss-it.ch>
Acked-by: Sebastian Siewior <sebastian@breakpoint.cc>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years ago[CRYPTO] rmd160: Fix endian issues
Adrian-Ken Rueegsegger [Mon, 26 May 2008 10:32:52 +0000 (20:32 +1000)]
[CRYPTO] rmd160: Fix endian issues

This patch fixes endian issues making rmd160 work
properly on big-endian machines.

Signed-off-by: Adrian-Ken Rueegsegger <rueegsegger@swiss-it.ch>
Acked-by: Sebastian Siewior <sebastian@breakpoint.cc>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years ago[CRYPTO] rmd128: Fix endian problems
Adrian-Ken Rueegsegger [Tue, 20 May 2008 03:41:48 +0000 (11:41 +0800)]
[CRYPTO] rmd128: Fix endian problems

This patch is based on Sebastian Siewior's patch and
fixes endian issues making rmd128 work properly on
big-endian machines.

Signed-off-by: Adrian-Ken Rueegsegger <rueegsegger@swiss-it.ch>
Acked-by: Sebastian Siewior <sebastian@breakpoint.cc>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years ago[CRYPTO] hifn: Remove duplicated include
Huang Weiyi [Thu, 15 May 2008 06:29:46 +0000 (14:29 +0800)]
[CRYPTO] hifn: Remove duplicated include

Removed duplicated include file <linux/interrupt.h>.

Signed-off-by: Huang Weiyi <weiyi.huang@gmail.com>
Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years ago[CRYPTO] tcrypt: Use asynchronous hash interface
Loc Ho [Wed, 14 May 2008 13:24:51 +0000 (21:24 +0800)]
[CRYPTO] tcrypt: Use asynchronous hash interface

This patch changes tcrypt to use the new asynchronous hash interface
for testing hash algorithm correctness.  The speed tests will continue
to use the existing interface for now.

Signed-off-by: Loc Ho <lho@amcc.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years ago[CRYPTO] cryptd: Add asynchronous hash support
Loc Ho [Wed, 14 May 2008 13:23:00 +0000 (21:23 +0800)]
[CRYPTO] cryptd: Add asynchronous hash support

This patch adds asynchronous hash support to crypto daemon.

Signed-off-by: Loc Ho <lho@amcc.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
17 years ago[CRYPTO] hash: Add asynchronous hash support
Loc Ho [Wed, 14 May 2008 12:41:47 +0000 (20:41 +0800)]
[CRYPTO] hash: Add asynchronous hash support

This patch adds asynchronous hash and digest support.

Signed-off-by: Loc Ho <lho@amcc.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>