10 Oct, 2014

1 commit

  • The DMA/FIS buffers are set in ahci_port_start() which is called
    after ahci_host_init(). So don't start the DMA engine here
    (i.e. don't set FIS_RX)

    This fixes the following error at kernel boot on OMAP platforms (e.g. DRA7x)
    WARNING: CPU: 0 PID: 0 at drivers/bus/omap_l3_noc.c:147 l3_interrupt_handler+0x260/0x358()
    44000000.ocp:L3 Custom Error: MASTER SATA TARGET GPMC (Idle): Data Access in User mode during Functional access

    Signed-off-by: Roger Quadros

    Roger Quadros
     

07 Oct, 2014

5 commits


06 Oct, 2014

27 commits

  • Add code necessary to program the FPGA part of SoCFPGA from U-Boot
    with an RBF blob. This patch also integrates the code into the
    FPGA driver framework in U-Boot so it can be used via the 'fpga'
    command.

    Signed-off-by: Pavel Machek
    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek

    V2: Move the not-CPU specific stuff into drivers/fpga/ and base
    this on the cleaned up altera FPGA support.

    Pavel Machek
     
  • Make the SoCFPGA MMC stub pick clock via the clock manager
    frequency accessors instead of hard-coding the frequency.

    Also fix calloc() misuse.

    Signed-off-by: Pavel Machek
    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Dinh Nguyen

    Pavel Machek
     
  • …ic/drivers/net-20141006', 'topic/tools/mkimage-20141006' and 'topic/arm/cache-20141006' into HEAD

    Marek Vasut
     
  • Add a few new variables to make the cache handling less cryptic.
    Add a variable for DMA and DATA descriptor start and end, so the
    correctness of the code is easier to inspect.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Cc: Joe Hershberger
    Acked-by: Pavel Machek
    Acked-by: Chin Liang See

    Marek Vasut
     
  • Fix remaining cache alignment issues in the DWC Ethernet driver.
    Please note that the cache handling in the driver is making the
    code hideous and thus the next patch cleans that up. In order to
    make this change reviewable though, the cleanup is split from it.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Cc: Joe Hershberger
    Acked-by: Pavel Machek

    Marek Vasut
     
  • Old saying says that more than three exclamation marks in a row are
    sign of mental disease. Cleanup micrel.c.

    Signed-off-by: Pavel Machek
    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Cc: Joe Hershberger
    Acked-by: Chin Liang See

    Pavel Machek
     
  • The dw_mmc driver was responding to errors with debug(). Change that
    to prinf()/puts() respectively so that any errors are immediately
    obvious. Also adjust english in comments.

    Signed-off-by: Pavel Machek
    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Cc: Pantelis Antoniou
    Acked-by: Chin Liang See

    Pavel Machek
     
  • Add a table of FPGA family with matching functions associated with
    it and make all the code just look up the family in that table and
    call the associated function instead of the horrible switch voodoo
    which was duplicated all over the place.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Pavel Machek

    Marek Vasut
     
  • Make the function return either 0 or -EINVAL, that is, normal
    expected error codes and success codes instead of true/false
    nonsense.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Pavel Machek

    Marek Vasut
     
  • Move the function to the top of the file to avoid forward declaration.
    No functional change.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Pavel Machek

    Marek Vasut
     
  • Further improve the indentation in the rest of the file, where
    the indentation is initially a bit less brutal. There is no
    functional change in this patch.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Pavel Machek

    Marek Vasut
     
  • Boldly go, where no programmer has gone before and just clean up
    the indentation mayhem. No functional change.

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek

    Marek Vasut
     
  • Clean up the printf() statements and get rid of the PRINTF()
    macro by replacing it with debug_cond().

    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Pavel Machek

    Marek Vasut
     
  • Trying to enumerate USB devices connected via ULPI to T20 failed as
    follows:

    USB2: ULPI integrity check failed

    Git bisecting revealed the following commit being at odds:

    commit 2d34151f7501ddaa599897f0d89ad576126b03eb
    usb: tegra: refactor PHY type selection

    Looking at above commit one quickly identifies a copy paste error which
    this patch fixes. Happy ULPIing again (;-p).

    Signed-off-by: Marcel Ziswiler

    Marcel Ziswiler
     
  • The processing of the max-download-size variable requires a
    radix specifier, or the fastboot host tool will interpret
    it as an octal number.

    See function get_target_sparse_limit() in file fastboot/fastboot.c
    in the AOSP:
    https://android.googlesource.com/platform/system/core/+/master

    Signed-off-by: Eric Nelson

    Eric Nelson
     
  • Current Android Fastboot seems to use 'max-download-size' instead
    of 'downloadsize' variable to indicate the maximum size of sparse
    segments.

    See function get_target_sparse_limit() in file fastboot/fastboot.c
    in the AOSP:
    https://android.googlesource.com/platform/system/core/+/master

    Signed-off-by: Eric Nelson

    Eric Nelson
     
  • Force full-speed (12 Mbit/s) operation if CONFIG_USB_GADGET_DUALSPEED
    is not defined.

    The controller is capable of high-speed (480 Mbit/s) operation,
    but some designs may require the use of lower-speed operation.

    Signed-off-by: Eric Nelson

    Eric Nelson
     
  • When download is ongoing, if the actual size of one transfer
    is not the same as BYTES_PER_DOT, which will cause the dot
    won't print anymore. Then it will let the user thinking it
    is stuck, actually it is transfering without dot printed.

    So, improve the method to show the progress bar (print dot).

    Signed-off-by: Bo Shen
    Acked-by: Marek Vasut

    Bo Shen
     
  • Without this flag, tools like Alex Page's USB Image Tool
    won't see drives exposed over USB Gadget as removable,
    and won't allow access to them.
    http://www.alexpage.de/usb-image-tool/

    The code was pulled from the main-line kernel:
    drivers/usb/gadget/function/f_mass_storage.c

    Signed-off-by: Eric Nelson

    Eric Nelson
     
  • DFU now can use also fullspeed.

    Signed-off-by: Heiko Schocher
    Cc: Tom Rini
    Cc: Lukasz Majewski
    Cc: Marek Vasut
    Cc: Liu Bin
    Cc: Lukas Stockmann

    Heiko Schocher
     
  • This code is not used anymore in the current DFU implementation and
    can be safely removed.

    Signed-off-by: Lukasz Majewski

    Lukasz Majewski
     
  • In some cases we really want to move forward with a deregister, add a force
    parameter to allow this, and replace the dev with a nulldev in this case.

    Signed-off-by: Hans de Goede

    Hans de Goede
     
  • Periodic schedules tracks how many int_queue-s are active, and decides whether
    or not to en/disable the periodic schedule based on this. This is clearly
    a per controller thing.

    Signed-off-by: Hans de Goede

    Hans de Goede
     
  • When we first start an int queue, the qh's overlay area is all zeros. This
    gets filled by the hc with the actual qtd values as soon as it advances
    the queue, but we may call poll_int_queue before then, in which case we
    would think the transfer has completed as the hc has not yet copied the
    qt_token to the overlay, so the active flag is not set.

    This fixes this by checking the actual qtd token, rather then the overlay.
    This also fixes a (theoretical) race where we see the completion in the
    overlay and free and re-use the qtd before the hc has completed writing back
    the overlay to the actual qtd.

    Signed-off-by: Hans de Goede

    Hans de Goede
     
  • Signed-off-by: Hans de Goede

    Hans de Goede
     
  • For full / low speed devices we need to get the devnum and portnr of the tt,
    so of the first upstream usb-2 hub, not of the parent device (which may be a
    usb-1 hub).

    Signed-off-by: Hans de Goede

    Hans de Goede
     
  • Partially revert commit 0d01f66d235118 (CFI: cfi_flash write fix for AMD
    legacy).

    flash_full_status_check() used to skip status register parsing when
    flash_status_check() returns OK. This is wrong since flash_status_check()
    must return OK for other status bits to be valid.

    Cc: Ed Swarthout
    Signed-off-by: Baruch Siach
    Signed-off-by: Stefan Roese

    Baruch Siach
     

05 Oct, 2014

3 commits


03 Oct, 2014

4 commits

  • dw_mmc driver was responding to errors with debug(). Change that to
    prinf so that any errors are immediately obvious. Also adjust english
    in comments.

    Signed-off-by: Pavel Machek
    Acked-by: Pantelis Antoniou

    Pavel Machek
     
  • After setting the bus width, the extended CSD register is read. Some selected
    fields are compared with previously read extended CSD register fields. In this
    comparison the EXT_CSD_ERASE_GROUP_DEF field is compared. But this field is
    previously written under certain circumstances. And then the comparison fails.

    Only compare read-only fields. Therefore compare field EXT_CSD_HC_WP_GRP_SIZE
    instead of field EXT_CSD_ERASE_GROUP_DEF.

    Signed-off-by: Mario Schuknecht
    Acked-by: Pantelis Antoniou

    Mario Schuknecht
     
  • In function mvebu_mmc_write notice command timeout. It is possible that a
    command is done, but a timeout occurred.

    Enable timeout in set bus function.

    Set window registers. Without that I could not use the driver on a Kirkwood
    88F6282 SoC.

    Set high capacity and 52MHz driver feature.

    Signed-off-by: Mario Schuknecht
    Reviewed-by: Stefan Roese
    Acked-by: Pantelis Antoniou

    Mario Schuknecht
     
  • The capacity and lba for an MMC device with part_num 0 reflects the
    whole device. When mmc_switch_part() successfully switches to a
    partition, the capacity is changed to that partition. As partition 0
    does not physically exist, attempts to switch back to the whole device
    will indicate an error, but the capacity setting for the whole device
    must still be restored to match the partition.

    Signed-off-by: Peter A. Bigot
    Tested-by: Tom Rini
    Acked-by: Pantelis Antoniou

    Peter Bigot