1. 29 Apr, 2019 18 commits
  2. 28 Apr, 2019 1 commit
  3. 20 Apr, 2019 1 commit
  4. 19 Apr, 2019 1 commit
  5. 18 Apr, 2019 6 commits
  6. 17 Apr, 2019 4 commits
    • Volodymyr Babchuk's avatar
      optee: allow to work without static shared memory · 9733b072
      Volodymyr Babchuk authored
      On virtualized systems it is possible that OP-TEE will provide
      only dynamic shared memory support. So it is fine to boot
      without static SHM enabled if dymanic one is supported.
      Signed-off-by: default avatarVolodymyr Babchuk <vlad.babchuk@gmail.com>
      Signed-off-by: default avatarJens Wiklander <jens.wiklander@linaro.org>
      9733b072
    • Jon Hunter's avatar
      soc/tegra: pmc: Move powergate initialisation to probe · 6ac2a01d
      Jon Hunter authored
      Commit 8df12745 ("soc/tegra: pmc: Enable XUSB partitions on boot")
      was added as a workaround to ensure that the XUSB powergates or domains
      were turned on early during boot because as this time the Tegra XHCI
      driver did not handle the power domains at all. Now that the Tegra XHCI
      driver has been updated to properly managed the power domains, the
      workaround to enable the XUSB power domain early has been removed. This
      also means that we can now move the initialisation of the powergates
      into the PMC driver probe. Therefore, move the powergate initialisation
      into the PMC driver probe and return any errors detected. To handle any
      errors, functions to cleanup and remove any power-domains registered
      with the generic power-domain framework have been added.
      
      Finally the initialisation of the 'powergates_available' bitmask is kept
      in the PMC early init function to allow the legacy PMC powergate APIs to
      be called during early boot for enabling secondary CPUs on 32-bit Tegra
      devices.
      Signed-off-by: default avatarJon Hunter <jonathanh@nvidia.com>
      Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
      6ac2a01d
    • Jon Hunter's avatar
      soc/tegra: pmc: Remove reset sysfs entries on error · a46b51cd
      Jon Hunter authored
      Commit 5f84bb1a ("soc/tegra: pmc: Add sysfs entries for reset info")
      added sysfs entries for Tegra reset source and level. However, these
      sysfs are not removed on error and so if the registering of PMC device
      is probe deferred, then the next time we attempt to probe the PMC device
      warnings such as the following will be displayed on boot ...
      
        sysfs: cannot create duplicate filename '/devices/platform/7000e400.pmc/reset_reason'
      
      Fix this by calling device_remove_file() for each sysfs entry added on
      failure. Note that we call device_remove_file() unconditionally without
      checking if the sysfs entry was created in the first place, but this
      should be OK because kernfs_remove_by_name_ns() will fail silently.
      
      Fixes: 5f84bb1a ("soc/tegra: pmc: Add sysfs entries for reset info")
      Signed-off-by: default avatarJon Hunter <jonathanh@nvidia.com>
      Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
      a46b51cd
    • Jon Hunter's avatar
      soc/tegra: pmc: Fix reset sources and levels · 00cdaa1b
      Jon Hunter authored
      Commit 5f84bb1a ("soc/tegra: pmc: Add sysfs entries for reset info")
      added support for reading the Tegra reset source and level from sysfs.
      However, there are a few issues with this commit which are ...
      1. The number of reset sources for Tegra210 is defined as 5 but it
         should be 6.
      2. The number of reset sources for Tegra186 is defined as 13 but it
         should be 15.
      3. The SoC data variables num_reset_sources and num_reset_levels are
         defined but never used.
      
      Fix the above by ...
      
      1. Removing the reset source 'AOTAG' from the tegra30_reset_sources
         because this is only applicable for Tegra210.
      2. Adding a new tegra210_reset_sources structure for Tegra210 reset
         sources.
      3. Correct the number of reset sources for Tegra210 and Tegra186 by
         using the ARRAY_SIZE macro.
      4. Updating the functions reset_reason_show() and reset_level_show()
         to check whether the value read is valid. While we are at it
         clean-up these functions to remove an unnecessary u32 variable.
      
      Fixes: 5f84bb1a ("soc/tegra: pmc: Add sysfs entries for reset info")
      Signed-off-by: default avatarJon Hunter <jonathanh@nvidia.com>
      Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
      00cdaa1b
  7. 16 Apr, 2019 2 commits
  8. 15 Apr, 2019 3 commits
  9. 12 Apr, 2019 4 commits