ts on SAMA5D3EK.
Leilei Zhao (9):
crypto: atmel-aes: add new version
crypto: atmel-sha: add new version
crypto: atmel-sha: fix sg list management
crypto: atmel-sha: initialize spinlock in probe
crypto: atmel-sha: correct the max burst size
crypto: atmel-tdes: initialize spinlock in probe
c
Add new version of atmel-aes available with SAMA5D4 devices.
Signed-off-by: Leilei Zhao
Signed-off-by: Ludovic Desroches
Acked-by: Nicolas Ferre
---
drivers/crypto/atmel-aes.c |5 +
1 file changed, 5 insertions(+)
diff --git a/drivers/crypto/atmel-aes.c b/drivers/crypto/atmel-aes.c
Add new version of atmel-sha available with SAMA5D4 devices.
Signed-off-by: Leilei Zhao
Signed-off-by: Ludovic Desroches
Acked-by: Nicolas Ferre
---
drivers/crypto/atmel-sha.c |6 ++
1 file changed, 6 insertions(+)
diff --git a/drivers/crypto/atmel-sha.c b/drivers/crypto/atmel-sha.c
performed when the buffer is
full or when there is no more data. So it removes the transfer whose size
is equal the update size after the full buffer transmission.
Signed-off-by: Ludovic Desroches
Signed-off-by: Leilei Zhao
Acked-by: Nicolas Ferre
---
drivers/crypto/atmel-sha.c |2 +-
1 file
Having a zero length sg doesn't mean it is the end of the sg list. This
case happens when calculating HMAC of IPSec packet.
Signed-off-by: Leilei Zhao
Signed-off-by: Ludovic Desroches
Acked-by: Nicolas Ferre
---
drivers/crypto/atmel-sha.c | 16 ++--
1 file changed, 14 inser
Kernel will report "BUG: spinlock lockup suspected on CPU#0"
when CONFIG_DEBUG_SPINLOCK is enabled in kernel config and the
spinlock is used at the first time. It's caused by uninitialized
spinlock, so just initialize it in probe.
Signed-off-by: Leilei Zhao
Acked-by: Nicolas Ferr
Kernel will report "BUG: spinlock lockup suspected on CPU#0"
when CONFIG_DEBUG_SPINLOCK is enabled in kernel config and the
spinlock is used at the first time. It's caused by uninitialized
spinlock, so just initialize it in probe.
Signed-off-by: Leilei Zhao
Acked-by: Nicolas Ferr
Kernel will report "BUG: spinlock lockup suspected on CPU#0"
when CONFIG_DEBUG_SPINLOCK is enabled in kernel config and the
spinlock is used at the first time. It's caused by uninitialized
spinlock, so just initialize it in probe.
Signed-off-by: Leilei Zhao
Acked-by: Nicolas Ferr
the program will wait forever.
So here change the max burst size of all the cases to 16
in order to make SHA384 and SHA512 work and keep consistent
with DMA driver and datasheet.
Signed-off-by: Leilei Zhao
Acked-by: Nicolas Ferre
---
drivers/crypto/atmel-sha.c | 10 ++
1 file changed
test with OpenSSH.
Signed-off-by: Leilei Zhao
Acked-by: Nicolas Ferre
---
drivers/crypto/atmel-aes.c | 16
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/drivers/crypto/atmel-aes.c b/drivers/crypto/atmel-aes.c
index f0532ab..9bd3437 100644
--- a/drivers/crypto
The output buffer is used for CPU access, so
the API should be dma_sync_single_for_cpu which
makes the cache line invalid in order to reload
the value in memory.
Signed-off-by: Leilei Zhao
Acked-by: Nicolas Ferre
---
drivers/crypto/atmel-aes.c |2 +-
1 file changed, 1 insertion(+), 1
.
Signed-off-by: Leilei Zhao
Acked-by: Nicolas Ferre
---
drivers/tty/serial/atmel_serial.c | 13 +++--
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/drivers/tty/serial/atmel_serial.c
b/drivers/tty/serial/atmel_serial.c
index d58fe47..d536d31 100644
--- a/drivers/tty/serial
Hi:
These two patches correct the block size in atmel-aes driver while processing
cfb8 and cfb64 mode of aes.
Thanks
Leilei Zhao (2):
crypto: atmel-aes: correct block size of cfb8 mode
crypto: atmel-aes: check alignment of cfb64 mode
drivers/crypto/atmel-aes.c |8 +++-
1 file
The block size of aes cfb8 mode shoule be 8 bit.
Signed-off-by: Leilei Zhao
---
drivers/crypto/atmel-aes.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/crypto/atmel-aes.c b/drivers/crypto/atmel-aes.c
index d7c9e31..12628a7 100644
--- a/drivers/crypto/atmel
The length shoule be 64 bit alignment and the block size shoule be 64 bit in
aes cfb64 mode.
Signed-off-by: Leilei Zhao
---
drivers/crypto/atmel-aes.c |6 ++
1 file changed, 6 insertions(+)
diff --git a/drivers/crypto/atmel-aes.c b/drivers/crypto/atmel-aes.c
index 12628a7..a083474
nel is not available.
- The serial port can lead to kernel crash when data is sending and receiving
and the program is killed.
The patches were made from branch tty-next of gregkh/tty.git repository, and
tested on a SAMA5D36 VB boards with 5 serial ports enabled.
Leilei Zhao (5):
tty/se
The buffer size set in DMA is inconsistent with its allocation.
So keep them consistent here. The structure atmel_uart_char is
used in PIO mode with its meaning. But here in DMA, all of the
buffer is treated as general char.
Signed-off-by: Leilei Zhao
Acked-by: Nicolas Ferre
---
drivers/tty
case, tasklet_kill
can only clear the current scheduling out, so tasklet should
be disabled to prevent being executed in later scheduling.
Otherwise, the tasklet executed after serial port was shutdown
can lead to kernel crash.
Signed-off-by: Leilei Zhao
Acked-by: Nicolas Ferre
---
drivers/tty/s
We only use buf of ring In DMA rx function while using buf of xmit
in DMA tx function. So here we need definitively to check the buf
of ring which is corresponding to DMA rx function.
Signed-off-by: Leilei Zhao
Acked-by: Nicolas Ferre
---
drivers/tty/serial/atmel_serial.c |2 +-
1 file
work when
switching to PIO mode due to DMA channel is not available.
Signed-off-by: Leilei Zhao
Acked-by: Nicolas Ferre
---
drivers/tty/serial/atmel_serial.c |1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/tty/serial/atmel_serial.c
b/drivers/tty/serial/atmel_serial.c
index 30
function. It's actually a procedure.
So changing the return type from int to void.
Signed-off-by: Leilei Zhao
Acked-by: Nicolas Ferre
---
drivers/tty/serial/atmel_serial.c |7 +++
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/drivers/tty/serial/atmel_serial.c
b/driver
Use macro PAGE_ALIGNED to simplify the expression.
Leilei Zhao (5):
tty/serial: at91: correct check of buf used in DMA
tty/serial: at91: correct buffer size used in DMA
tty/serial: at91: revise the return type of atmel_init_property
tty/serial: at91: set ops in property init each time
tty/se
The buffer size set in DMA is inconsistent with its allocation.
So keep them consistent here. The structure atmel_uart_char is
used in PIO mode with its meaning. But here in DMA, all of the
buffer is treated as general char.
Signed-off-by: Leilei Zhao
Acked-by: Nicolas Ferre
---
drivers/tty
We only use buf of ring In DMA rx function while using buf of xmit
in DMA tx function. So in DMA rx we need definitively to check the
buf of ring which is corresponding to DMA rx function. And use macro
PAGE_ALIGNED to simplify the expression.
Signed-off-by: Leilei Zhao
Acked-by: Nicolas Ferre
function. It's actually a procedure.
So changing the return type from int to void.
Signed-off-by: Leilei Zhao
Acked-by: Nicolas Ferre
---
drivers/tty/serial/atmel_serial.c |7 +++
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/drivers/tty/serial/atmel_serial.c
b/driver
work when
switching to PIO mode due to DMA channel is not available.
Signed-off-by: Leilei Zhao
Acked-by: Nicolas Ferre
---
drivers/tty/serial/atmel_serial.c |1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/tty/serial/atmel_serial.c
b/drivers/tty/serial/atmel_serial.c
index 26
case, tasklet_kill
can only clear the current scheduling out, so tasklet should
be disabled to prevent being executed in later scheduling.
Otherwise, the tasklet executed after serial port was shutdown
can lead to kernel crash.
Signed-off-by: Leilei Zhao
Acked-by: Nicolas Ferre
---
drivers/tty/s
27 matches
Mail list logo