24 May, 2013
1 commit
-
Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.Signed-off-by: Sachin Kamat
Cc: Sebastian Andrzej Siewior
Signed-off-by: Herbert Xu
04 Jan, 2013
1 commit
-
CONFIG_HOTPLUG is going away as an option. As a result, the __dev*
markings need to be removed.This change removes the use of __devinit, __devexit_p, __devinitdata,
and __devexit from these drivers.Based on patches originally written by Bill Pemberton, but redone by me
in order to handle some of the coding style issues better, by hand.Cc: Bill Pemberton
Cc: Herbert Xu
Cc: "David S. Miller"
Cc: Kent Yoder
Cc: Jamie Iles
Cc: Kim Phillips
Cc: Shengzhou Liu
Cc: Alex Porosanu
Signed-off-by: Greg Kroah-Hartman
22 Sep, 2012
1 commit
-
Based on work by Michael Walle and Jason Cooper.
Added support for getting the interrupt number and address of SRAM
from DT.Signed-off-by: Andrew Lunn
Tested-by: Sebastian Hesselbarth
Signed-off-by: Jason CooperConflicts:
arch/arm/mach-kirkwood/board-dt.c
27 Jul, 2012
1 commit
-
Pull ARM SoC fixes from Olof Johansson:
"A mixed bag of fixes, some for merge window fallout (tegra, MXS), and
a short series of fixes for marvell platforms that didn't make it in
before 3.5."* tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
ARM: mxs: fix compile error caused by prom_update_property change
ARM: dt: tegra trimslice: enable USB2 port
ARM: dt: tegra trimslice: add vbus-gpio property
ARM: vt8500: Add maintainer for VT8500 architecture
ARM: Kirkwood: Replace mrvl with marvell
ARM: Orion: fix driver probe error handling with respect to clk
ARM: Dove: Fixup ge00 initialisation
ARM: Kirkwood: Fix PHY disable clk problems
ARM: Kirkwood: Ensure runit clock always ticks.
ARM: versatile: Don't use platform clock for Integrator & VE
ARM: tegra: harmony: add regulator supply name and its input supply
25 Jul, 2012
1 commit
-
The clk patches added code to get and enable clocks in the
respective driver probe functions. If the probe function failed
for some reason after enabling the clock, the clock was not
disabled again in many cases.Signed-off-by: Simon Baatz
Signed-off-by: Andrew Lumm
12 Jun, 2012
3 commits
-
Since mv_hash_final_fallback() uses ctx->state, read out the digest
state register before calling it.Signed-off-by: Phil Sutter
Signed-off-by: Herbert Xu -
Signed-off-by: Phil Sutter
Signed-off-by: Herbert Xu -
The timer triggers when 500ms have gone by after triggering the engine
and no completion interrupt was received. The callback then tries to
sanitise things as well as possible.Signed-off-by: Phil Sutter
Signed-off-by: Herbert Xu
09 May, 2012
1 commit
-
Some orion platforms support gating of the clock. If the clock exists
enable/disbale it as appropriate.Signed-off-by: Andrew Lunn
Tested-by: Jamie Lentin
Signed-off-by: Mike Turquette
22 Mar, 2012
1 commit
-
Pull crypto update from Herbert Xu:
"* sha512 bug fixes (already in your tree).
* SHA224/SHA384 AEAD support in caam.
* X86-64 optimised version of Camellia.
* Tegra AES support.
* Bulk algorithm registration interface to make driver registration easier.
* padata race fixes.
* Misc fixes."* git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: (31 commits)
padata: Fix race on sequence number wrap
padata: Fix race in the serialization path
crypto: camellia - add assembler implementation for x86_64
crypto: camellia - rename camellia.c to camellia_generic.c
crypto: camellia - fix checkpatch warnings
crypto: camellia - rename camellia module to camellia_generic
crypto: tcrypt - add more camellia tests
crypto: testmgr - add more camellia test vectors
crypto: camellia - simplify key setup and CAMELLIA_ROUNDSM macro
crypto: twofish-x86_64/i586 - set alignmask to zero
crypto: blowfish-x86_64 - set alignmask to zero
crypto: serpent-sse2 - combine ablk_*_init functions
crypto: blowfish-x86_64 - use crypto_[un]register_algs
crypto: twofish-x86_64-3way - use crypto_[un]register_algs
crypto: serpent-sse2 - use crypto_[un]register_algs
crypto: serpent-sse2 - remove dead code from serpent_sse2_glue.c::serpent_sse2_init()
crypto: twofish-x86 - Remove dead code from twofish_glue_3way.c::init()
crypto: In crypto_add_alg(), 'exact' wants to be initialized to 0
crypto: caam - fix gcc 4.6 warning
crypto: Add bulk algorithm registration interface
...
04 Mar, 2012
1 commit
-
Pull from Herbert Xu:
"This push fixes a bug in mv_cesa that causes all hash operations
that supply data on a final operation to fail."* git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
crypto: mv_cesa - fix final callback not ignoring input data
28 Feb, 2012
1 commit
-
Broken by commit 6ef84509f3d439ed2d43ea40080643efec37f54f for users
passing a request with non-zero 'nbytes' field, like e.g. testmgr.Cc: # 3.0+
Signed-off-by: Phil Sutter
Signed-off-by: Herbert Xu
13 Jan, 2012
1 commit
-
The added CRYPTO_ALG_KERN_DRIVER_ONLY indicates whether a cipher
is only available via a kernel driver. If the cipher implementation
might be available by using an instruction set or by porting the
kernel code, then it must not be set.Signed-off-by: Nikos Mavrogiannopoulos
Signed-off-by: Herbert Xu
11 Jan, 2012
1 commit
-
* git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: (54 commits)
crypto: gf128mul - remove leftover "(EXPERIMENTAL)" in Kconfig
crypto: serpent-sse2 - remove unneeded LRW/XTS #ifdefs
crypto: serpent-sse2 - select LRW and XTS
crypto: twofish-x86_64-3way - remove unneeded LRW/XTS #ifdefs
crypto: twofish-x86_64-3way - select LRW and XTS
crypto: xts - remove dependency on EXPERIMENTAL
crypto: lrw - remove dependency on EXPERIMENTAL
crypto: picoxcell - fix boolean and / or confusion
crypto: caam - remove DECO access initialization code
crypto: caam - fix polarity of "propagate error" logic
crypto: caam - more desc.h cleanups
crypto: caam - desc.h - convert spaces to tabs
crypto: talitos - convert talitos_error to struct device
crypto: talitos - remove NO_IRQ references
crypto: talitos - fix bad kfree
crypto: convert drivers/crypto/* to use module_platform_driver()
char: hw_random: convert drivers/char/hw_random/* to use module_platform_driver()
crypto: serpent-sse2 - should select CRYPTO_CRYPTD
crypto: serpent - rename serpent.c to serpent_generic.c
crypto: serpent - cleanup checkpatch errors and warnings
...
30 Nov, 2011
1 commit
-
This patch converts the drivers in drivers/crypto/* to use the
module_platform_driver() macro which makes the code smaller and a bit
simpler.Cc: James Hsiao
Cc: Sebastian Andrzej Siewior
Cc: Kim Phillips
Cc: "David S. Miller"
Signed-off-by: Axel Lin
Acked-by: Vladimir Zapolskiy
Acked-by: Jamie Iles
Signed-off-by: Herbert Xu
26 Nov, 2011
1 commit
-
* git://github.com/herbertx/crypto:
crypto: mv_cesa - fix hashing of chunks > 1920 bytes
21 Nov, 2011
1 commit
-
This was broken by commit 7759995c75ae0cbd4c861582908449f6b6208e7a (yes,
myself). The basic problem here is since the digest state is only saved
after the last chunk, the state array is only valid when handling the
first chunk of the next buffer. Broken since linux-3.0.Signed-off-by: Phil Sutter
Cc: # 3.1.x
Signed-off-by: Herbert Xu
01 Nov, 2011
1 commit
-
Part of the include cleanups means that the implicit
inclusion of module.h via device.h is going away. So
fix things up in advance.Signed-off-by: Paul Gortmaker
11 May, 2011
10 commits
-
This also makes the dummy scatterlist in mv_hash_final() needless, so
drop it.XXX: should this routine be made pulicly available? There are probably
other users with their own implementations.Signed-off-by: Phil Sutter
Signed-off-by: Herbert Xu -
Signed-off-by: Phil Sutter
Signed-off-by: Herbert Xu -
On one hand, the digest state registers need to be set only when
actually using the crypto engine. On the other hand, there is a check
for ctx->first_hash in mv_process_hash_current() already, so use that.Signed-off-by: Phil Sutter
Signed-off-by: Herbert Xu -
Signed-off-by: Phil Sutter
Signed-off-by: Herbert Xu -
The main goal was to have it not do anything when a zero len parameter
was being passed (which could lead to a null pointer dereference, as in
this case p->src_sg is null, either). Using the min() macro, the lower
part of the loop gets simpler, too.Signed-off-by: Phil Sutter
Signed-off-by: Herbert Xu -
Signed-off-by: Phil Sutter
Signed-off-by: Herbert Xu -
Signed-off-by: Phil Sutter
Signed-off-by: Herbert Xu -
The code in mv_hash_final is actually a superset of mv_hash_finup's
body. Since the driver works fine without, drop it.Signed-off-by: Phil Sutter
Signed-off-by: Herbert Xu -
Signed-off-by: Phil Sutter
Signed-off-by: Herbert Xu -
Signed-off-by: Phil Sutter
Signed-off-by: Herbert Xu
04 Jan, 2011
1 commit
-
Fix a PTR_ERR() return of the wrong pointer
Signed-off-by: Roel Kluin
Signed-off-by: Herbert Xu
26 May, 2010
1 commit
-
The error handling in mv_probe() was a bit messed up. There were some
gotos to the wrong labels so it ended up releasing stuff that that hadn't
been aquired and not releasing stuff that was meant to be released. I
shuffled it around a bit to fix it and make it clearer.Signed-off-by: Dan Carpenter
Signed-off-by: Herbert Xu
14 May, 2010
1 commit
-
Use the resource_size function instead of manually calculating the
resource size. This reduces the chance of introducing off-by-one errors.Signed-off-by: Tobias Klauser
Signed-off-by: Herbert Xu
03 May, 2010
1 commit
13 Apr, 2010
8 commits
-
Add sha1 and hmac(sha1) async hash drivers
Signed-off-by: Uri Simchoni
Signed-off-by: Herbert Xu -
Support processing of data from previous requests (as in hashing
update/final requests).Signed-off-by: Uri Simchoni
Signed-off-by: Herbert Xu -
Make the copy-back of data optional (not done in hashing requests)
Signed-off-by: Uri Simchoni
Signed-off-by: Herbert Xu -
Execute some code via function pointers rathr than direct calls
(to allow customization in the hashing request)Signed-off-by: Uri Simchoni
Signed-off-by: Herbert Xu -
Rename a variable to a more suitable name
Signed-off-by: Uri Simchoni
Signed-off-by: Herbert Xu -
Enqueue generic async requests rather than ablkcipher requests
in the driver's queueSigned-off-by: Uri Simchoni
Signed-off-by: Herbert Xu -
Fix for situations where the source scatterlist spans more data than the
request nbytesSigned-off-by: Uri Simchoni
Signed-off-by: Herbert Xu -
…han the source sglist
Bugfix for situations where the destination scatterlist has a different
buffer structure than the source scatterlist (e.g. source has one 2K
buffer and dest has 2 1K buffers)Signed-off-by: Uri Simchoni <uri@jdland.co.il>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>