From: Alexey Brodkin Date: Tue, 22 Jan 2019 18:18:51 +0300 Subject: [U-Boot] [PATCH] serial_arc: Allocate buffer for private data Message-ID: <20190122151851.42110-1-abrodkin@synopsys.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Apparently we never allocated buffer for arc_serial_platdata which for some reason never caused problems when executed in nSIM. But in Qemu this causes expected problems. Signed-off-by: Alexey Brodkin --- drivers/serial/serial_arc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/serial/serial_arc.c b/drivers/serial/serial_arc.c index 980b38d2a1..70dbc6d6b5 100644 --- a/drivers/serial/serial_arc.c +++ b/drivers/serial/serial_arc.c @@ -126,6 +126,7 @@ U_BOOT_DRIVER(serial_arc) = { .id = UCLASS_SERIAL, .of_match = arc_serial_ids, .ofdata_to_platdata = arc_serial_ofdata_to_platdata, + .platdata_auto_alloc_size = sizeof(struct arc_serial_platdata), .probe = arc_serial_probe, .ops = &arc_serial_ops, }; -- 2.16.2