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 28002C77B7A for ; Thu, 1 Jun 2023 19:36:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229610AbjFATgD (ORCPT ); Thu, 1 Jun 2023 15:36:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229598AbjFATgC (ORCPT ); Thu, 1 Jun 2023 15:36:02 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A76F399 for ; Thu, 1 Jun 2023 12:36:01 -0700 (PDT) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 351JM4xL005984; Thu, 1 Jun 2023 19:35:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=n6yQXIdoNl358zL0zrYMzMFosS5ZqpX3TifKZSz4kVA=; b=jooEtA5L+GKVotqDa4u5UbFPP5IvehGqKunqSKTK5VIB7j1D5i6K8KPime6+JEGWN6NC MYcWD/H3+N5KnUyJAALg4xBXzTQrsJykkIA8NCVbvklJS+OJcyT++prG1OnkOArrjvDD 5rPbFDKJVweFX4E7XYJQ/TqXrO1khjyiCJRJVjWL7ZMyvtFE3eTZSrwBOj32HgCW17S+ SZTFLUUfRxHMv4Fax5XGBtNoJvqo10qSfcWky/sfg/sCiUPRuy9C6Z7G8ibwATGnUqlf bGrYwicELZmp4mr61P+CglBo5Y6KZ42UcaV1+haPkoWtjoAYNRP8TLpTU/ByjFGGnde6 9w== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qxugr90j3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 01 Jun 2023 19:35:53 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 351JZq9S009343 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 1 Jun 2023 19:35:52 GMT Received: from [10.110.26.45] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Thu, 1 Jun 2023 12:35:48 -0700 Message-ID: <497acb99-bec2-ee19-e5dd-ff96ca043826@quicinc.com> Date: Thu, 1 Jun 2023 12:35:46 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v3 4/7] drm/msm/dpu: inline dpu_encoder_get_wb() Content-Language: en-US To: Dmitry Baryshkov , Rob Clark , Sean Paul , Marijn Suijten CC: Stephen Boyd , David Airlie , Daniel Vetter , Bjorn Andersson , , , References: <20230601172236.564445-1-dmitry.baryshkov@linaro.org> <20230601172236.564445-5-dmitry.baryshkov@linaro.org> From: Abhinav Kumar In-Reply-To: <20230601172236.564445-5-dmitry.baryshkov@linaro.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: sRQBHoXICq6gBEHSkxEMtoMFqVsGxs7c X-Proofpoint-ORIG-GUID: sRQBHoXICq6gBEHSkxEMtoMFqVsGxs7c X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-01_08,2023-05-31_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 priorityscore=1501 adultscore=0 malwarescore=0 suspectscore=0 impostorscore=0 lowpriorityscore=0 mlxlogscore=460 phishscore=0 bulkscore=0 clxscore=1015 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2306010169 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On 6/1/2023 10:22 AM, Dmitry Baryshkov wrote: > The function dpu_encoder_get_wb() returns controller_id if the > corresponding WB is present in the catalog. We can inline this function > and rely on dpu_rm_get_wb() returning NULL for indices for which the > WB is not present on the device. > > Reviewed-by: Abhinav Kumar > Signed-off-by: Dmitry Baryshkov > --- Tested-by: Abhinav Kumar # sc7280