u-boot/drivers/core
Simon Glass 5a8a8045a9 dm: core: Ensure DMA regions start up with the cache clean
There is a strange interaction with drivers which use DMA if the cache
starts off in a dirty state. Buffer space which the driver reads (but has
not previously written) can contain zero bytes from alloc_priv(). This can
cause corruption of the memory used by DMA for incoming data.

Fix this and add a comment to explain the problem.

This allows the dwc2 driver to work correctly with driver model, for
example.

Signed-off-by: Simon Glass <sjg@chromium.org>
2017-04-13 14:44:49 -06:00
..
device-remove.c dm: core: Add dm_remove_devices_flags() and hook it into device_remove() 2017-04-04 20:15:10 -06:00
device.c dm: core: Ensure DMA regions start up with the cache clean 2017-04-13 14:44:49 -06:00
devres.c devres: add debug command to dump device resources 2015-08-06 07:44:29 -06:00
dump.c dm: Move the tree/uclass dump code into its own file 2015-07-21 17:39:22 -06:00
Kconfig dm: core: Allow driver model to be disabled for TPL 2017-04-05 16:36:58 -04:00
lists.c dm: core: Match compatible strings in order of priority 2016-09-21 15:04:32 +02:00
Makefile dm: core: Add SPL Kconfig for REGMAP and SYSCON 2015-12-01 08:07:22 -07:00
regmap.c regmap: use fdt address translation 2017-03-22 07:27:19 -06:00
root.c dm: core: Add dm_remove_devices_flags() and hook it into device_remove() 2017-04-04 20:15:10 -06:00
simple-bus.c simple-bus: enable support for of-platdata 2017-02-08 06:12:16 -07:00
syscon-uclass.c dm: syscon: Provide a generic syscon driver 2016-09-21 15:04:32 +02:00
uclass.c core/uclass: Print name of device in uclass_find_device_by_seq() 2017-04-13 14:44:49 -06:00
util.c dm: Return actual bools in dm_fdt_pre_reloc 2017-03-16 16:03:47 -06:00