1. 02 7月, 2014 2 次提交
    • S
      usb: ci_udc: don't assume QTDs are adjacent when transmitting ZLPs · 8d7c39d3
      Stephen Warren 提交于
      Fix ci_ep_submit_next_request()'s ZLP transmission code to explicitly
      call ci_get_qtd() to find the address of the other QTD to use. This
      will allow us to correctly align each QTD individually in the future,
      which may involve leaving a gap between the QTDs.
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      8d7c39d3
    • S
      usb: ci_udc: fix ci_flush_{qh,qtd} calls in ci_udc_probe() · d7beeb93
      Stephen Warren 提交于
      ci_udc_probe() initializes a pair of QHs and QTDs for each EP. After
      each pair has been initialized, the pair is cache-flushed. The
      conversion from QH/QTD index [0..2*NUM_END_POINTS) to EP index
      [0..NUM_ENDPOINTS] is incorrect; it simply subtracts 1 (which yields
      the QH/QTD index of the first entry in the pair) rather than dividing
      by two (which scales the range). Fix this.
      
      On my system, this avoids cache debug prints due to requests to flush
      unaligned ranges. This is caused because the flush calls happen before
      the items[] array entries are initialized for all but EP0.
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      d7beeb93
  2. 26 6月, 2014 11 次提交
  3. 25 6月, 2014 2 次提交
  4. 24 6月, 2014 4 次提交
    • M
      sandbox: change local_irq_save() to macro · 1638d980
      Masahiro Yamada 提交于
      local_irq_save() should be a macro, not a function
      because local_irq_save() saves flag to the given argument.
      
      GCC is silent about this issue, but Clang warns:
      
      In file included from lib/asm-offsets.c:15:
      In file included from include/common.h:20:
      In file included from include/linux/bitops.h:110:
      arch/sandbox/include/asm/bitops.h:59:17:
       warning: variable 'flags' is uninitialized when used here
            [-Wuninitialized]
              local_irq_save(flags);
                             ^~~~~
      
      That change causes another warning:
      
      In file included from include/linux/bitops.h:110:0,
                       from include/common.h:20,
                       from lib/asm-offsets.c:15:
      arch/sandbox/include/asm/bitops.h: In function ‘test_and_set_bit’:
      arch/sandbox/include/asm/bitops.h:56:16: warning: unused variable ‘flags’ [-Wunused-variable]
      
      So, flags should be set to __always_unused.
      Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Jeroen Hofstee <jeroen@myspectrum.nl>
      Acked-by: NSimon Glass <sjg@chromium.org>
      Acked-by: NJeroen Hofstee <jeroen@myspectrum.nl>
      1638d980
    • S
      sandbox: terminate os_dirent_ls() result list · 9c38c070
      Stephen Warren 提交于
      Each node in the linked-list that os_dirent_ls() returns has its next
      pointer set only when the next node is created. For the last node in the
      list, there is no next node, so this never happens, and the next pointer
      is never initialized. Explicitly initialize the next pointer so that it
      isn't dangling. Without this, "sb ls" might crash.
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      Acked-by: NSimon Glass <sjg@chromium.org>
      9c38c070
    • S
      sandbox: restore ability to access host fs through standard commands · 4d907025
      Stephen Warren 提交于
      Commit 95fac6ab "sandbox: Use os functions to read host device tree"
      removed the ability for get_device_and_partition() to handle the "host"
      device type, and redirect accesses to it to the host filesystem. This
      broke some unit tests that use this feature. So, revert that change. The
      code added back by this patch is slightly different to pacify checkpatch.
      
      However, we're then left with "host" being both:
      - A pseudo device that accesses the hosts real filesystem.
      - An emulated block device, which accesses "sectors" inside a file stored
        on the host.
      
      In order to resolve this discrepancy, rename the pseudo device from host
      to hostfs, and adjust the unit-tests for this change.
      
      The "help sb" output is modified to reflect this rename, and state where
      the host and hostfs devices should be used.
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      Tested-by: NJosh Wu <josh.wu@atmel.com>
      Acked-by: NSimon Glass <sjg@chromium.org>
      Tested-by: NSimon Glass <sjg@chromium.org>
      4d907025
    • V
      x86: Enable 32-bit build using x86_64 multilib toolchain · dbb7234b
      Vasili Galka 提交于
      Until now building the x86 arch boards required 32-bit toolchain. As
      many x86_64 toolchains come with 32-bit support (multilib) that's a
      good idea to enable build with such toolchains.
      
      The change required was to specify the usage of 32-bit explicitly to
      the compiler and the linker (-m32 and -m elf_i386 flags) and locate
      the right libgcc path.
      Signed-off-by: NVasili Galka <vvv444@gmail.com>
      Acked-by: NSimon Glass <sjg@chromium.org>
      dbb7234b
  5. 23 6月, 2014 2 次提交
  6. 22 6月, 2014 2 次提交
  7. 21 6月, 2014 16 次提交
  8. 20 6月, 2014 1 次提交