1. 10 11月, 2020 1 次提交
  2. 14 9月, 2020 1 次提交
  3. 25 7月, 2020 1 次提交
  4. 14 7月, 2020 2 次提交
  5. 21 4月, 2020 2 次提交
  6. 08 1月, 2020 5 次提交
  7. 05 11月, 2019 1 次提交
  8. 07 10月, 2019 2 次提交
  9. 23 7月, 2019 3 次提交
    • S
      firmware: qcom_scm: Cleanup code in qcom_scm_assign_mem() · af311ff9
      Stephen Boyd 提交于
      There are some questionable coding styles in this function. It looks
      quite odd to deref a pointer with array indexing that only uses the
      first element. Also, destroying an input/output variable halfway through
      the function and then overwriting it on success is not clear. It's
      better to use a local variable and the kernel macros to step through
      each bit set in a bitmask and clearly show where outputs are set.
      
      Cc: Ian Jackson <ian.jackson@citrix.com>
      Cc: Julien Grall <julien.grall@arm.com>
      Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
      Cc: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
      Tested-by: NBjorn Andersson <bjorn.andersson@linaro.org>
      Signed-off-by: NStephen Boyd <swboyd@chromium.org>
      [bjorn: Changed for_each_set_bit() size to BITS_PER_LONG]
      Signed-off-by: NBjorn Andersson <bjorn.andersson@linaro.org>
      af311ff9
    • S
      firmware: qcom_scm: Fix some typos in docs and printks · c8b08fc0
      Stephen Boyd 提交于
      Some words are misspelled and we put a full stop after a return value
      integer. Fix these things up so it doesn't look so odd.
      
      Cc: Ian Jackson <ian.jackson@citrix.com>
      Cc: Julien Grall <julien.grall@arm.com>
      Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
      Cc: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
      Signed-off-by: NStephen Boyd <swboyd@chromium.org>
      Signed-off-by: NBjorn Andersson <bjorn.andersson@linaro.org>
      c8b08fc0
    • S
      firmware: qcom_scm: Use proper types for dma mappings · 6e37ccf7
      Stephen Boyd 提交于
      We need to use the proper types and convert between physical addresses
      and dma addresses here to avoid mismatch warnings. This is especially
      important on systems with a different size for dma addresses and
      physical addresses. Otherwise, we get the following warning:
      
        drivers/firmware/qcom_scm.c: In function "qcom_scm_assign_mem":
        drivers/firmware/qcom_scm.c:469:47: error: passing argument 3 of "dma_alloc_coherent" from incompatible pointer type [-Werror=incompatible-pointer-types]
      
      We also fix the size argument to dma_free_coherent() because that size
      doesn't need to be aligned after it's already aligned on the allocation
      size. In fact, dma debugging expects the same arguments to be passed to
      both the allocation and freeing sides of the functions so changing the
      size is incorrect regardless.
      Reported-by: NIan Jackson <ian.jackson@citrix.com>
      Cc: Ian Jackson <ian.jackson@citrix.com>
      Cc: Julien Grall <julien.grall@arm.com>
      Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
      Cc: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
      Tested-by: NBjorn Andersson <bjorn.andersson@linaro.org>
      Signed-off-by: NStephen Boyd <swboyd@chromium.org>
      Signed-off-by: NBjorn Andersson <bjorn.andersson@linaro.org>
      6e37ccf7
  10. 05 6月, 2019 1 次提交
  11. 14 9月, 2018 1 次提交
    • B
      firmware: qcom: scm: Refactor clock handling · 60cd420c
      Bjorn Andersson 提交于
      At one point in time all "future" platforms required three clocks, so
      the binding and driver was written to treat this as the default case.
      But new platforms has no clock requirements, which currently makes them
      all a special case, causing the need for a patch in the binding and
      driver for each new platform added.
      
      This patch reworks the driver logic so that it will attempt to acquire
      all three clocks and fail based on the given compatible. This allow us
      to drop the clock requirement from "qcom,scm", in a way that will remain
      backwards compatible with existing DT files.
      
      Specific compatibles are added for apq8084, msm8916 and msm8974 to match
      the updated binding and although equivalent to qcom,scm both ipq4019 and
      msm8996 are kept as these have been used without fallback to qcom,scm.
      
      The result of this patch is that new platforms, that require no clocks,
      can be use the fallback compatible of "qcom,scm".
      Signed-off-by: NBjorn Andersson <bjorn.andersson@linaro.org>
      Reviewed-by: NStephen Boyd <sboyd@kernel.org>
      Signed-off-by: NAndy Gross <andy.gross@linaro.org>
      60cd420c
  12. 25 4月, 2018 1 次提交
  13. 21 12月, 2017 1 次提交
  14. 31 10月, 2017 1 次提交
  15. 12 10月, 2017 2 次提交
  16. 29 3月, 2017 2 次提交
  17. 17 1月, 2017 2 次提交
  18. 24 11月, 2016 2 次提交
  19. 13 11月, 2016 1 次提交
  20. 24 8月, 2016 1 次提交
    • P
      firmware: qcom_scm: make it explicitly non-modular · dea85242
      Paul Gortmaker 提交于
      The Kconfig currently controlling compilation of this code is:
      
      drivers/firmware/Kconfig:config QCOM_SCM
      drivers/firmware/Kconfig:       bool
      
      ...meaning that it currently is not being built as a module by anyone.
      
      Lets remove the modular code that is essentially orphaned, so that
      when reading the driver there is no doubt it is builtin-only.
      
      Since module_init was not in use by this code, the init ordering
      remains unchanged with this commit.
      
      Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code.
      
      We also delete the MODULE_LICENSE tag etc. since all that information
      was (or is now) contained at the top of the file in the comments.
      
      Cc: Andy Gross <andy.gross@linaro.org>
      Cc: David Brown <david.brown@linaro.org>
      Cc: linux-arm-msm@vger.kernel.org
      Cc: linux-soc@vger.kernel.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NAndy Gross <andy.gross@linaro.org>
      dea85242
  21. 06 7月, 2016 2 次提交
  22. 25 6月, 2016 5 次提交