Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1858818lqo; Sun, 12 May 2024 23:43:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVDWzKE6r0zgTQP6yNYPUsB35Xi7NqQWRNMYdhdVpT6RW76XuUSuLuSzZnVPDH9d4TVGamm5bTxs0z72ZJNpWDDlzXU4Vw7MiYzAil6Qg== X-Google-Smtp-Source: AGHT+IE0LdiSSQl+MwX7FBEAs7uZTjD7GHM2YDwYz38ZfMN3oSk+M+1te+TUSUcF8qdLFdTQfQYP X-Received: by 2002:a05:6a00:179f:b0:6f4:3fe7:7aa9 with SMTP id d2e1a72fcca58-6f4e02aa523mr10470094b3a.10.1715582609930; Sun, 12 May 2024 23:43:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715582609; cv=pass; d=google.com; s=arc-20160816; b=SbJ9B+jQ9fuCes0iH9LAc7HbG7Xvr3C1XqKDWzRDp+n9Xm+Swmpc3RQO3k/Q/aEgkn IIva2DfFd1f0ehGdcYi31rec0IYdKSdaLiAPd8PNXGEvoOX9K8P+gRkH5D9hiygFoxeP 7CUZoJobKhjJH7pXYv6++rFQUwJ6LKCNYzxPCsohuOSuVK3v/V9XXe96VDiw26G1pU6+ ckmUQUrBjbjqH+BmU3URThk/BcO3ilTRr4ZeevV6fihQNEkJyof8BsXUWaL99+vcbi8f WaKxGEw6V/zJEb8/X6Ms1cl5BYWDjlCSOrvZQAYgcT/Hdy3j4MJEfn7B8EfHfMzr9iRL SNRA== 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:content-language :references:cc:to:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature:message-id; bh=9wX8NMO96pXgObmwZJgkX492lcaLyuWMCeWzF3eqfpI=; fh=5RqRfAHLKLE0rWxo1Z3RCFEMGcAAjBtWZ05wk4kV9M8=; b=PuZAb1wofE/XxCKD0HfdpXmMrVS5YAGxCVjna0U2a8KTX7BPps540xlYIvEOQfgEy5 wxqJkvGB/rrekjPva6Rcxf+PLvHFgYeYBVGifeczTVnEZTPyxcqsr5EiOQCArR9pYA60 8eXqte6O33iosqyLHfhkEOKE74hbq5a+fET6nLhY9rF3cSWJ5XlHvFXxY/L1ItSyQvwm BttldMVOv22zyVLmWLfSPaA+Mxf21BUu7qjz4zuiOJ+aM7APaFEQJPRcd3DaSuKQJpD7 O0SC0QUnFybAUr1jHi2+VwVLNsIAZ3uBKi4lQxOZcJYH2Hx2+HA10ZuRx4pcuJOsuzHK BBDQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=B+7jWjRB; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-177218-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177218-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2b519afsi8599306b3a.392.2024.05.12.23.43.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 May 2024 23:43:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177218-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=B+7jWjRB; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-177218-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177218-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 11EDBB20D96 for ; Mon, 13 May 2024 06:43:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E08F91465A8; Mon, 13 May 2024 06:43:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="B+7jWjRB" Received: from out-177.mta0.migadu.com (out-177.mta0.migadu.com [91.218.175.177]) (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 3C1B150291 for ; Mon, 13 May 2024 06:43:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715582602; cv=none; b=pxGn7k0rQmAl5eNXtR4d3tFPu7z59HV4qDefpHnMW/rZ90hUaxxrF/zHi5+p6+DZl03EyoJUog8bdntUEBUgxrfcMuOKXfcqLeEDGME2L019ysesPag8yCtvMYaQ/UWu6wGfzvvhcGQlwiHWB6IvU3pd00jYUd6YWwN1/q/ygQc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715582602; c=relaxed/simple; bh=uMSLU95WSD2m9hke8Y9SIwl8RyuAbtHcqjiL6WGb7DY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Bap6c79bc3qTGYNXuk8zkln7ncTaqtwPERGU5gb0XIXSXl/Y7fVyRi1zaVjkP/yNopKiMV7feZjVkuPwUPavsVdpJXJ6LPqErl+t5G2dWh73iOpILu+COgEtKINDQp2bMcpCzsBKUOBULCd3rUZK17ejyTJ1AB/5tII3HAQzYgw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=B+7jWjRB; arc=none smtp.client-ip=91.218.175.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1715582592; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9wX8NMO96pXgObmwZJgkX492lcaLyuWMCeWzF3eqfpI=; b=B+7jWjRB1V3KA/PHj0c1iZZGcssVmdjbTmTzUuAyDwRW4hCQxRQTAxyy1sEKKQypjg4iL0 ear4ggZR7foRmFNSok6/FxvgKKgkGnrYMNSo6h3jBzymrExxEVt7qbiBqvofMqnZ7Dltok nqvqIOT+HkAEOGtGOgv1dVdShOy4Bbg= Date: Mon, 13 May 2024 14:43:01 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH] drm/bridge: imx: Remove redundant checks on existence of bridge->encoder To: Liu Ying , 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, en-AU X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Sui Jingfeng In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT Hi, On 5/13/24 13:56, Liu Ying wrote: > 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. Right, my bad. But personally, I think rename it as ldb_bridge_attach() should enough to express the meaning. :-) Maybe, reword as > "when various i.MX specific bridge attach functions are > called." > OK, fine. I will correct the commit message at the next version, so happy being reviewed. Thanks. > Regards, > Liu Ying >