Message ID | 20230628110905.38125-1-akihiko.odaki@daynix.com |
---|---|
State | New |
Headers | show |
Series | hw: arm: allwinner-sramc: Set class_size | expand |
On 28/6/23 13:09, Akihiko Odaki wrote: > AwSRAMCClass is larger than SysBusDeviceClass so the class size must be > advertised accordingly. > > Fixes: 05def917e1 ("hw: arm: allwinner-sramc: Add SRAM Controller support for R40") > Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com> > --- > hw/misc/allwinner-sramc.c | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
On 6/28/23 13:09, Akihiko Odaki wrote: > AwSRAMCClass is larger than SysBusDeviceClass so the class size must be > advertised accordingly. > > Fixes: 05def917e1 ("hw: arm: allwinner-sramc: Add SRAM Controller support for R40") > Signed-off-by: Akihiko Odaki<akihiko.odaki@daynix.com> > --- > hw/misc/allwinner-sramc.c | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
On Wed, 28 Jun 2023 at 12:09, Akihiko Odaki <akihiko.odaki@daynix.com> wrote: > > AwSRAMCClass is larger than SysBusDeviceClass so the class size must be > advertised accordingly. > > Fixes: 05def917e1 ("hw: arm: allwinner-sramc: Add SRAM Controller support for R40") > Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com> > -- Applied to target-arm.next, thanks. -- PMM
Akihiko Odaki <akihiko.odaki@daynix.com> writes: > AwSRAMCClass is larger than SysBusDeviceClass so the class size must be > advertised accordingly. > > Fixes: 05def917e1 ("hw: arm: allwinner-sramc: Add SRAM Controller support for R40") > Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com> Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
diff --git a/hw/misc/allwinner-sramc.c b/hw/misc/allwinner-sramc.c index a8b731f8f2..d76c24d081 100644 --- a/hw/misc/allwinner-sramc.c +++ b/hw/misc/allwinner-sramc.c @@ -159,6 +159,7 @@ static const TypeInfo allwinner_sramc_info = { .parent = TYPE_SYS_BUS_DEVICE, .instance_init = allwinner_sramc_init, .instance_size = sizeof(AwSRAMCState), + .class_size = sizeof(AwSRAMCClass), .class_init = allwinner_sramc_class_init, };
AwSRAMCClass is larger than SysBusDeviceClass so the class size must be advertised accordingly. Fixes: 05def917e1 ("hw: arm: allwinner-sramc: Add SRAM Controller support for R40") Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com> --- hw/misc/allwinner-sramc.c | 1 + 1 file changed, 1 insertion(+)