1. 19 May, 2016 5 commits
    • Marek Vasut's avatar
      devicetree: Add Creative Technology vendor id · f2c27767
      Marek Vasut authored
      Add vendor ID for Creative technology.
      Signed-off-by: default avatarMarek Vasut <marek.vasut@gmail.com>
      Cc: Antony Pavlov <antonynpavlov@gmail.com>
      Cc: Rob Herring <robh@kernel.org>
      Cc: devicetree@vger.kernel.org
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      f2c27767
    • Christian Lamparter's avatar
      gpio: dt-bindings: add ibm,ppc4xx-gpio binding · 9a0d4404
      Christian Lamparter authored
      This patch adds binding information for IBM/AMCC/APM GPIO
      Controllers of the PowerPC 4XX series and compatible SoCs.
      
      The "PowerPC 405EP Embedded Processor Data Sheet" has the
      following to say about the GPIO controllers: "
      
       - Controller functions and GPIO registers are programmed
         and accessed via memory-mapped OPB bus master accesses
      
       - All GPIOs are pin-shared with other functions. DCRs control
         whether a particular pin that has GPIO capabilities acts
         as a GPIO or is used for another purpose.
      
       - Each GPIO outputs is separately programmable to emulate
         an open-drain driver (i.e. drives to zero, threestated if
         output bit is 1)
      
      "
      The ppc4xx_gpio.c driver is part of the platform/sysdev drivers
      in arch/powerpc/sysdev.
      Signed-off-by: default avatarChristian Lamparter <chunkeey@googlemail.com>
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      9a0d4404
    • Javier Martinez Canillas's avatar
      of/unittest: Remove unnecessary module.h header inclusion · 27f4ec14
      Javier Martinez Canillas authored
      The OF_UNITTEST Kconfig symbol is bool so this unittest can only be
      built-in and not build as a module. Also, nothing defined in this
      header file used so is not necessary to include it.
      Signed-off-by: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      27f4ec14
    • Gavin Shan's avatar
      drivers/of: Fix build warning in populate_node() · dddc33e5
      Gavin Shan authored
      Function populate_node() is used to unflatten FDT blob to device
      tree. It supports maximal 64 level of device nodes. There is one
      array @fpsizes[64] tracking the full name length of last unflattened
      device node in the corresponding level (index of element in the
      array - 1). Build warning is seen with CONFIG_FRAME_WARN=1024 like
      below on ARM64 as Geert reported. The issue can be reproduced on
      PPC64 as well.
      
        $ make drivers/of/fdt.o
        drivers/of/fdt.c:443:1: warning: the frame size of 1136 bytes is \
        larger than 1024 bytes [-Wframe-larger-than=]
      
      This changes the data type of @fpsizes[i] from "unsigned long" to
      "unsigned int" to avoid the build warning. The return value type
      of populate_node() and its @fpsize argument is adjusted accordingly.
      With this applied, 256 bytes saved from the stack frame on ARM64 and
      PPC64 platforms and the above warning isn't seen.
      
      Fixes: 50800082 ("drivers/of: Avoid recursively calling unflatten_dt_node()")
      Reported-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: default avatarGavin Shan <gwshan@linux.vnet.ibm.com>
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      dddc33e5
    • Rhyland Klein's avatar
      drivers/of: Fix depth when unflattening devicetree · 78c44d91
      Rhyland Klein authored
      When the implementation for unflatten_dt_node() changed from being
      recursive to being non-recursive, it had a side effect of increasing the
      depth passed to fdt_next_node() by 1. This is fine most of the time, but
      it seems that when the end of the dtb is being parsed, it will cause the
      FDT_END condition in fdt_next_node() to return a different value
      (returning nextoffset instead of -FDT_ERR_NOTFOUND). This ends up passing
      an FDT_ERR_TRUNCATED error back to the unflatten_dt_node() which then
      sees that and complains "Error -8 processing FDT" causing boot to fail.
      
      This patch simply avoids incrementing depth and uses modified accesses
      for local array indices so that the depth is the same as it was before
      the change as far as fdt_next_node() is concerned.
      
      This problem was discovered trying to boot Tegra210-Smaug platforms.
      
      Fixes: 50800082 ("drivers/of: Avoid recursively calling unflatten_dt_node()")
      Signed-off-by: default avatarRhyland Klein <rklein@nvidia.com>
      [robh: squashed in KASAN fix from Rhyland]
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      78c44d91
  2. 16 May, 2016 7 commits
  3. 02 May, 2016 1 commit
    • Arnd Bergmann's avatar
      of: include errno.h in of_graph.h · 011d6f5c
      Arnd Bergmann authored
      When CONFIG_OF is disabled, we have to include linux/errno.h before
      including of_graph.h, or get build errors like in the newly added
      sun4i drm driver:
      
      In file included from ../drivers/gpu/drm/sun4i/sun4i_drv.c:14:0:
      include/linux/of_graph.h: In function 'of_graph_parse_endpoint':
      include/linux/of_graph.h:58:10: error: 'ENOSYS' undeclared (first use in this function)
      
      A better solution is to ensure that the header can be included
      by itself, so let's include linux/errno.h here to fix the error
      we just got, and any similar future error.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Fixes: 9026e0d1 ("drm: Add Allwinner A10 Display Engine support")
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      011d6f5c
  4. 25 Apr, 2016 21 commits
  5. 19 Apr, 2016 6 commits