[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH v3 20/24] hw/ssi: allow NULL realize callbacks for peripheral
From: |
Octavian Purdila |
Subject: |
[RFC PATCH v3 20/24] hw/ssi: allow NULL realize callbacks for peripherals |
Date: |
Mon, 26 Aug 2024 23:45:24 -0700 |
Signed-off-by: tavip <[email protected]>
---
hw/ssi/ssi.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/hw/ssi/ssi.c b/hw/ssi/ssi.c
index 3f357e8f16..d1f3ce7c22 100644
--- a/hw/ssi/ssi.c
+++ b/hw/ssi/ssi.c
@@ -105,7 +105,9 @@ static void ssi_peripheral_realize(DeviceState *dev, Error
**errp)
}
s->spc = ssc;
- ssc->realize(s, errp);
+ if (ssc->realize) {
+ ssc->realize(s, errp);
+ }
}
static Property ssi_peripheral_properties[] = {
--
2.46.0.295.g3b9ea8a38a-goog
- [RFC PATCH v3 00/24] NXP i.MX RT595, Octavian Purdila, 2024/08/27
- [RFC PATCH v3 01/24] fifo32: add peek function, Octavian Purdila, 2024/08/27
- [RFC PATCH v3 02/24] tests/unit: add fifo test, Octavian Purdila, 2024/08/27
- [RFC PATCH v3 03/24] scripts: add script to generate C header files from SVD XML files, Octavian Purdila, 2024/08/27
- [RFC PATCH v3 05/24] hw/misc: add basic flexcomm device model, Octavian Purdila, 2024/08/27
- [RFC PATCH v3 04/24] Add mcux-soc-svd subproject, Octavian Purdila, 2024/08/27
- [RFC PATCH v3 06/24] hw/char: add support for flexcomm usart, Octavian Purdila, 2024/08/27
- [RFC PATCH v3 07/24] hw/i2c: add support for flexcomm i2c, Octavian Purdila, 2024/08/27
- [RFC PATCH v3 17/24] tests/qtest: add flexcomm usart tests, Octavian Purdila, 2024/08/27
- [RFC PATCH v3 08/24] hw/ssi: add support for flexcomm spi, Octavian Purdila, 2024/08/27
- [RFC PATCH v3 20/24] hw/ssi: allow NULL realize callbacks for peripherals,
Octavian Purdila <=
- [RFC PATCH v3 24/24] test/unit: add unit tests for RT500's clock controller, Octavian Purdila, 2024/08/27
- [RFC PATCH v3 10/24] hw/ssi: add support for flexspi, Octavian Purdila, 2024/08/27
- [RFC PATCH v3 09/24] hw/misc: add support for RT500's clock controller, Octavian Purdila, 2024/08/27
- [RFC PATCH v3 16/24] tests/qtest: add flexcomm tests, Octavian Purdila, 2024/08/27
- [RFC PATCH v3 12/24] hw/arm: add basic support for the RT500 SoC, Octavian Purdila, 2024/08/27
- [RFC PATCH v3 11/24] hw/misc: add support for RT500's reset controller, Octavian Purdila, 2024/08/27
- [RFC PATCH v3 14/24] tests/qtest: add register access macros and functions, Octavian Purdila, 2024/08/27
- [RFC PATCH v3 15/24] system/qtest: add APIS to check for memory access failures, Octavian Purdila, 2024/08/27
- [RFC PATCH v3 13/24] hw/arm: add RT595-EVK board, Octavian Purdila, 2024/08/27