On 6/7/26 10:45, Jamin Lin wrote:
The SCU link is only needed by the AST27x0 SSP/TSP coprocessors for their
AST2700-specific SCU alias window.

Move the link property from the common AspeedCoprocessorState into
Aspeed27x0CoprocessorState, so the generic coprocessor model no longer
contains an AST2700-specific dependency.

Also validate that the SCU link has been provided during device realize
before accessing it.

No functional change.

Signed-off-by: Jamin Lin <[email protected]>
---
  include/hw/arm/aspeed_coprocessor.h |  5 +++--
  hw/arm/aspeed_ast27x0-ssp.c         | 19 +++++++++++++++----
  hw/arm/aspeed_ast27x0-tsp.c         | 19 +++++++++++++++----
  hw/arm/aspeed_coprocessor_common.c  |  2 --
  4 files changed, 33 insertions(+), 12 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <[email protected]>

Reply via email to