firmware: tee_bnxt: Use UUID API for exporting the UUID
PATCH v3 1/1 firmware: tee_bnxt: Use UUID API for exporting the UUID
There is export_uuid() function which exports uuid_t to the u8 array. Use it instead of open coding variant.
This allows to hide the uuid_t internals.
---
v3: rebased on the latest vanilla, added Andrew since it has no move for 1y+
drivers/firmware/broadcom/tee_bnxt_fw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/firmware/broadcom/tee_bnxt_fw.c +1 -1
@@ -197,7 +197,7 @@ static int tee_bnxt_fw_probe(struct device *dev)return -ENODEV ;/* Open session with Bnxt load Trusted App */ -memcpy (sess_arg.uuid, bnxt_device->id.uuid.b,TEE_IOCTL_UUID_LEN ); +export_uuid (sess_arg.uuid, &bnxt_device->id.uuid); sess_arg.clnt_login =TEE_IOCTL_LOGIN_PUBLIC ; sess_arg.num_params =0 ;
Signature · 1 line
2.35.1
Quoted 8 lines · Andy Shevchenko
There is
export_uuid()function which exportsuuid_tto the u8 array. Use it instead of open coding variant.This allows to hide the
uuid_tinternals.Signed-off-by Andy Shevchenko <[email protected]>---
v3: rebased on the latest vanilla, added Andrew since it has no move for 1y+
I don't think this is going to be picked up unless we designate a entry in the MAINTAINERS file, I don't mind taking this via the Broadcom ARM SoCs pull request if this does not move.
Quoted 16 lines
drivers/firmware/broadcom/tee_bnxt_fw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/firmware/broadcom/tee_bnxt_fw.c +1
-1@@ -197,7 +197,7 @@ static int tee_bnxt_fw_probe(struct device *dev)return -ENODEV ;/* Open session with Bnxt load Trusted App */ -memcpy (sess_arg.uuid, bnxt_device->id.uuid.b,TEE_IOCTL_UUID_LEN ); +export_uuid (sess_arg.uuid, &bnxt_device->id.uuid); sess_arg.clnt_login =TEE_IOCTL_LOGIN_PUBLIC ; sess_arg.num_params =0 ;
Signature · 1 line
Florian
Quoted 6 lines · Andy Shevchenko
There is
export_uuid()function which exportsuuid_tto the u8 array. Use it instead of open coding variant.This allows to hide the
uuid_tinternals.Signed-off-by Andy Shevchenko <[email protected]>
Looks good:
Quoted 1 line · Florian Fainelli
On 4/12/2022 4:32 AM, Andy Shevchenko wrote:
...
Quoted 5 lines
Quoted 1 line
v3: rebased on the latest vanilla, added Andrew since it has no move for 1y+
I don't think this is going to be picked up unless we designate a entry in the
MAINTAINERSfile, I don't mind taking this via the Broadcom ARM SoCs pull request if this does not move.
Please do, seems above mentioned tree is the best choice for this driver.
Thanks!
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 1 line · Christoph Hellwig
On Tue, Apr 12, 2022 at 02:32:50PM +0300, Andy Shevchenko wrote:
...
Quoted 1 line
Reviewed-by Christoph Hellwig <[email protected]>
Thanks!
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 6 lines · Florian Fainelli
Quoted 5 lines · Andy Shevchenko
There is
export_uuid()function which exportsuuid_tto the u8 array. Use it instead of open coding variant.This allows to hide the
uuid_tinternals.
Quoted 7 lines
Quoted 3 lines
Signed-off-by Andy Shevchenko <[email protected]>---
v3: rebased on the latest vanilla, added Andrew since it has no move for 1y+I don't think this is going to be picked up unless we designate a entry in the
MAINTAINERSfile, I don't mind taking this via the Broadcom ARM SoCs pull request if this does not move.
I saw your patch has been picked up to up-to-date MAINTAINERS record. Can this one now be picked up too?
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 11 lines · Andy Shevchenko
Quoted 10 lines · Florian Fainelli
Quoted 8 lines · Andy Shevchenko
There is
export_uuid()function which exportsuuid_tto the u8 array. Use it instead of open coding variant.This allows to hide the
uuid_tinternals.Signed-off-by Andy Shevchenko <[email protected]>---
v3: rebased on the latest vanilla, added Andrew since it has no move for 1y+
Quoted 6 lines
Quoted 3 lines
I don't think this is going to be picked up unless we designate a entry in the
MAINTAINERSfile, I don't mind taking this via the Broadcom ARM SoCs pull request if this does not move.I saw your patch has been picked up to up-to-date
MAINTAINERSrecord. Can this one now be picked up too?
Please resubmit targeting David Miller's net-next tree since this is how patches would be merged moving forward. Thanks!
Signature · 1 line
Florian
Quoted 16 lines · Florian Fainelli
Quoted 15 lines · Andy Shevchenko
Quoted 13 lines · Florian Fainelli
Quoted 8 lines · Andy Shevchenko
There is
export_uuid()function which exportsuuid_tto the u8 array. Use it instead of open coding variant.This allows to hide the
uuid_tinternals.Signed-off-by Andy Shevchenko <[email protected]>---
v3: rebased on the latest vanilla, added Andrew since it has no move for 1y+I don't think this is going to be picked up unless we designate a entry in the
MAINTAINERSfile, I don't mind taking this via the Broadcom ARM SoCs pull request if this does not move.
Quoted 5 lines
Quoted 2 lines
I saw your patch has been picked up to up-to-date
MAINTAINERSrecord. Can this one now be picked up too?Please resubmit targeting David Miller's net-next tree since this is how patches would be merged moving forward. Thanks!
Done, thanks!
Signature · 2 lines
With Best Regards, Andy Shevchenko