Browse Source

crypto: omap-sham - force word alignment on the xmit-buf also

This was previously missed from the code, causing SDMA to hang in
some cases where the buffer ended up being not aligned.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Tero Kristo 8 years ago
parent
commit
c28e8f2164
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/crypto/omap-sham.c

+ 1 - 1
drivers/crypto/omap-sham.c

@@ -226,7 +226,7 @@ struct omap_sham_dev {
 	struct dma_chan		*dma_lch;
 	struct dma_chan		*dma_lch;
 	struct tasklet_struct	done_task;
 	struct tasklet_struct	done_task;
 	u8			polling_mode;
 	u8			polling_mode;
-	u8			xmit_buf[BUFLEN];
+	u8			xmit_buf[BUFLEN] OMAP_ALIGNED;
 
 
 	unsigned long		flags;
 	unsigned long		flags;
 	struct crypto_queue	queue;
 	struct crypto_queue	queue;