[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 04/10] aspeed/smc: Drop AspeedSMCController structure
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH 04/10] aspeed/smc: Drop AspeedSMCController structure |
Date: |
Tue, 7 Sep 2021 09:28:21 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 |
On 9/7/21 8:58 AM, Cédric Le Goater wrote:
> The characteristics of the Aspeed controllers are described in a
> AspeedSMCController structure which is redundant with the
> AspeedSMCClass. Move all attributes under the class and adapt the code
> to use class attributes instead.
>
> This is a large change but it is functionally equivalent.
>
> Signed-off-by: Cédric Le Goater <clg@kaod.org>
> ---
> include/hw/ssi/aspeed_smc.h | 64 ++-
> hw/arm/aspeed_ast2600.c | 4 +-
> hw/arm/aspeed_soc.c | 4 +-
> hw/ssi/aspeed_smc.c | 859 ++++++++++++++++++++----------------
> 4 files changed, 510 insertions(+), 421 deletions(-)
Overall LGTM, I might do a more detailed pass later.
- [PATCH 09/10] aspeed/smc: Add default reset values, (continued)
- [PATCH 04/10] aspeed/smc: Drop AspeedSMCController structure, Cédric Le Goater, 2021/09/07
- Re: [PATCH 04/10] aspeed/smc: Drop AspeedSMCController structure,
Philippe Mathieu-Daudé <=
- [PATCH 06/10] aspeed/smc: Remove the 'size' attribute from AspeedSMCFlash, Cédric Le Goater, 2021/09/07
- [PATCH 03/10] aspeed/smc: Stop using the model name for the memory regions, Cédric Le Goater, 2021/09/07
- [PATCH 08/10] aspeed/smc: QOMify AspeedSMCFlash, Cédric Le Goater, 2021/09/07
- Re: [PATCH 00/10] aspeed/smc: Cleanups and QOMification, Joel Stanley, 2021/09/07