1. 05 6月, 2013 2 次提交
    • G
      spi: mpc512x: improve throughput in the RX/TX func · 5df24ea6
      Gerhard Sittig 提交于
      change the MPC512x SPI controller's transmission routine to increase
      throughput: allow the RX byte counter to "lag behind" the TX byte
      counter while iterating over the transfer's data, only wait for the
      remaining RX bytes at the very end of the transfer
      
      this approach eliminates delays in the milliseconds range, transfer
      times for e.g. 16MB of SPI flash data dropped from 31s to 9s, correct
      operation was tested by continuously transferring and comparing data
      from an SPI flash (more than 200GB in some 45 hours)
      
      background information on the motivation:
      
      one might assume that all the RX data should have been received when the
      TX data was sent, given the fact that we are the SPI master and provide
      all of the clock, but in practise there's a difference
      
      the ISR is triggered when the TX FIFO became empty, while transmission
      of the last item still occurs (from the TX hold and shift registers),
      sampling RX data on the opposite clock edge compared to the TX data adds
      another delay (half a bit period), and RX data needs to propagate from
      the reception buffer to the RX FIFO depending on the specific SoC
      implementation
      
      to cut it short: a difference between TX and RX byte counters during
      transmission is not just acceptable but should be considered the regular
      case, only the very end of the transfer needs to make sure that all of
      the RX data was received before deasserting the chip select and telling
      the caller that transmission has completed
      Signed-off-by: NGerhard Sittig <gsi@denx.de>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      5df24ea6
    • G
      spi: mpc512x: minor prep before feature change · c36e93a0
      Gerhard Sittig 提交于
      mechanical edits before changing functionality, to reduce diffs
      - rename variables to later tell remaining TX and RX apart
      - use size_t for the current TX and RX length
        (for better compatibility with the min() macro)
      - remove unused members from the master data (sysclk, eofbyte)
      - silence a checkpatch warning (braces around single statement)
      Signed-off-by: NGerhard Sittig <gsi@denx.de>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      c36e93a0
  2. 02 6月, 2013 2 次提交
    • L
      Linux 3.10-rc4 · d683b96b
      Linus Torvalds 提交于
      d683b96b
    • L
      Merge branch 'for-3.10' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux · cc863973
      Linus Torvalds 提交于
      Pull parisc fixes from Helge Deller:
       "This patcheset includes fixes for:
      
         - the PCI/LBA which brings back the stifb graphics framebuffer
           console
         - possible memory overflows in parisc kernel init code
         - parport support on older GSC machines
         - avoids that users by mistake enable PARPORT_PC_SUPERIO on parisc
         - MAINTAINERS file list updates for parisc."
      
      * 'for-3.10' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux:
        parisc: parport0: fix this legacy no-device port driver!
        parport_pc: disable PARPORT_PC_SUPERIO on parisc architecture
        parisc/PCI: lba: fix: convert to pci_create_root_bus() for correct root bus resources (v2)
        parisc/PCI: Set type for LBA bus_num resource
        MAINTAINERS: update parisc architecture file list
        parisc: kernel: using strlcpy() instead of strcpy()
        parisc: rename "CONFIG_PA7100" to "CONFIG_PA7000"
        parisc: fix kernel BUG at arch/parisc/include/asm/mmzone.h:50
        parisc: memory overflow, 'name' length is too short for using
      cc863973
  3. 01 6月, 2013 36 次提交