Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305904
b: refs/heads/master
c: d1cbb14
h: refs/heads/master
v: v3
  • Loading branch information
Andreas Westin authored and Herbert Xu committed May 15, 2012
1 parent 1f02dfd commit bde9c73
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 18 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f7329e71626c977fee672710142eb34ed7d021c7
refs/heads/master: d1cbb1447bca8eaa28b7a384365932b49c47811f
10 changes: 4 additions & 6 deletions trunk/drivers/crypto/ux500/cryp/cryp.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,16 @@ int cryp_check(struct cryp_device_data *device_data)
if (NULL == device_data)
return -EINVAL;

if (cpu_is_u8500())
peripheralid2 = CRYP_PERIPHERAL_ID2_DB8500;
else if (cpu_is_u5500())
peripheralid2 = CRYP_PERIPHERAL_ID2_DB5500;
peripheralid2 = readl_relaxed(&device_data->base->periphId2);

if (peripheralid2 != CRYP_PERIPHERAL_ID2_DB8500)
return -EPERM;

/* Check Peripheral and Pcell Id Register for CRYP */
if ((CRYP_PERIPHERAL_ID0 ==
readl_relaxed(&device_data->base->periphId0))
&& (CRYP_PERIPHERAL_ID1 ==
readl_relaxed(&device_data->base->periphId1))
&& (peripheralid2 ==
readl_relaxed(&device_data->base->periphId2))
&& (CRYP_PERIPHERAL_ID3 ==
readl_relaxed(&device_data->base->periphId3))
&& (CRYP_PCELL_ID0 ==
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/crypto/ux500/cryp/cryp_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
#define CRYP_PERIPHERAL_ID1 0x05

#define CRYP_PERIPHERAL_ID2_DB8500 0x28
#define CRYP_PERIPHERAL_ID2_DB5500 0x29
#define CRYP_PERIPHERAL_ID3 0x00

#define CRYP_PCELL_ID0 0x0D
Expand Down
10 changes: 0 additions & 10 deletions trunk/drivers/crypto/ux500/hash/hash_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -574,15 +574,6 @@ static int hash_init(struct ahash_request *req)
memset(&req_ctx->state, 0, sizeof(struct hash_state));
req_ctx->updated = 0;
if (hash_mode == HASH_MODE_DMA) {
if ((ctx->config.oper_mode == HASH_OPER_MODE_HMAC) &&
cpu_is_u5500()) {
pr_debug(DEV_DBG_NAME " [%s] HMAC and DMA not working "
"on u5500, directing to CPU mode.",
__func__);
req_ctx->dma_mode = false; /* Don't use DMA */
goto out;
}

if (req->nbytes < HASH_DMA_ALIGN_SIZE) {
req_ctx->dma_mode = false; /* Don't use DMA */

Expand All @@ -604,7 +595,6 @@ static int hash_init(struct ahash_request *req)
}
}
}
out:
return 0;
}

Expand Down

0 comments on commit bde9c73

Please sign in to comment.