Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp470206lqh; Fri, 31 May 2024 07:05:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWPTbPYxrN1Aoy1z1kJJs2Jbb9i21GofdeYOj3/VNG+KosiqI0zfpfeD1s0dhxr4yKA+DEoibzy1UQ+wKPlqI4+HSSvl1WhM+q1d5eOpA== X-Google-Smtp-Source: AGHT+IGEfQ6N8DJuYhcPr390KD8r906hPHzPbH7wBdMLiVUEP/OvrMNHTlExmBEN9kWYVKVhUzeu X-Received: by 2002:a50:c312:0:b0:579:c3f8:5923 with SMTP id 4fb4d7f45d1cf-57a36411f10mr1733259a12.13.1717164311988; Fri, 31 May 2024 07:05:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717164311; cv=pass; d=google.com; s=arc-20160816; b=TLkNTdk8Qk+buo8YdzkRhTZiqtu99R9j5yr+ArZ1SnBbSiLzavyL85sAXAUzuQzBMp gXc6Hd3qgYbufFVkvIcmZZQHzBIkD5fd7cRyfUiJR+WDLBfhoPLESiOW6ghM/EyhVcwq /6vpFs/QWj8u3V8lhERbn/n07DEtko6GnnJ+AyUc/LRfa1wX1obuXmL+8+sbaeyVaahk BKzXhzMeldBfB/BOpZ2EiMHNNiiBcAP/rR5WR5IsQVV3R6FBNzW32gbOjb7ltR3dKoFu w0dq8VZIGg9nNvlaXBRP+O4A0Ae9UekC3D47VX4XgrH8jOrbILxW0CRmGxHr/hjMyb4C SlIg== 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:message-id:dkim-signature; bh=o/qvTrH1SiQj3MlmnfxDD66NKPm741DV2Sf6ZGRQjq0=; fh=YOnHqkzmWDXfNa1VUyE++ypl4XhDZFl644wWw9bSrwM=; b=z/eOONja5BCpWn96qn3MHVIXEhtU1sksfhoXeLR4HHd7X9PgqxcvabXlJj1v/m4phF QKdF7Jt6lE0hA8qi9DmLm0bm5LD8EaMgRIWBYuerUpUmsIXEB/cBTrqZ0ncZChpbHj4c XY7ftec1hyjDEZjWCrkxL7VmsqGISimD/NQkzQLqOvygQbJLWN92CIMc4t66nLL1GPzK +kb4tzSMimc2CwvSR+znnzVAErNGwx4xCWA5IbE0wCaEHE9MkIa1BnYDETU414dkMJ7g yzUv6Glzi27NU0+RwDm0+Fq8aLK+lj+vqDARGN3TOWlvkKltA7SE8dBrJ6vj9UqIYarP kifA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="dcdxt/2v"; 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-196943-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196943-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a31ba7e8asi979736a12.174.2024.05.31.07.05.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 07:05:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196943-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="dcdxt/2v"; 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-196943-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196943-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 7D37C1F26689 for ; Fri, 31 May 2024 14:05:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A9B5C161B4D; Fri, 31 May 2024 14:04:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="dcdxt/2v" Received: from out-173.mta0.migadu.com (out-173.mta0.migadu.com [91.218.175.173]) (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 F0E5C155C8E for ; Fri, 31 May 2024 14:04:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717164287; cv=none; b=arGaJ934bmcmyK5+5VwDIE3Tt95CyGnyU95atMNpkV1qC4K5mLZ3qky0GSzkeMmhUdPXotYj0G6cizEgmesA5hMqrCjUaaZA0t+b4VZ3M1fPLUCcSbFT6h5ci53x/EKQFIVLfR7xEJaV7cTq+Vbh6od0Mw4QNXjt9jUY9jwwZwE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717164287; c=relaxed/simple; bh=9X3/+K4zOUhzNbutloj3w6yI0u7JNa7iWNyhISz2UUo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=tPsLIn5zV0g28EY0iuFVhw3rVJKFNHlqJjCm2VHZC9aZDsDMu+YxXGRzmUsFCwCygKrPbCCrETQUlb/XFNo4hvqXrfVmMuM15VYor6DlUJsVxoKyMk9BTeXmqBvmLR+BXR2vPvYj1T9/tjczVc23ue7L3rJ9LENb2YVhFWBZjo0= 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=dcdxt/2v; arc=none smtp.client-ip=91.218.175.173 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 X-Envelope-To: sam@ravnborg.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1717164282; 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=o/qvTrH1SiQj3MlmnfxDD66NKPm741DV2Sf6ZGRQjq0=; b=dcdxt/2vKtqS3mvkvS2XwUo4rVK/Gi3jVopqG04THr1VzIf7XXW6pasFPOGn1fuDJAZp3Z pM86B8Jg1dR0SbpIP0CqPk90+ackIQKmtNnD+v+Pq8GQ+jUZuXT6gB8/+9qgOksy9sYsAa NrKgSHKf79u9c0ljICkoi5d5I1JCESU= X-Envelope-To: j-choudhary@ti.com X-Envelope-To: linux-kernel@vger.kernel.org X-Envelope-To: dmitry.baryshkov@linaro.org X-Envelope-To: andrzej.hajda@intel.com X-Envelope-To: neil.armstrong@linaro.org X-Envelope-To: rfoss@kernel.org X-Envelope-To: laurent.pinchart@ideasonboard.com X-Envelope-To: mripard@kernel.org X-Envelope-To: jonas@kwiboo.se X-Envelope-To: jernej.skrabec@gmail.com X-Envelope-To: maarten.lankhorst@linux.intel.com X-Envelope-To: tzimmermann@suse.de X-Envelope-To: airlied@gmail.com X-Envelope-To: daniel@ffwll.ch X-Envelope-To: a-bhatia1@ti.com X-Envelope-To: dri-devel@lists.freedesktop.org Message-ID: <955a6d94-9a4c-4f7d-974c-819261579f14@linux.dev> Date: Fri, 31 May 2024 22:04:29 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [v4,1/2] drm/bridge: sii902x: Fix mode_valid hook To: Sam Ravnborg , Jayesh Choudhary Cc: linux-kernel@vger.kernel.org, dmitry.baryshkov@linaro.org, andrzej.hajda@intel.com, neil.armstrong@linaro.org, rfoss@kernel.org, Laurent.pinchart@ideasonboard.com, mripard@kernel.org, jonas@kwiboo.se, jernej.skrabec@gmail.com, maarten.lankhorst@linux.intel.com, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, a-bhatia1@ti.com, dri-devel@lists.freedesktop.org References: <20240530092930.434026-2-j-choudhary@ti.com> <20240531133324.GA1715839@ravnborg.org> 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: <20240531133324.GA1715839@ravnborg.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT Hi, Jayesh On 5/31/24 21:33, Sam Ravnborg wrote: > Hi Jayesh, > >>> + >>> static const struct drm_bridge_funcs sii902x_bridge_funcs = { >>> .attach = sii902x_bridge_attach, >>> .mode_set = sii902x_bridge_mode_set, >>> @@ -516,6 +529,7 @@ static const struct drm_bridge_funcs sii902x_bridge_funcs = { >>> .atomic_destroy_state = drm_atomic_helper_bridge_destroy_state, >>> .atomic_get_input_bus_fmts = sii902x_bridge_atomic_get_input_bus_fmts, >>> .atomic_check = sii902x_bridge_atomic_check, >>> + .mode_valid = sii902x_bridge_mode_valid, > > As you have the possibility to test the driver, it would be nice with a > follow-up patch that replaces the use of enable() / disable() with the > atomic counterparts. > > enable() / disable() are deprecated, so it is nice to reduce their use. I agree with Sam. Please using atomic uniformally with a follow-up patch, the mixed using of atomic API and non atomic API is a little bit confusing IMO. > Sam