From patchwork Tue Aug 16 10:55:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 598226 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 8F090C25B0E for ; Tue, 16 Aug 2022 11:34:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234152AbiHPLe0 (ORCPT ); Tue, 16 Aug 2022 07:34:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234594AbiHPLd6 (ORCPT ); Tue, 16 Aug 2022 07:33:58 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 030B14D80F for ; Tue, 16 Aug 2022 03:55:49 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id a4so426113wrq.1 for ; Tue, 16 Aug 2022 03:55:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=UwGclAPKpRElqSb0slB3YI1UbidqkoclQLHrUzSqvlg=; b=l/hcMAVKaPG6eBpWzxcJ+D86RTu1F1RNf1z1FDxlWs52NFbQP78T5n2830h/+N96dw rtTdIPTYo6N/902CMQLhwYGKpo7c2qhfPOPc0aTMyVcwk2T+XCKBFIuuG5coJiZW9qFF 8+R05ypD4TX2lz0gcnosZTsZmSP2fU2/GE5BYN6T45Ja019z2tBMuNba+cm0a+6cruLV j2+kcbTzCPHkLOKshZaT1cDHabbz9AGW04mdroXDxwxchbTrSsJWpcaVoh8YzHJQ3y0S 8ideVfspHwWwqN8E25VX+m3E5Ge4qUTBDtR05n/9FbfveAho27nIQlg8yZIHK2sB8Ldd S2eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=UwGclAPKpRElqSb0slB3YI1UbidqkoclQLHrUzSqvlg=; b=NqsVBoYvHdSWfoDK2/em0hEXXav4O49t9Vzh116XuZQ0SyoAL0wvAPTLtWlzx++vLY pQKDzfcJTa2wmtEI3ipcB2zLZOQnOJLJRt6WUHdZUqYD1+kBw0Hw/AqEkIvOsaTUjCTy PkziTStzvFLB0+j+TbAlP+3I5ZqE7w1k7pDMODQ6ymRUSKyklywGhRgxLYWR1YMHI3/q fgSVIVYI/0HfjVHq7lhg+uvoegRMue8Gqcg5DWM9vun31wBR7czCTVoAijBFKt9eLHIl iExKodqz7Rankes/2WBU13uOeUSqEG40CPtNO3xQbK++4pGbmR49v1cRAkx0+mqYlf02 dtlQ== X-Gm-Message-State: ACgBeo2Ue6ozZz3mqNbc7clwrgBQefIKNQypNjF2pyEgszGjejW4To75 rsBEnyUu36aKytN8aMqjGH2PChSIenBXXA== X-Google-Smtp-Source: AA6agR7ORNMHdMKLRnaII7L2dXayQffVP+aZiQzPFLcwMcmQl3BOgRIrdp/Bqn4+pG6d67LysnHONQ== X-Received: by 2002:a5d:638b:0:b0:220:6e1a:8794 with SMTP id p11-20020a5d638b000000b002206e1a8794mr11440308wru.193.1660647347544; Tue, 16 Aug 2022 03:55:47 -0700 (PDT) Received: from hackbox.lan ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id k2-20020a7bc402000000b003a32297598csm12362799wmi.43.2022.08.16.03.55.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Aug 2022 03:55:46 -0700 (PDT) From: Abel Vesa To: Srinivas Kandagatla , Amol Maheshwari , Arnd Bergmann , Greg Kroah-Hartman Cc: linux-arm-msm@vger.kernel.org, Linux Kernel Mailing List Subject: [PATCH] misc: fastrpc: Use USER_PD define in fastrpc_get_info_from_dsp Date: Tue, 16 Aug 2022 13:55:28 +0300 Message-Id: <20220816105528.3222763-1-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 --- 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);