Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp282213rwb; Mon, 26 Sep 2022 12:16:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6ErXCoHZZL7sLhbpArnsiVVQhM6nytquTTxyPBZJO0pkKwoRSqUKUwKIeLLH9ycc3INM1x X-Received: by 2002:a17:907:74e:b0:74f:83d4:cf58 with SMTP id xc14-20020a170907074e00b0074f83d4cf58mr20110230ejb.178.1664219801221; Mon, 26 Sep 2022 12:16:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664219801; cv=none; d=google.com; s=arc-20160816; b=eM2Mk8DXnemCbeiXgT0haKgD1adwu/LhBf9T9q60StV16QTZN6xBnkjgE53ehB8cor JCG4KK2kTrFNBLbK6ZpVyQ4wSWXX75iRi0mZfcvQwWN5ZLUIZtpE8qx/zmPXBrlH7Rtk O+KqBL9zwCMeyeVibs/uHRcT1NuPK6nfNHmpAbHqocHjQhiPawh9FGGxd1ChPbOAosaq 6swN7A4zoKGDW0j3sZgiBb+Lm/UTPhKDRA3eNONq8TWiT6pQKIE6LTKFf5SX3adA3O8l hd4WySMntUDN88ZWyCELI9pArN5zxQrud8q7DoE/n2QzTOZif5BIF6YZk1N+USi4PVkd wRzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=PZ2igG0XeOJ1ke4qYHYcTVfC0hxw/eV5eDt2ybTALcI=; b=JIjAt4sY/XklYwnHlvDqTswsGWE+zt/aekz/ZYsfpKOqcSJF4Jq9dPFLwA+jrIb28v UsD9TAS+eDGz/dwFIefEIE44jY4rHbrpTL9DxByVgaFFGAd4Ve+7s/6wYzuXGFrJEMix 5kXji90qH/5LV2szcRIhSxMRAhMgsRvJMVSDd7oRRgIcYz13g5NeSUL1FnNS7rF1TQ61 rmYR+J5wP03MFPggDJ4WXD6w0QioswUW4m0Yr9tTgvYN6LuAFybpAhLeSybLqBKDJ+ux 3SrTUhMrk+ufHMce+OVrOkY5hWX1uUk2wFE8RUfUH5Sv9HcyHO96x6KnPV/TdmtwUvwz Iabw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=NqWtARwt; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t3-20020a056402524300b004485508bcfbsi19484543edd.30.2022.09.26.12.16.14; Mon, 26 Sep 2022 12:16:41 -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=@quicinc.com header.s=qcppdkim1 header.b=NqWtARwt; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229692AbiIZSVx (ORCPT + 99 others); Mon, 26 Sep 2022 14:21:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230229AbiIZSV3 (ORCPT ); Mon, 26 Sep 2022 14:21:29 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51EB55E309; Mon, 26 Sep 2022 11:17:48 -0700 (PDT) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28QFrlDG000444; Mon, 26 Sep 2022 18:17:28 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=PZ2igG0XeOJ1ke4qYHYcTVfC0hxw/eV5eDt2ybTALcI=; b=NqWtARwtkiZSUeqmAg42P32mYm9APznSWheF9qdOGQQkJLtgS9hT8UYcMoKIaNhD99Ui WML81VzZtoIp7SZzSBjO3TbpnYkkUwhsfzLtpWZf3iErFjPPE12vaa2plQmaBwx9ox3h sAcuyOazYUbWtXf4DhjISzvCQMfo054EBym0/VpyCOJialqLXJyv6dHPulNmhqQIYQ9z Pr8jc1MbCPWtJA12ZmG3u3959+w7BReSXQCAlOgxuguRnzv7L0jqX3W7M7ie0ob2b06U hgkW1ky6zdCQj+sZVBS+n3T/fLXYmLVDWVQPNBqxZHLjPLhfiNKk0pHAseRAyFuMiVNS iA== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ju9p69gvu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Sep 2022 18:17:27 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 28QIHR2B014048 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Sep 2022 18:17:27 GMT Received: from [10.111.163.216] (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.29; Mon, 26 Sep 2022 11:17:23 -0700 Message-ID: Date: Mon, 26 Sep 2022 11:17:20 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.2 Subject: Re: [PATCH v2 09/10] drm/msm/dp: drop modeset sanity checks Content-Language: en-US To: Johan Hovold , Douglas Anderson , Dmitry Baryshkov , "Rob Clark" CC: Andrzej Hajda , Neil Armstrong , Robert Foss , "Laurent Pinchart" , Jonas Karlman , Jernej Skrabec , Daniel Vetter , Sean Paul , Stephen Boyd , Bjorn Andersson , "Manivannan Sadhasivam" , Kuogee Hsieh , Steev Klimaszewski , , , , References: <20220913085320.8577-1-johan+linaro@kernel.org> <20220913085320.8577-10-johan+linaro@kernel.org> From: Abhinav Kumar In-Reply-To: <20220913085320.8577-10-johan+linaro@kernel.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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-ORIG-GUID: w9FVVQl4B3_fZSQFShLeI0dvhjPH29iA X-Proofpoint-GUID: w9FVVQl4B3_fZSQFShLeI0dvhjPH29iA X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-26_09,2022-09-22_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 adultscore=0 mlxlogscore=999 clxscore=1011 lowpriorityscore=0 spamscore=0 mlxscore=0 impostorscore=0 phishscore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2209260114 X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 On 9/13/2022 1:53 AM, Johan Hovold wrote: > Drop the overly defensive modeset sanity checks of function parameters > which have already been checked or used by the callers. > > Reviewed-by: Dmitry Baryshkov > Signed-off-by: Johan Hovold The change LGTM, hence Reviewed-by: Abhinav Kumar I think we can use below fixes tag so that we can pick up this entire series for the fixes cycle. Fixes: c943b4948b58 ("drm/msm/dp: add displayPort driver support") > --- > drivers/gpu/drm/msm/dp/dp_display.c | 7 +------ > 1 file changed, 1 insertion(+), 6 deletions(-) > > diff --git a/drivers/gpu/drm/msm/dp/dp_display.c b/drivers/gpu/drm/msm/dp/dp_display.c > index 808a516e84c5..33daec11f813 100644 > --- a/drivers/gpu/drm/msm/dp/dp_display.c > +++ b/drivers/gpu/drm/msm/dp/dp_display.c > @@ -1607,15 +1607,10 @@ static int dp_display_get_next_bridge(struct msm_dp *dp) > int msm_dp_modeset_init(struct msm_dp *dp_display, struct drm_device *dev, > struct drm_encoder *encoder) > { > - struct msm_drm_private *priv; > + struct msm_drm_private *priv = dev->dev_private; > struct dp_display_private *dp_priv; > int ret; > > - if (WARN_ON(!encoder) || WARN_ON(!dp_display) || WARN_ON(!dev)) > - return -EINVAL; > - > - priv = dev->dev_private; > - > if (priv->num_bridges == ARRAY_SIZE(priv->bridges)) { > DRM_DEV_ERROR(dev->dev, "too many bridges\n"); > return -ENOSPC;