Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp17828lqs; Thu, 13 Jun 2024 02:24:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVoi3w8mVsoicuCugGjNOv8TfOnYHgSufi5Bx1tYkmhqqpPtzke/dCxg5Ra20Fg7mAQmWq9S0juY8UfLrlZfeSlRr3QDCeJjFfgocPoPw== X-Google-Smtp-Source: AGHT+IEfhmxtpss+4mVybL0ilFHGKmx8+TbMlkJdZXMtwQETYIZ2ecR8Kf+HzbvNEdktm/IR/uSz X-Received: by 2002:a17:902:d4cf:b0:1f6:e20f:86b4 with SMTP id d9443c01a7336-1f83b74feefmr44146005ad.61.1718270686213; Thu, 13 Jun 2024 02:24:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718270686; cv=pass; d=google.com; s=arc-20160816; b=XQSH8iTg2NCBf5ek9/mSpJPve1rkws/hU7A013lvwBV3Ahm3PazS5YQoGMjTBbmuxK ev0atL9vhFThngjKzgbK3/Z9oVtfC+YRqH7Z6bFMzLHIzudeYt/sH7DQ7hSCz++AjcT4 V9KfZThOOJh3fZ66ohQJxkgNaPIPIX1reQzVEslMFoQaPT1zvL0QvyrS+usU402dDlpN KkdBJYahvGMmcESS2i9H887ZrhSqINB80nPyB+VnSpgFCsb62Mx+4AwN34hyVqGhwtzc bhKMWmTydT3/VuoL8f0GHEuMzN4Pjn3/fSbynM/0A1xBuKVx64l8rFK52cBPm50s3TW3 qh+Q== 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=39EYWY7+nUf4nZ2MOh8ZDienfKEg5Se8HY2Tilf3GX8=; fh=ciz97why7jCcCkI9QVpzHdXwfWu+K+1+W2pjM8O3knA=; b=RbzShDFTzhh5rNVYGQFIAbEHb8XpWKPdsdMVmBQoDAZ/4jiE/I1RBasZJCreRZwLsd +3UYOD4uYg3z6k7T+ZmcrWmf8KQYEwKp/l+gI/76vkgCZeaQDEnISLKLcSxrHbEhGq+A iCu2smscWb28S3ptMqxyCuzNW88PQumNvWJCyMsdxP7v9nLSZd+KqR1JaarwqGHw91mF mPNf4YhBX4nZfIRsKvbSYZA4Veo6R6BPHv17blsDo9RYEiyqEexOFmf99dtG1CYWy5gy lScc0x+5KcIZmo/jNOgjaD+UX6qyjeJm4cV8xaBNb8SJ1aXGHjer3rPAxFZtGvDs3eTL Q3NQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="Bd8/+7lD"; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-212884-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212884-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f855eca980si9292525ad.205.2024.06.13.02.24.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 02:24:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212884-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="Bd8/+7lD"; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-212884-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212884-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id DFA9CB224B8 for ; Thu, 13 Jun 2024 08:54:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4EA8214038A; Thu, 13 Jun 2024 08:50:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="Bd8/+7lD" Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (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 F078E13E04A for ; Thu, 13 Jun 2024 08:50:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.249 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718268648; cv=none; b=KyPqaKdHAGRj+JwzBvVhWZfM24GTT/UVOmGJVDT1AQiTzpH/iyWdDFNl6jWsLeRTPozrxepT4QodMcwjF4CttP1r7IEE8IiWvywuEXEHC7yg0WmkidvHlaLOGH4vg9eWcHRdPuSv2aHC+jGMNxSLxCSmyWh9ql91v7IEqwNzLX8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718268648; c=relaxed/simple; bh=vGjpnmrPC+QP/k6kxF0jRLsKiEXE0wG2htjfoZ2yq2s=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=ElhmneDtnC5BDj8nkuaUXMHweXvK7CyHy+K2UvemFe/Z4pUYvcqzXtut1WOIFTEnlMqZ7vpzv3PmBUuOQmHwsi9arc9hyXm6ObTVT+cvvYjoLBK3mWESiSKoVFOlqpy3Q/s/6wI2HnyrOYTgWeG9gojQOnE4oQiYzLIcdCngp4M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=Bd8/+7lD; arc=none smtp.client-ip=198.47.23.249 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 45D8oMcG015265; Thu, 13 Jun 2024 03:50:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1718268622; bh=39EYWY7+nUf4nZ2MOh8ZDienfKEg5Se8HY2Tilf3GX8=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=Bd8/+7lD2OifN2hDM8Tj4cZeCorKA8kkTo905N6atrcelrGMmUCuXueH0OE2t5TuK tzzZmJmv2sYmEqtyhR5sU11Y+KYRrvJUEmZ0qdvG53KtVVgnQVF8/Ft4x/6cV3rFzM lHlPPVovdt3qJXkIVds4LTw1Jn1j445RJvunwrlM= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 45D8oMOv092927 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 13 Jun 2024 03:50:22 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 13 Jun 2024 03:50:22 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 13 Jun 2024 03:50:22 -0500 Received: from [10.249.129.248] ([10.249.129.248]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 45D8ntew089041; Thu, 13 Jun 2024 03:50:16 -0500 Message-ID: Date: Thu, 13 Jun 2024 14:20:16 +0530 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 v5 2/3] drm/bridge: sii902x: Support atomic bridge APIs Content-Language: en-US To: Jayesh Choudhary , , , , , , , , , CC: , , , , , , References: <20240613083805.439337-1-j-choudhary@ti.com> <20240613083805.439337-3-j-choudhary@ti.com> From: Aradhya Bhatia In-Reply-To: <20240613083805.439337-3-j-choudhary@ti.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 On 13-Jun-24 14:08, Jayesh Choudhary wrote: > Change exisitig enable() and disable() bridge hooks to their atomic > counterparts as the former hooks are deprecated. > > Signed-off-by: Jayesh Choudhary > --- > drivers/gpu/drm/bridge/sii902x.c | 10 ++++++---- > 1 file changed, 6 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/bridge/sii902x.c b/drivers/gpu/drm/bridge/sii902x.c > index 6a6055a4ccf9..00a8c469f553 100644 > --- a/drivers/gpu/drm/bridge/sii902x.c > +++ b/drivers/gpu/drm/bridge/sii902x.c > @@ -322,7 +322,8 @@ static const struct drm_connector_helper_funcs sii902x_connector_helper_funcs = > .get_modes = sii902x_get_modes, > }; > > -static void sii902x_bridge_disable(struct drm_bridge *bridge) > +static void sii902x_bridge_atomic_disable(struct drm_bridge *bridge, > + struct drm_bridge_state *old_bridge_state) > { > struct sii902x *sii902x = bridge_to_sii902x(bridge); > > @@ -335,7 +336,8 @@ static void sii902x_bridge_disable(struct drm_bridge *bridge) > mutex_unlock(&sii902x->mutex); > } > > -static void sii902x_bridge_enable(struct drm_bridge *bridge) > +static void sii902x_bridge_atomic_enable(struct drm_bridge *bridge, > + struct drm_bridge_state *old_bridge_state) > { > struct sii902x *sii902x = bridge_to_sii902x(bridge); > > @@ -520,8 +522,8 @@ sii902x_bridge_mode_valid(struct drm_bridge *bridge, > static const struct drm_bridge_funcs sii902x_bridge_funcs = { > .attach = sii902x_bridge_attach, > .mode_set = sii902x_bridge_mode_set, > - .disable = sii902x_bridge_disable, > - .enable = sii902x_bridge_enable, > + .atomic_disable = sii902x_bridge_atomic_disable, > + .atomic_enable = sii902x_bridge_atomic_enable, > .detect = sii902x_bridge_detect, > .edid_read = sii902x_bridge_edid_read, > .atomic_reset = drm_atomic_helper_bridge_reset, Reviewed-by: Aradhya Bhatia -- Regards Aradhya