Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp93284lqb; Tue, 28 May 2024 09:40:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXGKVxahQk3dRkMsT8TEMUrI8/myn6wzg3liC59G+vl4dWMGCVDC9GZFnamCcsUeK/DmqrXV+d/PLYzTm8hqF0/lWmKzUhuUOpa32p1/g== X-Google-Smtp-Source: AGHT+IHQGWM8VLa6iwv6Fe544FSPfdb8aCkbRcqHKMmVEaVV/i8WVdJ+PHbmqmnBc4ZwMRisyIb3 X-Received: by 2002:a05:622a:8a:b0:43d:9d93:f601 with SMTP id d75a77b69052e-43fb0f05e93mr134344941cf.56.1716914409290; Tue, 28 May 2024 09:40:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716914409; cv=pass; d=google.com; s=arc-20160816; b=zecDEYM31Nqgn768LtV2kpGf9z6xvnZeFb28AAzXyPAaL+onXYrDpWOE3+kUvG2YA2 wdlTvmls3QJvytuUqDD/RT8zPrKuGC029jEe3BBmuyIvP+fSwCOBbkPczNum2X4OHF+u HcbaSLaSePR0N21W7rJj6SuGaWyG49kU5QnB2qynaif3QTxiqtUYxAOgGVkS0iMTjPu7 kN0Hv2KKeDMVhYgq6frojGfYmzZxg0EqeX5tNRcZmj1lt6BImz1D35Ondb87WaM3A7or N767FXVvcwNqnqeH/ExJt4pHNKt3PBbMbMZgzm830YS+VuDhdxLvyQDk7gG4/jNCMc4o y1xg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=RGFf3q2KPsVLxGQHqjukDALhrvUhzkxB90RUCbCUZwQ=; fh=1IqXIrqkBa8aJaXyzjZxHoSxyUjS2eASV2ZhkxdYupg=; b=XcHnnDNo/gudz/ja4AbcJclnPcbsIOLPjRJG6tf5RBI5/QZgy0Xiuvyw1ZNQDPXw2V pKmsvBnJCHGZ5KcAJNB40WNl7/7s7KGVEdAS/gssPxwRo0jfv8dbpOSrlEp9law/4dfV lUVu6QiQUZHJbcqb/81BlAxexH30yrLwgTBRaZntD6qk1WKI/Ez/WWmTgjAk3EKl9l+k xtpvbjC7h+LqHJWX6HGW17lAhu2XH913bd1SXt4GITw+KKi/oDKo+eOpKUWnuCmsXoO7 smu2GX2FZwhFxJD5pLB6olPtFPq+R7/BXeOYEvstWJn2owoYAKx+J68/WjxvKfs1BJf9 NuMA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=YqVvx0OV; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-192766-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192766-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43fb17baf3csi108146411cf.69.2024.05.28.09.40.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 09:40:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192766-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=YqVvx0OV; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-192766-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192766-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 08EA71C22CC8 for ; Tue, 28 May 2024 16:40:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C59FD172BC2; Tue, 28 May 2024 16:40:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="YqVvx0OV" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 840B216D4FF for ; Tue, 28 May 2024 16:40:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716914403; cv=none; b=qEM98LaCTZOgYoA9riykDgh/FsjoMKBCjRCQ0xViPpz5bXulqQbUgFZSxUDIgB/UGE+u8fih8bhfWVQFlJqrzF53xChVQP6JowuEXMWi+uIRp5cFjzlIofXYCbr5od09MUmy+CKLOdX94waAHQrDGNvvFTwQnuX1YmVtePpuHss= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716914403; c=relaxed/simple; bh=mn7Xm3aBJVUtsQUPSVrN5kRlmSJ0oEOVMHXCdbLjAFY=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=pag4bFkHvtLcjic4GZIgZpUWO4LGPx6uNQQjyJ5MrO4cRK/2ci2SsKVHpQAm3xMzqA+ROpBeKg6qDdZhaQMFx4i86LKSN46f2TIdOxlrSjJIT0eu1zb9nz2eCMnKEHPlbtKhQFNxZyWWVarepfb79mwJqWABn/+RsCLKQivD/6w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=YqVvx0OV; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44SBZaaX029559; Tue, 28 May 2024 16:39:40 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= RGFf3q2KPsVLxGQHqjukDALhrvUhzkxB90RUCbCUZwQ=; b=YqVvx0OV2SB3XVo0 jC95tTmwxkAYoBBnjMDTdBkOwUI4Yg0Q0MZMm9qYoFg/vzeMy9wL3P889hNp6llw IjYS9c1iAnFWV2X2DXVKoqXrVvNKgmEDW8a8jrlxW2zg4Nww9t0R1HIIlm2t+gjA rRlklNH6T+f6ArAZZMc2qcprhAaOc09PgsMay7S3odcV1GUhFzxo3H4XqL/QlWJp wniHtUUBxjYwwNtVfMCZjxsXTml3YXjTk6CUBB3xBs3e0HUWCyVj2yjLViVEU1k9 CmbMjgl+2pxmLbB4VD+ltl+DAn9cDiw5y3MhQslrUaderyz5ypoOOOAaBFFzhf7T MYvKbw== Received: from nasanppmta05.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3yba2ppqub-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 May 2024 16:39:40 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 44SGddAK014514 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 May 2024 16:39:39 GMT Received: from [10.71.108.229] (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Tue, 28 May 2024 09:39:39 -0700 Message-ID: Date: Tue, 28 May 2024 09:39:29 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] drm/panel: sitronix-st7789v: Add check for of_drm_get_panel_orientation Content-Language: en-US To: Chen Ni , , , , , , , , , CC: , References: <20240528030832.2529471-1-nichen@iscas.ac.cn> From: Jessica Zhang In-Reply-To: <20240528030832.2529471-1-nichen@iscas.ac.cn> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 79FZCCsuuZvM01rxRvA7Koe-GGFSvtBK X-Proofpoint-ORIG-GUID: 79FZCCsuuZvM01rxRvA7Koe-GGFSvtBK X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-05-28_12,2024-05-28_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 malwarescore=0 spamscore=0 adultscore=0 clxscore=1011 bulkscore=0 mlxscore=0 suspectscore=0 priorityscore=1501 phishscore=0 mlxlogscore=999 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2405280124 On 5/27/2024 8:08 PM, Chen Ni wrote: > Add check for the return value of of_drm_get_panel_orientation() and > return the error if it fails in order to catch the error. > > Fixes: b27c0f6d208d ("drm/panel: sitronix-st7789v: add panel orientation support") > Signed-off-by: Chen Ni Hi Chen Ni, Acked-by: Jessica Zhang Thanks, Jessica Zhang > --- > drivers/gpu/drm/panel/panel-sitronix-st7789v.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7789v.c b/drivers/gpu/drm/panel/panel-sitronix-st7789v.c > index 88e80fe98112..8b15e225bf37 100644 > --- a/drivers/gpu/drm/panel/panel-sitronix-st7789v.c > +++ b/drivers/gpu/drm/panel/panel-sitronix-st7789v.c > @@ -643,7 +643,9 @@ static int st7789v_probe(struct spi_device *spi) > if (ret) > return dev_err_probe(dev, ret, "Failed to get backlight\n"); > > - of_drm_get_panel_orientation(spi->dev.of_node, &ctx->orientation); > + ret = of_drm_get_panel_orientation(spi->dev.of_node, &ctx->orientation); > + if (ret) > + return dev_err_probe(&spi->dev, ret, "Failed to get orientation\n"); > > drm_panel_add(&ctx->panel); > > -- > 2.25.1 >