diff mbox series

[U-Boot,04/25] cros_ec: Align uclass data to a cache boundary

Message ID 20181106222142.94537-5-sjg@chromium.org
State Accepted
Commit 4bf6f2ad47f481d161876a87969c46f80a9b8e9d
Delegated to: Simon Glass
Headers show
Series sandbox: Changes and improvements to support verified boot | expand

Commit Message

Simon Glass Nov. 6, 2018, 10:21 p.m. UTC
The LPC driver expects its buffer to be word-aligned. Add the required
flag to the uclass driver to ensure this.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 drivers/misc/cros_ec.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Simon Glass Nov. 22, 2018, 8:20 p.m. UTC | #1
The LPC driver expects its buffer to be word-aligned. Add the required
flag to the uclass driver to ensure this.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 drivers/misc/cros_ec.c | 1 +
 1 file changed, 1 insertion(+)

Applied to u-boot-dm/master, thanks!
diff mbox series

Patch

diff --git a/drivers/misc/cros_ec.c b/drivers/misc/cros_ec.c
index 7daf16499aa..828e50eb1cc 100644
--- a/drivers/misc/cros_ec.c
+++ b/drivers/misc/cros_ec.c
@@ -1152,4 +1152,5 @@  UCLASS_DRIVER(cros_ec) = {
 	.name		= "cros_ec",
 	.per_device_auto_alloc_size = sizeof(struct cros_ec_dev),
 	.post_bind	= dm_scan_fdt_dev,
+	.flags		= DM_UC_FLAG_ALLOC_PRIV_DMA,
 };