* mxs-dcp: Failed to register sha1 hash @ 2015-11-26 15:14 Fabio Estevam 2015-11-26 15:25 ` Stephan Mueller 0 siblings, 1 reply; 4+ messages in thread From: Fabio Estevam @ 2015-11-26 15:14 UTC (permalink / raw) To: Marek Vašut, Herbert Xu; +Cc: linux-crypto Hi, On kernel 4.1.13 and also on 4.4.0-rc2-next-20151126 I see the following error on mx28: [ 2.245453] mxs-dcp 80028000.dcp: Failed to register sha1 hash! [ 2.253928] mxs-dcp: probe of 80028000.dcp failed with error -22 Does anyone have any idea how to fix this? Thanks, Fabio Estevam ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mxs-dcp: Failed to register sha1 hash 2015-11-26 15:14 mxs-dcp: Failed to register sha1 hash Fabio Estevam @ 2015-11-26 15:25 ` Stephan Mueller 2015-11-26 15:38 ` Fabio Estevam 0 siblings, 1 reply; 4+ messages in thread From: Stephan Mueller @ 2015-11-26 15:25 UTC (permalink / raw) To: Fabio Estevam; +Cc: Marek Vašut, Herbert Xu, linux-crypto Am Donnerstag, 26. November 2015, 13:14:12 schrieb Fabio Estevam: Hi Fabio, > Hi, > > On kernel 4.1.13 and also on 4.4.0-rc2-next-20151126 I see the > following error on mx28: > > [ 2.245453] mxs-dcp 80028000.dcp: Failed to register sha1 hash! > [ 2.253928] mxs-dcp: probe of 80028000.dcp failed with error -22 > > Does anyone have any idea how to fix this? Briefly looking into drivers/crypto/mxs-dcp.c, it is an ahash and does not contain halg.statesize in the algo definitions. Thus it looks very much like the same issue that I see with ghash. -- Ciao Stephan ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mxs-dcp: Failed to register sha1 hash 2015-11-26 15:25 ` Stephan Mueller @ 2015-11-26 15:38 ` Fabio Estevam 2015-11-26 15:39 ` Marek Vasut 0 siblings, 1 reply; 4+ messages in thread From: Fabio Estevam @ 2015-11-26 15:38 UTC (permalink / raw) To: Stephan Mueller; +Cc: Marek Vašut, Herbert Xu, linux-crypto Hi Stephan, On Thu, Nov 26, 2015 at 1:25 PM, Stephan Mueller <smueller@chronox.de> wrote: > Briefly looking into drivers/crypto/mxs-dcp.c, it is an ahash and does not > contain halg.statesize in the algo definitions. Thus it looks very much like > the same issue that I see with ghash. Thanks for your suggestion! You are right: this makes the error goes away: --- a/drivers/crypto/mxs-dcp.c +++ b/drivers/crypto/mxs-dcp.c @@ -836,6 +836,7 @@ static struct ahash_alg dcp_sha1_alg = { .digest = dcp_sha_digest, .halg = { .digestsize = SHA1_DIGEST_SIZE, + .statesize = sizeof(struct sha1_state), .base = { .cra_name = "sha1", .cra_driver_name = "sha1-dcp", @@ -860,6 +861,7 @@ static struct ahash_alg dcp_sha256_alg = { .digest = dcp_sha_digest, .halg = { .digestsize = SHA256_DIGEST_SIZE, + .statesize = sizeof(struct sha256_state), .base = { .cra_name = "sha256", .cra_driver_name = "sha256-dcp", Will submit it as a formal patch. Thanks! ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mxs-dcp: Failed to register sha1 hash 2015-11-26 15:38 ` Fabio Estevam @ 2015-11-26 15:39 ` Marek Vasut 0 siblings, 0 replies; 4+ messages in thread From: Marek Vasut @ 2015-11-26 15:39 UTC (permalink / raw) To: Fabio Estevam; +Cc: Stephan Mueller, Herbert Xu, linux-crypto On Thursday, November 26, 2015 at 04:38:01 PM, Fabio Estevam wrote: > Hi Stephan, > > On Thu, Nov 26, 2015 at 1:25 PM, Stephan Mueller <smueller@chronox.de> wrote: > > Briefly looking into drivers/crypto/mxs-dcp.c, it is an ahash and does > > not contain halg.statesize in the algo definitions. Thus it looks very > > much like the same issue that I see with ghash. > > Thanks for your suggestion! > > You are right: this makes the error goes away: > > --- a/drivers/crypto/mxs-dcp.c > +++ b/drivers/crypto/mxs-dcp.c > @@ -836,6 +836,7 @@ static struct ahash_alg dcp_sha1_alg = { > .digest = dcp_sha_digest, > .halg = { > .digestsize = SHA1_DIGEST_SIZE, > + .statesize = sizeof(struct sha1_state), > .base = { > .cra_name = "sha1", > .cra_driver_name = "sha1-dcp", > @@ -860,6 +861,7 @@ static struct ahash_alg dcp_sha256_alg = { > .digest = dcp_sha_digest, > .halg = { > .digestsize = SHA256_DIGEST_SIZE, > + .statesize = sizeof(struct sha256_state), > .base = { > .cra_name = "sha256", > .cra_driver_name = "sha256-dcp", > > > Will submit it as a formal patch. Excellent, thank you! Best regards, Marek Vasut ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-11-26 15:39 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-11-26 15:14 mxs-dcp: Failed to register sha1 hash Fabio Estevam 2015-11-26 15:25 ` Stephan Mueller 2015-11-26 15:38 ` Fabio Estevam 2015-11-26 15:39 ` Marek Vasut
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox