1. 25 1月, 2016 31 次提交
  2. 24 1月, 2016 3 次提交
  3. 23 1月, 2016 3 次提交
  4. 22 1月, 2016 3 次提交
    • A
      soc: qcom/spm: shut up uninitialized variable warning · 00affcac
      Arnd Bergmann 提交于
      gcc warns about the 'found' variable possibly being used uninitialized:
      
      drivers/soc/qcom/spm.c: In function 'spm_dev_probe':
      drivers/soc/qcom/spm.c:305:5: error: 'found' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      
      However, the code is correct because we know that there is
      always at least one online CPU. This initializes the 'found'
      variable to zero before the loop so the compiler knows
      it does not have to warn about it.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      00affcac
    • A
      NTB: Fix macro parameter conflict with field name · 03beaec8
      Allen Hubbe 提交于
      If the parameter given to the macro is replaced throughout the macro as
      it is evaluated.  The intent is that the macro parameter should replace
      the only the first parameter to container_of().  However, the way the
      macro was written, it would also inadvertantly replace a structure field
      name.  If a parameter of any other name is given to the macro, it will
      fail to compile, if the structure does not contain a field of the same
      name.  At worst, it will compile, and hide improper access of an
      unintended field in the structure.
      
      Change the macro parameter name, so it does not conflict with the
      structure field name.
      Signed-off-by: NAllen Hubbe <Allen.Hubbe@emc.com>
      Acked-by: NDave Jiang <dave.jiang@intel.com>
      Signed-off-by: NJon Mason <jdmason@kudzu.us>
      03beaec8
    • X
      NTB: Add support for AMD PCI-Express Non-Transparent Bridge · a1b36958
      Xiangliang Yu 提交于
      This adds support for AMD's PCI-Express Non-Transparent Bridge
      (NTB) device on the Zeppelin platform. The driver connnects to the
      standard NTB sub-system interface, with modification to add hooks
      for power management in a separate patch. The AMD NTB device has 3
      memory windows, 16 doorbell, 16 scratch-pad registers, and supports
      up to 16 PCIe lanes running a Gen3 speeds.
      Signed-off-by: NXiangliang Yu <Xiangliang.Yu@amd.com>
      Reviewed-by: NAllen Hubbe <Allen.Hubbe@emc.com>
      Signed-off-by: NJon Mason <jdmason@kudzu.us>
      a1b36958