
On Mon, Feb 22, 2016 at 3:17 PM, Jagan Teki jteki@openedev.com wrote:
Can you pls- test the dataflash changes? use u-boot-spi/spi-nor
Does not even build for me (mx6qsabresd_defconfig) :
CC drivers/misc/mxc_ocotp.o drivers/dfu/dfu_sf.c: In function ‘dfu_read_medium_sf’: drivers/dfu/dfu_sf.c:23:2: warning: passing argument 1 of ‘spi_flash_read’ from incompatible pointer type [enabled by default] In file included from include/dfu.h:17:0, from drivers/dfu/dfu_sf.c:11: include/spi_flash.h:33:19: note: expected ‘struct spi_flash_t *’ but argument is of type ‘struct spi_flash *’ drivers/dfu/dfu_sf.c: In function ‘find_sector’: drivers/dfu/dfu_sf.c:28:50: error: dereferencing pointer to incomplete type drivers/dfu/dfu_sf.c:29:19: error: dereferencing pointer to incomplete type drivers/dfu/dfu_sf.c: In function ‘dfu_write_medium_sf’: drivers/dfu/dfu_sf.c:39:26: error: dereferencing pointer to incomplete type drivers/dfu/dfu_sf.c:39:10: warning: passing argument 1 of ‘spi_flash_erase’ from incompatible pointer type [enabled by default] In file included from include/dfu.h:17:0, from drivers/dfu/dfu_sf.c:11: include/spi_flash.h:45:19: note: expected ‘struct spi_flash_t *’ but argument is of type ‘struct spi_flash *’ drivers/dfu/dfu_sf.c:44:10: warning: passing argument 1 of ‘spi_flash_write’ from incompatible pointer type [enabled by default] In file included from include/dfu.h:17:0, from drivers/dfu/dfu_sf.c:11: include/spi_flash.h:39:19: note: expected ‘struct spi_flash_t *’ but argument is of type ‘struct spi_flash *’ drivers/dfu/dfu_sf.c: In function ‘dfu_free_entity_sf’: drivers/dfu/dfu_sf.c:63:2: warning: passing argument 1 of ‘spi_flash_free’ from incompatible pointer type [enabled by default] In file included from include/dfu.h:17:0, from drivers/dfu/dfu_sf.c:11: include/spi_flash.h:87:6: note: expected ‘struct spi_flash_t *’ but argument is of type ‘struct spi_flash *’ drivers/dfu/dfu_sf.c: In function ‘dfu_fill_entity_sf’: drivers/dfu/dfu_sf.c:120:19: warning: assignment from incompatible pointer type [enabled by default] drivers/dfu/dfu_sf.c:126:38: error: dereferencing pointer to incomplete type drivers/dfu/dfu_sf.c:136:3: warning: passing argument 1 of ‘spi_flash_free’ from incompatible pointer type [enabled by default] In file included from include/dfu.h:17:0, from drivers/dfu/dfu_sf.c:11: include/spi_flash.h:87:6: note: expected ‘struct spi_flash_t *’ but argument is of type ‘struct spi_flash *’ make[2]: *** [drivers/dfu/dfu_sf.o] Error 1 make[1]: *** [drivers/dfu] Error 2 make[1]: *** Waiting for unfinished jobs....