Skip to contentSkip to conversation

crypto: mxs-dcp is an stmp device

PATCH In review Arnd Bergmann 3 participants 3 messages Oct 12, 2015 – Oct 14, 2015 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto: mxs-dcp is an stmp device

The mxs-dcp driver relies on the stmp_reset_block() helper function, which is provided by CONFIG_STMP_DEVICE. This symbol is always set on MXS, but the driver can now also be built for MXC (i.MX6), which results in a built error if no other driver selects STMP_DEVICE:

drivers/built-in.o: In function `mxs_dcp_probe':
vf610-ocotp.c:(.text+0x3df302): undefined reference to `stmp_reset_block'

This adds the 'select', like all other stmp drivers have it.

Fixes a2712e6c75f ("crypto: mxs-dcp - Allow MXS_DCP to be used on MX6SL")
drivers/crypto/Kconfig +1 -0
index ab7e3b668890..2569e043317e 100644
@@ -430,6 +430,7 @@ endif
 config CRYPTO_DEV_MXS_DCP
 	tristate "Support for Freescale MXS DCP"
 	depends on (ARCH_MXS || ARCH_MXC)
+	select STMP_DEVICE
 	select CRYPTO_CBC
 	select CRYPTO_ECB
 	select CRYPTO_AES
Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · Arnd Bergmann

The mxs-dcp driver relies on the stmp_reset_block() helper function, which is provided by CONFIG_STMP_DEVICE. This symbol is always set on MXS, but the driver can now also be built for MXC (i.MX6)

That is correct.

Quoted 1 line

, which results in a built error if no other driver selects STMP_DEVICE:

Ouch.

Quoted 7 lines

drivers/built-in.o: In function `mxs_dcp_probe':
vf610-ocotp.c:(.text+0x3df302): undefined reference to `stmp_reset_block'

This adds the 'select', like all other stmp drivers have it.

Fixes a2712e6c75f ("crypto: mxs-dcp - Allow MXS_DCP to be used on MX6SL")

drivers/crypto/Kconfig endif · line 436

Quoted 12 lines
drivers/crypto/Kconfig +1 -0
index ab7e3b668890..2569e043317e 100644
@@ -430,6 +430,7 @@ endif
 config CRYPTO_DEV_MXS_DCP
 	tristate "Support for Freescale MXS DCP"
 	depends on (ARCH_MXS || ARCH_MXC)
+	select STMP_DEVICE
 	select CRYPTO_CBC
 	select CRYPTO_ECB
 	select CRYPTO_AES

Best regards,
Marek Vasut

maintainer
#2 lore raw
In reply to Arnd Bergmann
Quoted 5 lines · Arnd Bergmann

The mxs-dcp driver relies on the stmp_reset_block() helper function, which is provided by CONFIG_STMP_DEVICE. This symbol is always set on MXS, but the driver can now also be built for MXC (i.MX6), which results in a built error if no other driver selects STMP_DEVICE:

Quoted 7 lines

drivers/built-in.o: In function `mxs_dcp_probe':
vf610-ocotp.c:(.text+0x3df302): undefined reference to `stmp_reset_block'

This adds the 'select', like all other stmp drivers have it.

Fixes a2712e6c75f ("crypto: mxs-dcp - Allow MXS_DCP to be used on MX6SL")

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt