[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 4/7] ppc/pnv: Simplify pnv_bmc_create()
From: |
David Gibson |
Subject: |
Re: [PATCH 4/7] ppc/pnv: Simplify pnv_bmc_create() |
Date: |
Thu, 28 Jan 2021 11:49:52 +1100 |
On Tue, Jan 26, 2021 at 06:10:56PM +0100, Cédric Le Goater wrote:
> and reuse pnv_bmc_set_pnor() to share the setting of the PNOR.
>
> Signed-off-by: Cédric Le Goater <clg@kaod.org>
Applied to ppc-for-6.0, thanks.
> ---
> hw/ppc/pnv_bmc.c | 7 +------
> 1 file changed, 1 insertion(+), 6 deletions(-)
>
> diff --git a/hw/ppc/pnv_bmc.c b/hw/ppc/pnv_bmc.c
> index 67ebb16c4d5f..86d16b493539 100644
> --- a/hw/ppc/pnv_bmc.c
> +++ b/hw/ppc/pnv_bmc.c
> @@ -260,13 +260,8 @@ IPMIBmc *pnv_bmc_create(PnvPnor *pnor)
> Object *obj;
>
> obj = object_new(TYPE_IPMI_BMC_SIMULATOR);
> - object_ref(OBJECT(pnor));
> - object_property_add_const_link(obj, "pnor", OBJECT(pnor));
> qdev_realize(DEVICE(obj), NULL, &error_fatal);
> -
> - /* Install the HIOMAP protocol handlers to access the PNOR */
> - ipmi_sim_register_netfn(IPMI_BMC_SIMULATOR(obj), IPMI_NETFN_OEM,
> - &hiomap_netfn);
> + pnv_bmc_set_pnor(IPMI_BMC(obj), pnor);
>
> return IPMI_BMC(obj);
> }
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
signature.asc
Description: PGP signature
- [PATCH 2/7] ppc/xive: Add firmware bit when dumping the ENDs, (continued)
Re: [PATCH 4/7] ppc/pnv: Simplify pnv_bmc_create(),
David Gibson <=
[PATCH 5/7] ppc/pnv: Discard internal BMC initialization when BMC is external, Cédric Le Goater, 2021/01/26
Re: [PATCH 5/7] ppc/pnv: Discard internal BMC initialization when BMC is external, David Gibson, 2021/01/27
[PATCH 1/7] ppc/pnv: Add trace events for PCI event notification, Cédric Le Goater, 2021/01/26
[PATCH 6/7] ppc/pnv: Remove default disablement of the PNOR contents, Cédric Le Goater, 2021/01/26