- Apr 14, 2015
-
-
Stephen Warren authored
When fetching the first descriptor from a new device, only validate that we received at least 8 bytes, not that we received the entire descriptor. The reasoning is: - The code only uses fields in the first 8 bytes, so that's all we need to have fetched at this stage. - The smallest maxpacket size is 8 bytes. Before we know the actual maxpacket the device uses, the USB controller may only accept a single packet (see the DWC2 note in the comment added in the commit). Consequently we are only guaranteed to receive 1 packet (at least 8 bytes) even in a non-error case. Fixes: 1a7758044b04 ("usb: Early failure when the first descriptor read fails or is invalid") Cc: Paul Kocialkowski <contact@paulk.fr> Signed-off-by:
Stephen Warren <swarren@wwwdotorg.org>
-
Paul Kocialkowski authored
This may happen when using an USB1 device on a controller that only supports USB2 (e.g. EHCI). Reading the first descriptor will fail (read 0 byte), so we can abort the process at this point instead of failing later and wasting time. Signed-off-by:
Paul Kocialkowski <contact@paulk.fr>
-
Paul Kocialkowski authored
This checks that a new USB device is correctly initialized and frees it if not. In addition, this doesn't report that USB was started when no device was found. Signed-off-by:
Paul Kocialkowski <contact@paulk.fr>
-
Paul Kocialkowski authored
This makes use of errno return codes for representing error codes in a unified way. Signed-off-by:
Paul Kocialkowski <contact@paulk.fr>
-
Sergey Temerkhanov authored
This patch fixes USB storage capacity detection breakage on 64-bit systems which arises due to 'unsigned long' length difference. Old code assumes that to be 32 bit and breaks because of inappropriate response buffer layout. Also this fixes a number of build warnings and changes big-endian values treatment style to be architecture-independent Signed-off-by:
Sergey Temerkhanov <s.temerkhanov@gmail.com> Signed-off-by:
Radha Mohan Chintakuntla <rchintakuntla@cavium.com>
-
Sergey Temerkhanov authored
This commit allows xHCI to use both 64 and 32 bit memory physical addresses depending on architecture it's being built for. Also it makes use of readq()/writeq() on 64-bit systems Signed-off-by:
Sergey Temerkhanov <s.temerkhanov@gmail.com> Signed-off-by:
Radha Mohan Chintakuntla <rchintakuntla@cavium.com>
-
Sergey Temerkhanov authored
This patch converts USB protocol headers to use explicitly sized fields like the rest of the code Signed-off-by:
Radha Mohan Chintakuntla <rchintakuntla@cavium.com> Signed-off-by:
Sergey Temerkhanov <s.temerkhanov@gmail.com>
-
Thierry Reding authored
Fix a printf format mismatch warning seen on 64-bit builds. Cc: Łukasz Majewski <l.majewski@samsung.com> Cc: Marek Vasut <marex@denx.de> Signed-off-by:
Thierry Reding <treding@nvidia.com> Acked-by:
Lukasz Majewski <l.majewski@samsung.com> Tested-by:
Lukasz Majewski <l.majewski@samsung.com> Reviewed-by:
Lukasz Majewski <l.majewski@samsung.com>
-
Thierry Reding authored
Cast pointers to unsigned long instead of a sized 32-bit type to avoid pointer to integer cast size mismatch warnings. Cc: Tom Warren <twarren@nvidia.com> Cc: Marek Vasut <marex@denx.de> Signed-off-by:
Thierry Reding <treding@nvidia.com>
-
Rob Herring authored
Change addresses to unsigned long to be compatible with 64-bit builds. Regardless of fixing warnings, the device is still only 32-bit capable. Signed-off-by:
Rob Herring <robh@kernel.org> Cc: Marek Vasut <marex@denx.de>
-
Rob Herring authored
Change addresses to unsigned long to be compatible with 64-bit builds. Regardless of fixing warnings, the device is still only 32-bit capable. Signed-off-by:
Rob Herring <robh@kernel.org> Cc: "Łukasz Majewski" <l.majewski@samsung.com> Cc: Marek Vasut <marex@denx.de> Reviewed-by:
Lukasz Majewski <l.majewski@samsung.com>
-
Thierry Reding authored
Fix a type mismatch in a printf format string. Cc: Marek Vasut <marex@denx.de> Signed-off-by:
Thierry Reding <treding@nvidia.com>
-
Franck Jullien authored
Mass storage is not necessary present on interface 0. This patch allow usb_stor_scan to look in every available interface. Signed-off-by:
Franck Jullien <franck.jullien@gmail.com>
-
- Apr 13, 2015
-
-
Tom Rini authored
Signed-off-by:
Tom Rini <trini@konsulko.com>
-
Pavel Machek authored
Add an error in known-bad case so that we don't produce broken and hard to debug binaries. Signed-off-by:
Pavel Machek <pavel@denx.de>
-
git://www.denx.de/git/u-boot-imxTom Rini authored
-
Stephen Warren authored
According to Gordon Henderson's WiringPi library, there are some more Pi revision IDs out there. Add support for them. http://git.drogon.net/?p=wiringPi;a=blob_plain;f=wiringPi/wiringPi.c;hb=5edd177112c99416f68ba3e8c6c4db6ed942e796 At least ID 0x13 is out in the wild: Reported-by:
Chee-Yang Chau <cychau@gmail.com> Signed-off-by:
Stephen Warren <swarren@wwwdotorg.org>
-
- Apr 11, 2015
-
-
Masahiro Yamada authored
Since commit 79d75d75 (ARM: move -march=* and -mtune= options to arch/arm/Makefile), all the Tegra boards are broken because the SPL is built for ARMv7. Insert Tegra-specific code to arch/arm/Makefile to set compiler flags for an earlier ARM architecture. Note: The v1 patch for commit 79d75d75 *was* correct when it was submitted. Notice it was originally written for multi .config configuration where Kconfig set CONFIG_CPU_V7/CONFIG_CPU_ARM720T for Tegra U-Boot Main/SPL, respectively. But, until it was merged into the mainline, commit e02ee254 (kconfig: switch to single .config configuration) had been already applied there. Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com> Reported-by:
Stephen Warren <swarren@nvidia.com> Reported-by:
Jan Kiszka <jan.kiszka@siemens.com> Tested-by:
Jan Kiszka <jan.kiszka@siemens.com>
-
Stefan Roese authored
Patch e11c6c27 (arm: Allow lr to be saved by board code) introduced a different method to return from save_boot_params(). The SPL support for AXP has been pulled and changing to this new method is now required for SPL to work correctly. Signed-off-by:
Stefan Roese <sr@denx.de> Cc: Simon Glass <sjg@chromium.org> Cc: Luka Perkov <luka.perkov@sartura.hr>
-
- Apr 10, 2015
-
-
git://git.denx.de/u-boot-arcTom Rini authored
-
Alexey Brodkin authored
While testing "arc: make sure _start is in the beginning of .text section" I haven't done proper clean-up of built binaries and so missed another tiny bit that lead to the following error: --->8--- LD u-boot arc-linux-ld.bfd: cannot find arch/arc/lib/start.o Makefile:1107: recipe for target 'u-boot' failed make: *** [u-boot] Error 1 --->8--- Fix is trivial: put "start.o" in "extra-y". Signed-off-by:
Alexey Brodkin <abrodkin@synopsys.com>
-
Linus Walleij authored
This consolidates the flash settings for the Integrator and activates the new ARM flash image support for them so images can be loaded by name from flash. Reviewed-by:
Tom Rini <trini@konsulko.com> Signed-off-by:
Linus Walleij <linus.walleij@linaro.org>
-
Linus Walleij authored
This modifies the vexpress64 Juno configuration so that it will by default load and boot a kernel and a device tree from the images stored in the NOR flash. When we are at it, also define the proper command line for the Juno and indicate that the USB stick (/dev/sda1) is the default root file system. Reviewed-by:
Tom Rini <trini@konsulko.com> Signed-off-by:
Linus Walleij <linus.walleij@linaro.org>
-
Linus Walleij authored
The ARM reference designs all use a special flash image format that stores a footer (two versions exist) at the end of the last erase block of the image in flash memory. Version one of the footer is indicated by the magic number 0xA0FFFF9F at 12 bytes before the end of the flash block and version two is indicated by the magic number 0x464F4F54 0x464C5348 (ASCII for "FLSHFOOT") in the very last 8 bytes of the erase block. This command driver implements support for both versions of the AFS images (the name comes from the Linux driver in drivers/mtd/afs.c) and makes it possible to list images and load an image by name into the memory with these commands: afs - lists flash contents afs load <image> - loads image to address indicated in the image afs load <image> <addres> - loads image to a specified address This image scheme is used on the ARM Integrator family, ARM Versatile family, ARM RealView family (not yet supported in U-Boot) and ARM Versatile Express family up to and including the new Juno board for 64 bit development. Reviewed-by:
Tom Rini <trini@konsulko.com> Signed-off-by:
Linus Walleij <linus.walleij@linaro.org>
-
git://git.denx.de/u-boot-fdtTom Rini authored
-
git://git.denx.de/u-boot-armTom Rini authored
-
Stefan Agner authored
The ubi check command is expected to not fail and just check whether a volume exist or not. Currently, when a volume does not exist, the command fails which leads to an error: "exit not allowed from main input shell." Use 1 to indicate that a volume does not exist. This allows to use ubi check in an if statement, e.g. if ubi check rootfs; then; echo "exists"; else; echo "not there"; fi
-
Alexey Brodkin authored
This is important to have entry point in the beginning of .text section because it allows simple loading and execution of U-Boot. For example pre-bootloader loads U-Boot in memory starting from offset 0x81000000 and then just jumps to the same address. Otherwise pre-bootloader would need to find-out where entry-point is. In its turn if it deals with binary image of U-Boot there's no way for pre-bootloader to get required value. Signed-off-by:
Alexey Brodkin <abrodkin@synopsys.com>
-
Simon Glass authored
This function should not return a value. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Thomas Chou <thomas@wytron.com.tw>
-
Albert ARIBAUD \(3ADEV\) authored
Work_92105 from Work Microwave is an LPC3250- based board with the following features: - 64MB or 128MB SDR DRAM - 1 GB SLC NAND, managed through MLC controller. - Ethernet - Ethernet + PHY SMSC8710 - I2C: - EEPROM (24M01-compatible) - RTC (DS1374-compatible) - Temperature sensor (DS620) - DACs (2 x MAX518) - SPI (through SSP interface) - Port expander MAX6957 - LCD display (HD44780-compatible), controlled through the port expander and DACs This board has SPL support, and uses the LPC32XX boot image format. Signed-off-by:
Albert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr>
-
Albert ARIBAUD \(3ADEV\) authored
introduce CONFIG_SPL_PANIC_ON_RAW_IMAGE. An SPL which define this will panic() if the image it has loaded does not have a mkimage signature. Signed-off-by:
Albert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr>
-
Albert ARIBAUD \(3ADEV\) authored
Signed-off-by:
Albert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr>
-
Albert ARIBAUD \(3ADEV\) authored
Signed-off-by:
Albert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr>
-
Albert ARIBAUD \(3ADEV\) authored
Reviewed-by:
Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com> Signed-off-by:
Albert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr>
-
Albert ARIBAUD \(3ADEV\) authored
This driver only supports Driver Model, not legacy model. Signed-off-by:
Albert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr>
-
Albert ARIBAUD \(3ADEV\) authored
Signed-off-by:
Albert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr>
-
Albert ARIBAUD \(3ADEV\) authored
The controller's Reed-Solomon ECC hardware is used except of course for raw reads and writes. It covers in- and out-of-band data together. The SPL framework is supported. Signed-off-by:
Albert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr>
-
Albert ARIBAUD \(3ADEV\) authored
Signed-off-by:
Albert ARIBAUD (3ADEV) <albert.aribaud@3adev.fr>
-
Albert ARIBAUD authored
-
- Apr 09, 2015
-
-
Grazvydas Ignotas authored
This allows to clean up the config a good deal and also converts pandora to Generic Board. Signed-off-by:
Grazvydas Ignotas <notasas@gmail.com>
-