2020-11-02 17:05:57

by Cabiddu, Giovanni

[permalink] [raw]
Subject: [PATCH] crypto: qat - remove cast for mailbox CSR

From: Adam Guerin <[email protected]>

Remove cast for mailbox CSR in adf_admin.c as it is not needed.

Suggested-by: Andy Shevchenko <[email protected]>
Signed-off-by: Adam Guerin <[email protected]>
Reviewed-by: Giovanni Cabiddu <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Signed-off-by: Giovanni Cabiddu <[email protected]>
---
drivers/crypto/qat/qat_common/adf_admin.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/crypto/qat/qat_common/adf_admin.c b/drivers/crypto/qat/qat_common/adf_admin.c
index 7c2ca54229aa..43680e178242 100644
--- a/drivers/crypto/qat/qat_common/adf_admin.c
+++ b/drivers/crypto/qat/qat_common/adf_admin.c
@@ -254,7 +254,7 @@ int adf_init_admin_comms(struct adf_accel_dev *accel_dev)
hw_data->get_admin_info(&admin_csrs_info);

mailbox_offset = admin_csrs_info.mailbox_offset;
- mailbox = (void __iomem *)((uintptr_t)csr + mailbox_offset);
+ mailbox = csr + mailbox_offset;
adminmsg_u = admin_csrs_info.admin_msg_ur;
adminmsg_l = admin_csrs_info.admin_msg_lr;

--
2.28.0


2020-11-13 05:11:39

by Herbert Xu

[permalink] [raw]
Subject: Re: [PATCH] crypto: qat - remove cast for mailbox CSR

On Mon, Nov 02, 2020 at 05:04:54PM +0000, Giovanni Cabiddu wrote:
> From: Adam Guerin <[email protected]>
>
> Remove cast for mailbox CSR in adf_admin.c as it is not needed.
>
> Suggested-by: Andy Shevchenko <[email protected]>
> Signed-off-by: Adam Guerin <[email protected]>
> Reviewed-by: Giovanni Cabiddu <[email protected]>
> Reviewed-by: Andy Shevchenko <[email protected]>
> Signed-off-by: Giovanni Cabiddu <[email protected]>
> ---
> drivers/crypto/qat/qat_common/adf_admin.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

Patch applied. Thanks.
--
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt