lkml.org 
[lkml]   [2020]   [Sep]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v3 1/8] iommu/arm-smmu: Refactor context bank allocation
    On 2020-09-04 21:25, Bjorn Andersson wrote:
    > Extract the conditional invocation of the platform defined
    > alloc_context_bank() to a separate function to keep
    > arm_smmu_init_domain_context() cleaner.
    >
    > Instead pass a reference to the arm_smmu_device as parameter to the
    > call. Also remove the count parameter, as this can be read from the
    > newly passed object.
    >
    > This allows us to not assign smmu_domain->smmu before attempting to
    > allocate the context bank and as such we don't need to roll back this
    > assignment on failure.
    >
    > Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
    > ---

    Reviewed-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>
    Tested-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>

    --
    QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a
    member
    of Code Aurora Forum, hosted by The Linux Foundation

    \
     
     \ /
      Last update: 2020-09-11 10:19    [W:4.128 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site