1. 04 7月, 2016 4 次提交
  2. 01 7月, 2016 4 次提交
  3. 30 6月, 2016 3 次提交
    • J
      drm/tegra: Prepare DPAUX for supporting generic PM domains · 9b99044a
      Jon Hunter 提交于
      To utilise the DPAUX on Tegra, the SOR power partition must be enabled.
      Now that Tegra supports the generic PM domain framework we manage the
      SOR power partition via this framework for DPAUX. However, the sequence
      for gating/ungating the SOR power partition requires that the DPAUX
      reset is asserted/de-asserted at the time the SOR power partition is
      gated/ungated, respectively. Now that the reset control core assumes
      that resets are exclusive, the Tegra generic PM domain code and the
      DPAUX driver cannot request the same reset unless we mark the resets as
      shared. Sharing resets will not work in this case because we cannot
      guarantee that the reset will be asserted/de-asserted at the appropriate
      time. Therefore, given that the Tegra generic PM domain code will handle
      the DPAUX reset, do not request the reset in the DPAUX driver if the
      DPAUX device has a PM domain associated.
      Signed-off-by: NJon Hunter <jonathanh@nvidia.com>
      Signed-off-by: NThierry Reding <treding@nvidia.com>
      9b99044a
    • J
      drm/tegra: dpaux: Add helpers for setting up pads · 9d0e09c1
      Jon Hunter 提交于
      In preparation for adding pinctrl support for the DPAUX pads, add a
      couple of helpers functions to configure the pads and control their
      power.
      
      Please note that although a simple if-statement could be used instead
      of a case statement for configuring the pads as there are only two
      possible modes, a case statement is used because when integrating with
      the pinctrl framework, we need to be able to handle invalid modes that
      could be passed.
      Signed-off-by: NJon Hunter <jonathanh@nvidia.com>
      Signed-off-by: NThierry Reding <treding@nvidia.com>
      9d0e09c1
    • J
      drm/tegra: dpaux: Clean-up on probe failure · bcbd63df
      Jon Hunter 提交于
      If the probing of the DPAUX fails, then clocks are left enabled and the
      DPAUX reset de-asserted. Add code to perform the necessary clean-up on
      probe failure by disabling clocks and asserting the reset.
      Signed-off-by: NJon Hunter <jonathanh@nvidia.com>
      Signed-off-by: NThierry Reding <treding@nvidia.com>
      bcbd63df
  4. 28 5月, 2016 1 次提交
    • A
      remove lots of IS_ERR_VALUE abuses · 287980e4
      Arnd Bergmann 提交于
      Most users of IS_ERR_VALUE() in the kernel are wrong, as they
      pass an 'int' into a function that takes an 'unsigned long'
      argument. This happens to work because the type is sign-extended
      on 64-bit architectures before it gets converted into an
      unsigned type.
      
      However, anything that passes an 'unsigned short' or 'unsigned int'
      argument into IS_ERR_VALUE() is guaranteed to be broken, as are
      8-bit integers and types that are wider than 'unsigned long'.
      
      Andrzej Hajda has already fixed a lot of the worst abusers that
      were causing actual bugs, but it would be nice to prevent any
      users that are not passing 'unsigned long' arguments.
      
      This patch changes all users of IS_ERR_VALUE() that I could find
      on 32-bit ARM randconfig builds and x86 allmodconfig. For the
      moment, this doesn't change the definition of IS_ERR_VALUE()
      because there are probably still architecture specific users
      elsewhere.
      
      Almost all the warnings I got are for files that are better off
      using 'if (err)' or 'if (err < 0)'.
      The only legitimate user I could find that we get a warning for
      is the (32-bit only) freescale fman driver, so I did not remove
      the IS_ERR_VALUE() there but changed the type to 'unsigned long'.
      For 9pfs, I just worked around one user whose calling conventions
      are so obscure that I did not dare change the behavior.
      
      I was using this definition for testing:
      
       #define IS_ERR_VALUE(x) ((unsigned long*)NULL == (typeof (x)*)NULL && \
             unlikely((unsigned long long)(x) >= (unsigned long long)(typeof(x))-MAX_ERRNO))
      
      which ends up making all 16-bit or wider types work correctly with
      the most plausible interpretation of what IS_ERR_VALUE() was supposed
      to return according to its users, but also causes a compile-time
      warning for any users that do not pass an 'unsigned long' argument.
      
      I suggested this approach earlier this year, but back then we ended
      up deciding to just fix the users that are obviously broken. After
      the initial warning that caused me to get involved in the discussion
      (fs/gfs2/dir.c) showed up again in the mainline kernel, Linus
      asked me to send the whole thing again.
      
      [ Updated the 9p parts as per Al Viro  - Linus ]
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Cc: Andrzej Hajda <a.hajda@samsung.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Link: https://lkml.org/lkml/2016/1/7/363
      Link: https://lkml.org/lkml/2016/5/27/486
      Acked-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> # For nvmem part
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      287980e4
  5. 25 5月, 2016 3 次提交
  6. 24 5月, 2016 3 次提交
  7. 23 5月, 2016 22 次提交