From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3A54CC25B08 for ; Wed, 17 Aug 2022 11:09:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235131AbiHQLJD (ORCPT ); Wed, 17 Aug 2022 07:09:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235242AbiHQLJB (ORCPT ); Wed, 17 Aug 2022 07:09:01 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9006C51430 for ; Wed, 17 Aug 2022 04:09:00 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id d5so4240628wms.5 for ; Wed, 17 Aug 2022 04:09:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=WteKT+4JLVA9wGjzOghyLW0uiafqET9lTaWrhBtJk4U=; b=wTRvga5wMHoZtMVLL03Xy4b8gVmm2ULHgfoHcpDI++jIUm0SOD7yfLG5Ys71Uy46cI 5X1PTEIXC7yQn3969B9aurqgZ7etJLFNweSPZOEPE8+0YwT4EcW/76GEa5IoHdEeRWtA YjhLyaybUS5xish4T73nPFuZ49jbuoffs3E2vvKVai4KOTL8Gt7B7CjFmEIU9bCSAQn0 OvDEPRC8S6aQyBxISnZ8obqmhY1Y97aOvLUuUxBUYoGKjdw/pHSIN8XWHnOl4snrrmIE 599Hu0AdGrzV4k47RWnk402mN35O0jJKDSRvHQ/qhRMaKJfVzc1/wxSa1Ce5P1jbiHpv Uxow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=WteKT+4JLVA9wGjzOghyLW0uiafqET9lTaWrhBtJk4U=; b=C6GqI1CW/nPrnT57T6EtUwILCRHOzUm5H7+A3e8atBUqTqJSE8Ila5rEOoZyqI6KvU tdi6NH0yKzwpZDZKvrHjfYLfN+qYv6CXLtr/3h4H7lOG7JWdvJBlknc3kTg3kKXrBTzu qUgmO5hhjG+IlzCxLMG0hAzWm6rrCwZr8yAWCNJ37uxvGtBwRz4wnOnraUYyFUCrE+c7 Ywcrq1Gkftrm/pX++eLr5Ozb8KTF1i49nQ3qUU5Yrg2vW/EAbV8hjV1F2X7LYGOmwyl5 0zwBmGAQlzjxbPJ0tfnQddfI8VK2uQ4XH+H/coRNq3/x3ULhfvHhf0mWEj5nLbZFTsEb nYvw== X-Gm-Message-State: ACgBeo1tCUWwl2aiLzn+qNSZdFjYudCpvdGIHAOrcyaV+ikGFQU8nllD TBiJs5t4qNt4eUY7sDd4gFJ05w8igW1+CQ== X-Google-Smtp-Source: AA6agR4NGW5TXBJHvBkcxOr/0X71qoVLfzTASLnxl5VhIoA1sJ/NOYfw0x1xyH4uAMOuhVdzoT4oeg== X-Received: by 2002:a7b:ce05:0:b0:3a5:c069:25b3 with SMTP id m5-20020a7bce05000000b003a5c06925b3mr1788560wmc.87.1660734539082; Wed, 17 Aug 2022 04:08:59 -0700 (PDT) Received: from [192.168.86.238] (cpc90716-aztw32-2-0-cust825.18-1.cable.virginm.net. [86.26.103.58]) by smtp.googlemail.com with ESMTPSA id e2-20020a5d5942000000b0021e13efa17esm12660364wri.70.2022.08.17.04.08.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 Aug 2022 04:08:58 -0700 (PDT) Message-ID: Date: Wed, 17 Aug 2022 12:08:57 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH] misc: fastrpc: Use USER_PD define in fastrpc_get_info_from_dsp Content-Language: en-US To: Abel Vesa , Amol Maheshwari , Arnd Bergmann , Greg Kroah-Hartman Cc: linux-arm-msm@vger.kernel.org, Linux Kernel Mailing List References: <20220816105528.3222763-1-abel.vesa@linaro.org> From: Srinivas Kandagatla In-Reply-To: <20220816105528.3222763-1-abel.vesa@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On 16/08/2022 11:55, Abel Vesa wrote: > There are defines for each type of protection domain now. > Use the USER_PD instead of magic value in fastrpc_get_info_from_dsp. > > Signed-off-by: Abel Vesa > Cc: Srinivas Kandagatla > Cc: Amol Maheshwari > --- LGTM Reviewed-by: Srinivas Kandagatla --srini > drivers/misc/fastrpc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/misc/fastrpc.c b/drivers/misc/fastrpc.c > index 93ebd174d848..8895ca593911 100644 > --- a/drivers/misc/fastrpc.c > +++ b/drivers/misc/fastrpc.c > @@ -1515,7 +1515,7 @@ static int fastrpc_get_info_from_dsp(struct fastrpc_user *fl, uint32_t *dsp_attr > args[1].ptr = (u64)(uintptr_t)&dsp_attr_buf[1]; > args[1].length = dsp_attr_buf_len; > args[1].fd = -1; > - fl->pd = 1; > + fl->pd = USER_PD; > > return fastrpc_internal_invoke(fl, true, FASTRPC_DSP_UTILITIES_HANDLE, > FASTRPC_SCALARS(0, 1, 1), args);