Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3539167rwb; Tue, 16 Aug 2022 05:03:44 -0700 (PDT) X-Google-Smtp-Source: AA6agR6xJWDwpFI8SOQHHIfzdJVIc9HQmVeMjTkIY47Q/KlRQrajSAHufley7l86e7nvAgisktN2 X-Received: by 2002:a62:3086:0:b0:52b:fd6c:a49d with SMTP id w128-20020a623086000000b0052bfd6ca49dmr20194022pfw.26.1660651424431; Tue, 16 Aug 2022 05:03:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660651424; cv=none; d=google.com; s=arc-20160816; b=gYvx4INrnWOr0aw/XJUK2boS3DgPRKd3CGL5XEErMvo/hON2f8KK5rtsE0ls++cU0i McepDGRpTDn+1cUCOJSii0ibTZjLUwYCKyVQvuH+NJqlVqVpxVOGlTdlKQ0MaKMrSaPR mFUaMUOOfoICRWgbsPbtOz6l4CZt1q0sYc2bQZUSUf9lGzN2ak187zxqSYWrvsHLWNJe u2/4G6xFektlFe44LEUsUDiYxp9mlfDBtev5Z/tV4Bjtp9J3QYto4iov/VwO8+sV4OHg UbZsPCBLqTs5opDgXebTdD+pXx9zvIdbRt1p2I3RIMc6szT9BdgeYvbOV+r6P9OjJjCA rr7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=UwGclAPKpRElqSb0slB3YI1UbidqkoclQLHrUzSqvlg=; b=JQfgz7m3Uo7S6KZsMRrHsgoqv1pZ9KhO6pbQMmhh9wLbOx1q4JveWkNP2dW+pvhJyp tPXfPvko8JVwJa23oo7aCdOBJ+7s7Wh7sxaeFkJAD+lrU8CKZJJSFPoLty/nNulHQPWh lc6I+VDQfWCMDpTo/CheUb2o7GBkDv3xRY+1/pAoGujuv3O5iXE9tRYEiG1DvXax7GEL M8oJZDvGlJP3x557jX3n6MPnRuepgyms1baYkJni03frypY4Y83o1i3iYx7LsWjv3Msp sQSVB7DsfIZuZqsBzd7YqRYy77kkWiA29WIfbCK+aieiQLdxvaazO9obEPGY4uvSV3dy HoCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="l/hcMAVK"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w16-20020a170902e89000b0016ee19bc5f9si11736625plg.553.2022.08.16.05.03.29; Tue, 16 Aug 2022 05:03:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="l/hcMAVK"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234283AbiHPLel (ORCPT + 99 others); Tue, 16 Aug 2022 07:34:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234622AbiHPLd6 (ORCPT ); Tue, 16 Aug 2022 07:33:58 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BE7A66A53 for ; Tue, 16 Aug 2022 03:55:49 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id l4so12122882wrm.13 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=cVy2//kirj3yQb34YfVvWH1xhBJy+ttKmw+81IQ3Zy9R1HfQtva5Vj9yaYsmlGOY+0 wyBViSM7DvdzdKJBASQLTNUkI8HFsFhe1r3QFLj7NVP6bladK3mzFQr4XymWiDK6ghKA CVukIn0Vj8jINJbl/m+UJqDnD9te1ZmoEuIXKpXNpU3Q/1Q3OnD4pCgyBcFZKzMgDWQU aICATCXFt+vTCJjLjflAjCy6UknqfPN9nBTs4zvVIW0rYqdMW6vwe2stKq9CfTlWPvIT TzKre79DHgFOpEhWgdR/xMmQknOSGyGfMOkiv9+IJf9DNPAl4HyAgBzPd9anw9w0LPBf tjag== X-Gm-Message-State: ACgBeo0DsWSep1WYKehgQ7Tyx/PPTNYpi0YDdJ9fQtECkBZqtpmCYW08 z0qL3qLpbwSK6+hzBfZlkp6ewQ== 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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); -- 2.34.1