Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1842612lqo; Sun, 12 May 2024 22:56:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXuIFZMd68k37m9ZwwRnv+kP3dmeIzlCJOlHHMWtTPlodnqk2Kta1Nj6G7YhZawYnF5Jb2xOPxuVjtY80SdtR2MIPakLbnsBNoVMYuSEw== X-Google-Smtp-Source: AGHT+IGM6jT6hJJixM+lFMFjd2DXDjS/beLH/Dxnyr43SJL5gM0wJBxvPKtvlJiR0u5FFpKcTTYf X-Received: by 2002:a17:902:ba89:b0:1eb:1485:9d2e with SMTP id d9443c01a7336-1ef43e280e8mr100575105ad.30.1715579795024; Sun, 12 May 2024 22:56:35 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0bf31752si89829845ad.306.2024.05.12.22.56.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 May 2024 22:56:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177180-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=jibfKuJV; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-177180-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177180-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8C5FB2815FC for ; Mon, 13 May 2024 05:56:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C9AFA146593; Mon, 13 May 2024 05:56:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="jibfKuJV" Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2075.outbound.protection.outlook.com [40.107.247.75]) (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 302C52E827 for ; Mon, 13 May 2024 05:56:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.247.75 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715579790; cv=fail; b=exiEB/7QVpPQtnHkT3Or74NxeFdvvZEuvXHCUQCSK5cUVXtxSF2iYQwyeQVYpoTSL1mbTxkx4nHm2vZXlJISDYddA5v1Y+YsvtVaxlYDEacQQFhCyNrzYYvNUbBNaTMCjfGfXe/UENVkaf8TTtZrMriSHsG3mqp0ZYp0yzivG7Q= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715579790; c=relaxed/simple; bh=/m7YqPQaH/9gMRTH2MuEHh2WwCBUbAQbITP56Maivds=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=ZocbtHPDmQP10O40qvZQ6JemcJSGCxaMa9wbAFRQf3nNbvBKrfls3nZKBxjfOg26gswn5KwyOoPiDOIET98vFWeNvmDY/4tquHqiEPG2XrfCEC2HRctaug1zNigWMWUi66gZ7zz+52HAQ4ucott8s7vEkbuYNs320so+AN0J0aM= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=jibfKuJV; arc=fail smtp.client-ip=40.107.247.75 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YKIXbm1nm3RlTo0HdClfTRfnWR6/8F5HEeFxadw9VaqjjPXex0cJdfjWOlFK10ysw88JgteinU+PTJbx923zGZ8Uy+PtITkcwr5NjSoQyKm/AHy2+OSTWDTcDtmpfAyeYWf2saTABdRRptt6D9CuSrHbVfaUed2w9JXvNTi7Io3U3NCQJPsPr8cV40JoBDA20aWJ1tlAECwX9YIgSmyYf9dJE3x/QOMHvawVDHn3CYbnfuM7OLg2eNOjcOUkkFCNZlsUcXbZ9Xap/HsDjR/pSt+dEeuBFPXo2qdiWaBtRpIC0UPV/YXBMveWNAtEHSv0LWfvmxF0sibXmcJasn2YUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Oh/JApK8tLnIkZENMUl4JPNQy+hfN8rstZKGhAN8NZk=; b=YguzHof7XIBoH6cw246gU53iwq+ODsFNx1lTgPU02CBewIWMZD7CuF04SUQl8n8nv1oqG4JkCAt1/UM0+S6CFC5irmhDvdUcUOILz4NIbLYm0lobFoo9OrpM2Ec1IwXJcmWPnZ32/I036JtFAx+MdgPKIpa/kc6dpNbtWdWChqOI1r2miwmBUslRCpP6oEh0jfGbWkOBJywnSt/WSl3UxR7uXlyI31pPBSzLcRhBMPSyBUdWzXGas56Un0vx4fnSqF6ny+FfI79NLMUbLe0dGHJ7LMgtjPVFf+YqelCnSg7xcYhAKKysxbpiyiZ4F0HAS//re4WgpXZ41o8Ej6Ijrg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Oh/JApK8tLnIkZENMUl4JPNQy+hfN8rstZKGhAN8NZk=; b=jibfKuJVZIxovJhStSOSecGsl9EIPAIa3rKllkxrtf0gt7fbN7ZumdqtCeAM+l86/fjYlBEt1H8OpxfDXNZpLHSB1nzW/0Wq2LBMSvdeL6oOWc7Hu1pEC9txIQd8QmYB/L1EGgqFzzrL0sXOgiUxZ+1rOEiK8bpAIiy5sKz8UNU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) by PA4PR04MB7839.eurprd04.prod.outlook.com (2603:10a6:102:c9::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.55; Mon, 13 May 2024 05:56:24 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90%3]) with mapi id 15.20.7544.052; Mon, 13 May 2024 05:56:24 +0000 Message-ID: Date: Mon, 13 May 2024 13:56:40 +0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] drm/bridge: imx: Remove redundant checks on existence of bridge->encoder To: Sui Jingfeng , Shawn Guo , Sascha Hauer , Fabio Estevam Cc: Pengutronix Kernel Team , Maxime Ripard , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Thomas Zimmermann , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20240511150816.326846-1-sui.jingfeng@linux.dev> Content-Language: en-US From: Liu Ying In-Reply-To: <20240511150816.326846-1-sui.jingfeng@linux.dev> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SG2PR03CA0105.apcprd03.prod.outlook.com (2603:1096:4:7c::33) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR04MB7046:EE_|PA4PR04MB7839:EE_ X-MS-Office365-Filtering-Correlation-Id: 0ae3c044-4b2c-49e4-c39a-08dc73116bdd X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|1800799015|7416005|366007; X-Microsoft-Antispam-Message-Info: =?utf-8?B?eTNhdzFDMWxlWCtiK2ZONmliVlptZzdVS1R0WERSeFBDcEtpQXlPT1kyQUl6?= =?utf-8?B?T0x0N3V5M01zYVR2RWFkQnpzYk81bUh6d0JPS3BKelhkNFdSZzhkamc0Q3lD?= =?utf-8?B?QisxUjd2aXdVV0RvZW5HN0VJLzcwamJLOWVVd0l3UlMwZ1ZoK05yMTFrbDRw?= =?utf-8?B?OU96c1Z3enN2V1ovNG5hc0lNUnJiSmVsOHQ0U0d3UnBQZHhUaFU5RFgyU3Uz?= =?utf-8?B?VmtYY1NibXB4TURtSXYrd2lyeit1VTc0aGFHQk9mVzJLdjdVMFRZZEErMmRw?= =?utf-8?B?YkRHVHJrS2g4dXVuOEp4MEJ3Vkgwc0h3bjNFdExXby9IUXlqUWsrSUR0Kzlz?= =?utf-8?B?cGZjOVRlWXhwaHpVSUNrQ24wdE5KYTgyOUpuOHhnUG5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bDlLN2tINWlteWdQZXRBVkREQXpIaUJLQ3RL?= =?utf-8?B?aTBLYlNoem52bk9JTC92TDB3L2dsWm50OG1qZDZHdWlOazh3Z0VyWkVET2ox?= =?utf-8?B?S0xQRjBlRU50NVN4c0pMK3JmNUJzWTYwZllDYnRFSmdiQ0JBbUhhRXRYd0NM?= =?utf-8?B?RFJnUnpIWkRySTlPV1BsVUxrVHJlcVpUUzc1SjZDWFNsVG13RFFTdHl1TlJy?= =?utf-8?B?Mld0Q29XbFpDcm4vTDBaMDRSWWpMaVlvWk5zN0FaUm9uV2ZiTzUyQS9pQjVK?= =?utf-8?B?NTVqZjhKcjlRN0oycUxWOVlpdUR5SmxsTGpOSGhyeHdiMUoxd2R5Y1F5dU1k?= =?utf-8?B?cWVNZ1BEV3ZNd2hWNEJoUnpXblJsUE13dU8ycDBNRzRjTnVOQU5FNzlDaW9F?= =?utf-8?B?SW52cWpwV0JEbjB5UGg1ZmxVd2ZML01Bb3N0N2lKOHVkYlVsYzJaRVlBPT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM7PR04MB7046.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(1800799015)(7416005)(366007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?bXVMUGVRTFhIcUV6TDYySGFRcGxML0p3MnQ4cHJnQ3ZqaTZTakFjaVFONnk3?= =?utf-8?B?dVgrY05IQ3hsU1ZsT3pJNG15Yk1OcDlLdzlOcG5IaFFZa2o5NWM1VlY2U1FX?= =?utf-8?B?bUFVdjdBQTlqRHF6aXhpRnhjb0laYm1Fd3lGR0FGRWYrWk9QdXM5VDlyWk03?= =?utf-8?B?Mjh2cHgxZExzM0tWSFJKS1ArcGFoSWJ3RU14NmJzbER0eWRwK0pqVHh5YjV6?= =?utf-8?B?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3lHaFYxYkRPZy92V1VtWTFSc1RDL1RQcTQ0Y2ZuWnF5?= =?utf-8?B?bXM1ZVl1SGY4N2FER3k1L2daNDgvaXZHWit4VUg3Z2xWWmpQRjFvOXg3cnVH?= =?utf-8?Q?rP67eQc+R5HXZvnDPDppwyAgo?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0ae3c044-4b2c-49e4-c39a-08dc73116bdd X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 May 2024 05:56:24.3905 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: rf1XQCkUFNjknnCSlJE/FiaCK0g8ZO6syUQvkCelxOrB1Xv9YW9oXV1O+vk5yct+I9dA2+TXmC8QMx6EiVDkSg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7839 On 5/11/24 23:08, Sui Jingfeng wrote: > The check on the existence of bridge->encoder on the implementation layer > of drm bridge driver is not necessary, as it has already been done in the > drm_bridge_attach() function. It is guaranteed that the .encoder member > of the drm_bridge instance is not NULL when various imx_xxx_bridge_attach() > function gets called. Nit: ldb_bridge_attach_helper() doesn't follow the fashion of imx_xxx_bridge_attach(), not even the other bridge attach functions touched by this patch do. Maybe, reword as "when various i.MX specific bridge attach functions are called." Regards, Liu Ying > > Remove the redundant checking codes "if (!bridge->encoder) { ... }". > > Signed-off-by: Sui Jingfeng > --- > drivers/gpu/drm/bridge/imx/imx-ldb-helper.c | 5 ----- > drivers/gpu/drm/bridge/imx/imx8qxp-pixel-combiner.c | 5 ----- > drivers/gpu/drm/bridge/imx/imx8qxp-pixel-link.c | 5 ----- > drivers/gpu/drm/bridge/imx/imx8qxp-pxl2dpi.c | 5 ----- > 4 files changed, 20 deletions(-) > > diff --git a/drivers/gpu/drm/bridge/imx/imx-ldb-helper.c b/drivers/gpu/drm/bridge/imx/imx-ldb-helper.c > index 6967325cd8ee..9b5bebbe357d 100644 > --- a/drivers/gpu/drm/bridge/imx/imx-ldb-helper.c > +++ b/drivers/gpu/drm/bridge/imx/imx-ldb-helper.c > @@ -116,11 +116,6 @@ int ldb_bridge_attach_helper(struct drm_bridge *bridge, > return -EINVAL; > } > > - if (!bridge->encoder) { > - DRM_DEV_ERROR(ldb->dev, "missing encoder\n"); > - return -ENODEV; > - } > - > return drm_bridge_attach(bridge->encoder, > ldb_ch->next_bridge, bridge, > DRM_BRIDGE_ATTACH_NO_CONNECTOR); > diff --git a/drivers/gpu/drm/bridge/imx/imx8qxp-pixel-combiner.c b/drivers/gpu/drm/bridge/imx/imx8qxp-pixel-combiner.c > index d0868a6ac6c9..e6dbbdc87ce2 100644 > --- a/drivers/gpu/drm/bridge/imx/imx8qxp-pixel-combiner.c > +++ b/drivers/gpu/drm/bridge/imx/imx8qxp-pixel-combiner.c > @@ -119,11 +119,6 @@ static int imx8qxp_pc_bridge_attach(struct drm_bridge *bridge, > return -EINVAL; > } > > - if (!bridge->encoder) { > - DRM_DEV_ERROR(pc->dev, "missing encoder\n"); > - return -ENODEV; > - } > - > return drm_bridge_attach(bridge->encoder, > ch->next_bridge, bridge, > DRM_BRIDGE_ATTACH_NO_CONNECTOR); > diff --git a/drivers/gpu/drm/bridge/imx/imx8qxp-pixel-link.c b/drivers/gpu/drm/bridge/imx/imx8qxp-pixel-link.c > index ed8b7a4e0e11..1d11cc1df43c 100644 > --- a/drivers/gpu/drm/bridge/imx/imx8qxp-pixel-link.c > +++ b/drivers/gpu/drm/bridge/imx/imx8qxp-pixel-link.c > @@ -138,11 +138,6 @@ static int imx8qxp_pixel_link_bridge_attach(struct drm_bridge *bridge, > return -EINVAL; > } > > - if (!bridge->encoder) { > - DRM_DEV_ERROR(pl->dev, "missing encoder\n"); > - return -ENODEV; > - } > - > return drm_bridge_attach(bridge->encoder, > pl->next_bridge, bridge, > DRM_BRIDGE_ATTACH_NO_CONNECTOR); > diff --git a/drivers/gpu/drm/bridge/imx/imx8qxp-pxl2dpi.c b/drivers/gpu/drm/bridge/imx/imx8qxp-pxl2dpi.c > index 4a886cb808ca..fb7cf4369bb8 100644 > --- a/drivers/gpu/drm/bridge/imx/imx8qxp-pxl2dpi.c > +++ b/drivers/gpu/drm/bridge/imx/imx8qxp-pxl2dpi.c > @@ -58,11 +58,6 @@ static int imx8qxp_pxl2dpi_bridge_attach(struct drm_bridge *bridge, > return -EINVAL; > } > > - if (!bridge->encoder) { > - DRM_DEV_ERROR(p2d->dev, "missing encoder\n"); > - return -ENODEV; > - } > - > return drm_bridge_attach(bridge->encoder, > p2d->next_bridge, bridge, > DRM_BRIDGE_ATTACH_NO_CONNECTOR);