2022-09-02 17:00:05

by Russ Weight

[permalink] [raw]
Subject: [PATCH v1 2/2] fpga: m10bmc-sec: d5005 bmc secure update driver

Add a driver name for the D5005 BMC secure update driver. Different
driver names are used for the N3000 and D5005 devices because future
changes will add conditional code based on the device type (N3000
vs D5005). This change enables D5005 secure updates of BCM images,
BMC firmware, static-region images, etc.

Signed-off-by: Russ Weight <[email protected]>
---
drivers/fpga/intel-m10-bmc-sec-update.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/drivers/fpga/intel-m10-bmc-sec-update.c b/drivers/fpga/intel-m10-bmc-sec-update.c
index 72c677c910de..526c8cdd1474 100644
--- a/drivers/fpga/intel-m10-bmc-sec-update.c
+++ b/drivers/fpga/intel-m10-bmc-sec-update.c
@@ -605,6 +605,9 @@ static const struct platform_device_id intel_m10bmc_sec_ids[] = {
{
.name = "n3000bmc-sec-update",
},
+ {
+ .name = "d5005bmc-sec-update",
+ },
{ }
};
MODULE_DEVICE_TABLE(platform, intel_m10bmc_sec_ids);
--
2.25.1


2022-09-11 07:53:14

by Xu Yilun

[permalink] [raw]
Subject: Re: [PATCH v1 2/2] fpga: m10bmc-sec: d5005 bmc secure update driver

On 2022-09-02 at 09:57:06 -0700, Russ Weight wrote:
> Add a driver name for the D5005 BMC secure update driver. Different
> driver names are used for the N3000 and D5005 devices because future
> changes will add conditional code based on the device type (N3000
> vs D5005). This change enables D5005 secure updates of BCM images,
> BMC firmware, static-region images, etc.
>
> Signed-off-by: Russ Weight <[email protected]>
> ---
> drivers/fpga/intel-m10-bmc-sec-update.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/fpga/intel-m10-bmc-sec-update.c b/drivers/fpga/intel-m10-bmc-sec-update.c
> index 72c677c910de..526c8cdd1474 100644
> --- a/drivers/fpga/intel-m10-bmc-sec-update.c
> +++ b/drivers/fpga/intel-m10-bmc-sec-update.c
> @@ -605,6 +605,9 @@ static const struct platform_device_id intel_m10bmc_sec_ids[] = {
> {
> .name = "n3000bmc-sec-update",
> },
> + {
> + .name = "d5005bmc-sec-update",
> + },
> { }
> };
> MODULE_DEVICE_TABLE(platform, intel_m10bmc_sec_ids);

Applied to for-next.

Thanks,
Yilun

> --
> 2.25.1
>