Skip to content

hw/arm/aspeed: Use a table for unimplemented devices

Jamin Lin qemu-arm qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest12 patches 4 repliesIn review
  2. v111 patches 15 repliesSuperseded

Changes in v2 from the cover letter

1. Add a common create_unimplemented_devices() helper and UnimplementedDeviceConfig in hw/misc/unimp, as suggested by Philippe.
2. Define the unimplemented device table at the SoC class level
3. Drop the "unimp" array and the AspeedUnimpDevice table.
4. Remove aspeed_mmio_map_unimplemented(), which is not used anymore.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12hw/misc/unimp: Add create_unimplemented_devices() helperhw/misc/unimp.c include/hw/misc/unimp.h+41 -01 reply
2/12hw/arm/aspeed_ast2400: Use a table for unimplemented deviceshw/arm/aspeed_ast2400.c include/hw/arm/aspeed_soc.h+11 -150 replies
3/12hw/arm/aspeed_ast2600: Use a table for unimplemented deviceshw/arm/aspeed_ast2600.c+12 -320 replies
4/12hw/arm/aspeed_ast27x0: Use a table for unimplemented deviceshw/arm/aspeed_ast27x0.c+12 -290 replies
5/12hw/arm/aspeed_ast10x0: Use a table for unimplemented deviceshw/arm/aspeed_ast10x0.c+15 -400 replies
6/12hw/arm/aspeed_ast1040: Use a table for unimplemented deviceshw/arm/aspeed_ast1040.c+12 -280 replies
7/12hw/arm/aspeed: Remove unused unimplemented device fieldsinclude/hw/arm/aspeed_soc.h+0 -100 replies
8/12hw/arm/aspeed_ast27x0: Use a table for unimplemented devices for SSP/TSPhw/arm/aspeed_ast27x0-ssp.c hw/arm/aspeed_ast27x0-tsp.c include/hw/arm/aspeed_coprocessor.h+27 -620 replies
9/12hw/arm/aspeed_coprocessor: Remove unused unimplemented device fieldsinclude/hw/arm/aspeed_coprocessor.h+0 -40 replies
10/12hw/arm/aspeed_ast1700: Use a table for unimplemented deviceshw/arm/aspeed_ast1700.c+8 -130 replies
11/12hw/arm/aspeed_ast1700: Remove unused unimplemented device fieldinclude/hw/arm/aspeed_ast1700.h+0 -20 replies
12/12hw/arm/aspeed: Remove unused aspeed_mmio_map_unimplemented()hw/arm/aspeed_soc_common.c include/hw/arm/aspeed_soc.h+0 -140 replies

Reviews trailers per patch

4 of 12 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchCédric Le GoaterPhilippe Mathieu-Daudé
SeriesR-b R-b
1/12R-b T-b
2/12
3/12
4/12
5/12
6/12
7/12R-b
8/12
9/12R-b
10/12
11/12R-b
12/12

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 00/12] hw/arm/aspeed: Use a table for unimplemented devices

v1:
1. Use unimp array and table for unimplemented devices
2. Sort device IDs alphabetically

v2:
1. Add a common create_unimplemented_devices() helper and UnimplementedDeviceConfig in hw/misc/unimp, as suggested by Philippe.
2. Define the unimplemented device table at the SoC class level
3. Drop the "unimp" array and the AspeedUnimpDevice table.
4. Remove aspeed_mmio_map_unimplemented(), which is not used anymore.

Jamin Lin (12):
hw/misc/unimp: Add create_unimplemented_devices() helper hw/arm/aspeed_ast2400: Use a table for unimplemented devices hw/arm/aspeed_ast2600: Use a table for unimplemented devices hw/arm/aspeed_ast27x0: Use a table for unimplemented devices hw/arm/aspeed_ast10x0: Use a table for unimplemented devices hw/arm/aspeed_ast1040: Use a table for unimplemented devices hw/arm/aspeed: Remove unused unimplemented device fields hw/arm/aspeed_ast27x0: Use a table for unimplemented devices for
SSP/TSP
hw/arm/aspeed_coprocessor: Remove unused unimplemented device fields hw/arm/aspeed_ast1700: Use a table for unimplemented devices hw/arm/aspeed_ast1700: Remove unused unimplemented device field hw/arm/aspeed: Remove unused aspeed_mmio_map_unimplemented()

 include/hw/arm/aspeed_ast1700.h     |  2 --
 include/hw/arm/aspeed_coprocessor.h |  5 +--
 include/hw/arm/aspeed_soc.h         | 14 +-------
 include/hw/misc/unimp.h             | 21 +++++++++++
 hw/arm/aspeed_ast1040.c             | 40 +++++++--------------
 hw/arm/aspeed_ast10x0.c             | 55 ++++++++---------------------
 hw/arm/aspeed_ast1700.c             | 21 +++++------
 hw/arm/aspeed_ast2400.c             | 25 ++++++-------
 hw/arm/aspeed_ast2600.c             | 44 +++++++----------------
 hw/arm/aspeed_ast27x0-ssp.c         | 44 +++++++----------------
 hw/arm/aspeed_ast27x0-tsp.c         | 44 +++++++----------------
 hw/arm/aspeed_ast27x0.c             | 41 +++++++--------------
 hw/arm/aspeed_soc_common.c          | 11 ------
 hw/misc/unimp.c                     | 20 +++++++++++
 14 files changed, 138 insertions(+), 249 deletions(-)
Signature · 1 line
2.53.0