Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp432066pxh; Wed, 10 Nov 2021 04:10:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJxaxTiq0VsePlzxRKDcVXW/YCeORp2iff3Rr+AKGpZrggoQPEyDs1QQ95D5dx8aQefsbPAW X-Received: by 2002:a05:6402:1d56:: with SMTP id dz22mr21394070edb.44.1636546213331; Wed, 10 Nov 2021 04:10:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636546213; cv=none; d=google.com; s=arc-20160816; b=gXsmOBT3sPB6ouVNYsxSDcztGlREL3xnUfzu/PgqhRDH8KPdkOeogkrIAg8x6c1wu0 k4IwDnEevJ1+jUJvZ9QhdnVAqiJcegXBBkV6WrTLS/nMbbg+ZC/rWYastWMTKam2hD+E dsyCLnVKjKYjNj8ublzgdB45SCkH4W+en1szwe/YOloCygchM5Yz6QtjSIdB1OFngxA6 VfUdOgO2K+ENzEY32K40Zev/MKRTz/gNhgqXCB84py8GniycB/gXJDBU8bQDTXkmtkLl R6vkmaW1+UxiIcVcGSL/n9D622Mkd1hYYqyhg+HyvrH5oremzxedoSNtMOotWsouZhei JSsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=vrS5M6DytZl+EPmdclSiBMyMOC/Af23DduwHTH7/9D0=; b=pK7MfWJUHBZrMEcOzNcuOB78JmoWgjJTS+61b6SAkiz9erC6QrEMZpVWaueKVl6B99 iNjapysybfuiPzXmmJ3PM85Z5Gj2zQ50sp6YcVN7kjdsQAe1tp18gfTpLOisF5vxD3qC LSz+K4dqawLvnnZ4233q4Z79l+CLK6ntc9STio5vG7brKNR7Osg8PQnjtLpW17v3Zmh+ CTCoul8ftFrzgCLZJmlI4sZACd/p1rAZ4zAcqLjP7+wY1Wy5txyih7WqbYX+TjE/OCn2 wFcpV+mL0dOwwxis2KjRHXfmQ2ARAD+EGQVYCRSO1ric8u5NgN2WzwtA2fLsIL3r5dRS tQKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Rwk1udxw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w14si48682368edd.141.2021.11.10.04.09.47; Wed, 10 Nov 2021 04:10:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Rwk1udxw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231639AbhKJMKc (ORCPT + 99 others); Wed, 10 Nov 2021 07:10:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231615AbhKJMK2 (ORCPT ); Wed, 10 Nov 2021 07:10:28 -0500 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4188C061766 for ; Wed, 10 Nov 2021 04:07:40 -0800 (PST) Received: by mail-pl1-x631.google.com with SMTP id q17so2767716plr.11 for ; Wed, 10 Nov 2021 04:07:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=vrS5M6DytZl+EPmdclSiBMyMOC/Af23DduwHTH7/9D0=; b=Rwk1udxw2fKYWYWZ1wXnFxsUS/uO0F4zBtFNYea4OotNOmg0CE4M977FPQoGlHjD9U J/+hQmAd6MrCHRgJFpsFvU39/97sv51bHnSNT0L13TkoQIWpUfdP2hYNLlZtqabHblqa eLkoSH079GXwnZ9qEOosnTR4nsMncBCsovP3jZbi1rjs+79vcphzhnQ1lqtDI/UGtvEK Ng7cKJC9VtZr+rg51SnLY4MnX3ls8C+5SvacO5PmyGicwjVdDbjdjIplA83AH6Wq2naL j1maXQRphKH6In8Py+++5KX+W8IboP2HMSvxCB9Gi2ghcD8RNotrxpQyzqJr+3VAJ07g g+6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=vrS5M6DytZl+EPmdclSiBMyMOC/Af23DduwHTH7/9D0=; b=EjiqkI5RJVXDqbH1D7hK9DSj6f0t6F+hU2jmKTc/NOHet/ObcQItxrzX4hhbJgLk+L bWcPscx+qYT04kL3293fFKi2tgvvvPJ+FqCg44cdSeeuRigmbcY7lr944Yah3ZikXxdO cCNTIhqhUE2PUoUHTvQ/7yViCrjg2FY5tPPeJMSJfOEo1pxLlzQl7EFpIqZXFz/uEt7A C+pYvjheo4w3BJw/TzP7k4W6bqL5jzc5m7nihY/z3TfH6c6+w7DA8kz0tWuIkpCZnIuA gocckp6UpPREakelgtPCzvrPFWzdYHrChgsVqOSFlFXrOXlqoXFXawaWQBehs1QtI1oe 9bIw== X-Gm-Message-State: AOAM5331bk/V6JiCdcGE5Qw9wQ6j1TRgjOju10S5g1uud44GHpCuJ22F VTTlV0IyRmR6UdL23PmKjwIFA6AHN9oaWA== X-Received: by 2002:a17:90b:3d3:: with SMTP id go19mr16403914pjb.23.1636546060335; Wed, 10 Nov 2021 04:07:40 -0800 (PST) Received: from localhost.localdomain (80.251.214.228.16clouds.com. [80.251.214.228]) by smtp.gmail.com with ESMTPSA id g9sm8377914pfc.182.2021.11.10.04.07.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Nov 2021 04:07:40 -0800 (PST) From: Shawn Guo To: Georgi Djakov Cc: Bjorn Andersson , Rob Herring , Loic Poulain , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Shawn Guo Subject: [PATCH 1/6] interconnect: icc-rpm: Use NOC_QOS_MODE_INVALID for qos_mode check Date: Wed, 10 Nov 2021 20:07:11 +0800 Message-Id: <20211110120716.6401-2-shawn.guo@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20211110120716.6401-1-shawn.guo@linaro.org> References: <20211110120716.6401-1-shawn.guo@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use NOC_QOS_MODE_INVALID for invalid qos_mode check to improve the readability. Signed-off-by: Shawn Guo --- drivers/interconnect/qcom/icc-rpm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/interconnect/qcom/icc-rpm.c b/drivers/interconnect/qcom/icc-rpm.c index ef7999a08c8b..35888721a690 100644 --- a/drivers/interconnect/qcom/icc-rpm.c +++ b/drivers/interconnect/qcom/icc-rpm.c @@ -76,7 +76,7 @@ static int qcom_icc_set_bimc_qos(struct icc_node *src, u64 max_bw) provider = src->provider; qp = to_qcom_provider(provider); - if (qn->qos.qos_mode != -1) + if (qn->qos.qos_mode != NOC_QOS_MODE_INVALID) mode = qn->qos.qos_mode; /* QoS Priority: The QoS Health parameters are getting considered @@ -137,7 +137,7 @@ static int qcom_icc_set_noc_qos(struct icc_node *src, u64 max_bw) return 0; } - if (qn->qos.qos_mode != -1) + if (qn->qos.qos_mode != NOC_QOS_MODE_INVALID) mode = qn->qos.qos_mode; if (mode == NOC_QOS_MODE_FIXED) { -- 2.17.1