- Sep 11, 2015
-
-
Stephen Warren authored
By the time g_dnl_unbind() is run, cdev->config has been set to NULL, so the free() there does nothing, and the config struct is leaked. Equally, struct usb_gadget contains a linked list of config structs, so the code should iterate over them all and free each one, rather than freeing one particular config struct. composite_unbind() already iterates over the list of config structs, and unlinks each from the linked list. Fix this loop to free() each struct as it's unlinked and otherwise forgotten. Signed-off-by:
Stephen Warren <swarren@nvidia.com> Acked-by:
Lukasz Majewski <l.majewski@samsung.com> Tested-by:
Lukasz Majewski <l.majewski@samsung.com>
-
Łukasz Majewski authored
It is very common that FAT code is using following pattern: if (disk_{read|write}() < 0) return -1; Up till now the above code was dead, since disk_{read|write) could only return value >= 0. As a result some errors from medium layer (i.e. eMMC/SD) were not caught. The above behavior was caused by block_{read|write|erase} declared at struct block_dev_desc (@part.h). It returns unsigned long, where 0 indicates error and > 0 indicates that medium operation was correct. This patch as error regards 0 returned from block_{read|write|erase} when nr_blocks is grater than zero. Read/Write operation with nr_blocks=0 should return 0 and hence is not considered as an error. Signed-off-by:
Lukasz Majewski <l.majewski@samsung.com> Test HW: Odroid XU3 - Exynos 5433
-
Kishon Vijay Abraham I authored
Enable dwc3, dwc3-omap and PHY to get DWC3 functional in OMAP5 uEVM. Also enable support for DFU. Signed-off-by:
Kishon Vijay Abraham I <kishon@ti.com> Reviewed-by:
Tom Rini <trini@konsulko.com>
-
Simon Glass authored
Now that we have a new header file for cache-aligned allocation, we should move the stack-based allocation macro there also. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
At present malloc.h is included everywhere since it recently was added to common.h in this commit: 4519668b mtd/nand/ubi: assortment of alignment fixes This seems wasteful and unnecessary. We have been trying to trim down common.h and put separate functions into separate header files and that change goes in the opposite direction. Move malloc_cache_aligned() to a new header so that this can be avoided. The header would perhaps be better named as alignmem.h but it needs to be included after common.h and people might be confused by this. With the name memalign.h it fits nicely after malloc() in most cases. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Marcel Ziswiler <marcel.ziswiler@toradex.com>
-
Stefan Roese authored
To reduce the size of the U-Boot image on the x600 board, lets enable the THUMB mode. This reduces the overall size to less than 0x6000 bytes. Fitting it again in the onboard NOR flash. Signed-off-by:
Stefan Roese <sr@denx.de> Cc: Viresh Kumar <viresh.kumar@linaro.org>
-
Stefan Roese authored
This board is equipped with a Micron NAND chip (MT29F1G08ABADAH4) that needs 4-bit ECC. But the SPEAr600 only supports 1-bit HW ECC internally. This patch enables the SW 4-bit BCH support for this board. Signed-off-by:
Stefan Roese <sr@denx.de> Cc: Viresh Kumar <viresh.kumar@linaro.org>
-
Stefan Roese authored
This patch adds the "nandecc" command to switch between the SPEAr600 internal 1-bit HW ECC and the 4-bit SW BCH4 ECC. This can be needed to support NAND chips with a stronger ECC than 1-bit, as on the x600. And to dynamically switch between both ECC schemes for backwards compatibility. Signed-off-by:
Stefan Roese <sr@denx.de> Cc: Viresh Kumar <viresh.kumar@linaro.org> Acked-by:
Viresh Kumar <viresh.kumar@linaro.org>
-
Stefan Roese authored
This patch adds support for 4-bit ECC BCH4 for the SPEAr600 SoC. This can be used by boards equipped with a NAND chip that requires 4-bit ECC strength. The SPEAr600 HW ECC only supports 1-bit ECC strength. To enable SW BCH4, you need to specify this in your config header: #define CONFIG_NAND_ECC_BCH #define CONFIG_BCH And use the command "nandecc bch4" to select this ECC scheme upon runtime. Tested on SPEAr600 x600 board. Signed-off-by:
Stefan Roese <sr@denx.de> Cc: Scott Wood <scottwood@freescale.com> Acked-by:
Viresh Kumar <viresh.kumar@linaro.org>
-
Simon Glass authored
This board has not been converted to generic board by the deadline. Remove it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This board has not been converted to generic board by the deadline. Remove it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This board has not been converted to generic board by the deadline. Remove it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This board has not been converted to generic board by the deadline. Remove it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This board has not been converted to generic board by the deadline. Remove it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This board has not been converted to generic board by the deadline. Remove it. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Stefano Babic <sbabic@denx.de>
-
Simon Glass authored
This board has not been converted to generic board by the deadline. Remove it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This board has not been converted to generic board by the deadline. Remove it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This board has not been converted to generic board by the deadline. Remove it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This board has not been converted to generic board by the deadline. Remove it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This board has not been converted to generic board by the deadline. Remove it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This board has not been converted to generic board by the deadline. Remove it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
These boards have not been converted to generic board by the deadline. Remove them. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
These boards have not been converted to generic board by the deadline. Remove them. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
These boards have not been converted to generic board by the deadline. Remove them. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Stefano Babic <sbabic@denx.de>
-
Simon Glass authored
This board has not been converted to generic board by the deadline. Remove it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This board has not been converted to generic board by the deadline. Remove it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This board has not been converted to generic board by the deadline. Remove it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
These boards have not been converted to generic board by the deadline. Remove them. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This board has not been converted to generic board by the deadline. Remove it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This board has not been converted to generic board by the deadline. Remove it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
These boards have not been converted to generic board by the deadline. Remove them. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
These boards have not been converted to generic board by the deadline. Remove them. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This board has not been converted to generic board by the deadline. Remove it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This board has not been converted to generic board by the deadline. Remove it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This board has not been converted to generic board by the deadline. Remove it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This board has not been converted to generic board by the deadline. Remove it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This board has not been converted to generic board by the deadline. Remove it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
These boards have not been converted to generic board by the deadline. Remove them. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This board has not been converted to generic board by the deadline. Remove it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This board has not been converted to generic board by the deadline. Remove it. Signed-off-by:
Simon Glass <sjg@chromium.org>
-