projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70b5ea7
)
serial_arc: Allocate buffer for private data
author
Alexey Brodkin
<alexey.brodkin@synopsys.com>
Tue, 22 Jan 2019 15:18:51 +0000
(18:18 +0300)
committer
Alexey Brodkin
<abrodkin@synopsys.com>
Fri, 25 Jan 2019 05:40:26 +0000
(08:40 +0300)
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 <abrodkin@synopsys.com>
drivers/serial/serial_arc.c
patch
|
blob
|
history
diff --git
a/drivers/serial/serial_arc.c
b/drivers/serial/serial_arc.c
index 980b38d2a1ca7f54796f69c8daad47ba8d4a698b..70dbc6d6b53f50eaaceba28d47e528fa95363fac 100644
(file)
--- 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,
};