Received: by 2002:a05:7208:c250:b0:86:f851:443 with SMTP id w16csp936352rbd; Thu, 13 Jun 2024 01:40:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVkxpZpE21Bzf4chV+ibWwSbH1qzGDXedSNucSwwaWIBGtcUby4mG1M47kheaSa9yUwx++jjwc7LdMSRNkNaSSjUcrrWD2TrE1u641SAA== X-Google-Smtp-Source: AGHT+IGSDfUDbH1YbInEVD7jIp4wFMd9ucr+McQU9OtYoAIJ6nimY9qGt1D1OQIl1+E/cyfoLEb7 X-Received: by 2002:a17:907:320b:b0:a6e:771a:2a8c with SMTP id a640c23a62f3a-a6f47d35a55mr281755866b.21.1718268042250; Thu, 13 Jun 2024 01:40:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718268042; cv=pass; d=google.com; s=arc-20160816; b=LFHHJ5+a26ixkhmEAvLyrqOp58vUQVlPY3PXXBN0d4X7Q8d0IZcPoaIs9gh2Colo5q fuL9dAghrN2iW91M+n7gV6TxAQIn1hO+9g7EwgQw30BwkRE09UHGHq6OQWtvQze/+PPE R9V6FUAJutQtnQjjJ+y4pLqNjnBIWzBE8xisyAhBQxPI5WmLw3YVeIhJsvyq95WRQeFL ZcuPFxtjC45nKvXFe2pfCq/mVK7nm57fBjkLkvSCc1dH+xHeKU/3cOLobd4edPkurTyi a4ikNopbwoM9mBnGJiXz4NO90UZsjgKFjVZkqT8Yssm6yVUNXi7ll4mtoR8wUSHhnWyc sj9w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=rnfhvDvJw5BDb0tI21qEyro5d0f4cvwu1uctUDeRUpc=; fh=t0QNipbJl+LjstaJYccTR8asN890wrUDDAYih3UUEBQ=; b=wORaF9x8PvboTqCny32uA7uRc/y+VyBF+mnlNRPioXTaxr6MK7afAsR8Sab5EYJfpQ HSDqwBqsQbhhOcg/RMKgNmbxzuuELaceCbquxfsn7rqkvSx92WdhyelvdEltzbE8ITtg dDyN37QVitD9c57rWV+MJQ0qwcMRohgM/RGsk88bFeXNhw4IxWaFdXdN/S5MSz9yXJgi 80EMMO113c6jpF96VuEWdONKX4gePUrX5hNH19v351/5XQLf6mORBIDXAtZmd5DlsX51 emTefnyXypmyEZYGOsQ+TM8zceOUUQb6S47JedxXWZ7rxXBBJ6SktRXmcka1b6csk4lu +vFQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=KTAYPLxW; 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-212842-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212842-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56e3b547si47019766b.872.2024.06.13.01.40.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 01:40:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212842-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=KTAYPLxW; 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-212842-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212842-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 am.mirrors.kernel.org (Postfix) with ESMTPS id D29581F2169E for ; Thu, 13 Jun 2024 08:40:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 398F01411C0; Thu, 13 Jun 2024 08:38:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="KTAYPLxW" 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 2C956140391 for ; Thu, 13 Jun 2024 08:38:49 +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=1718267932; cv=none; b=f1DlHM5QKwtJq8otB8gUK/PmFfbI6kTFWO07TDzOKXeCkz8Jwjn8M17ZI+JSWPUmcHRAFN1Scila+DIKQurEVGZbDPsJSs5evaWPd7kXOp0qhWO6c5CQtni2twW86twRe+URd9mlxCu6rOpAEXKWdelFgdS0rvhpiYCF+bxEFC4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718267932; c=relaxed/simple; bh=MWNouuqSZvXZjJDbEM92fUobJMR1CVQGZ+VNuoHMRjc=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=qqeRTn2jjyWUBnGHflPMuApROmfggHdl/jh7zO+l+5BIssAUXYbmxST+p4XaiBwG9LysosYndPAJokDl175oAWdxiIWfVWNpJK5U/3H/sdqifWTd0vVA/BN6UMtC1/EyWXARRrteAo2f6zkzxic13M9elX5EWHWUhNbRH7ALVG4= 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=KTAYPLxW; 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 lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 45D8c9oS013085; Thu, 13 Jun 2024 03:38:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1718267889; bh=rnfhvDvJw5BDb0tI21qEyro5d0f4cvwu1uctUDeRUpc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=KTAYPLxWLKkYWkwONUUxW3pMU9WhDSsscu7nOS6HFs5iZ/o1CudEngNXvmMiZ5QsI XbagrNcU+LQhsTMQ0sFEn4iFW5n7rZ2Gbw+3515qhWbQNWVV12Jj4c+N5Hr4fdzZQV sPCTx7amKyAAFrqQg8TBIP1Xcy6TbTtv1eqYEfQs= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 45D8c99d094221 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 13 Jun 2024 03:38:09 -0500 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE100.ent.ti.com (10.64.6.21) 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:38:09 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE107.ent.ti.com (10.64.6.28) 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:38:09 -0500 Received: from localhost (jayesh-hp-probook-440-g8-notebook-pc.dhcp.ti.com [172.24.227.55]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 45D8c8hb079355; Thu, 13 Jun 2024 03:38:09 -0500 From: Jayesh Choudhary To: , , , , , , , , , CC: , , , , , , , Subject: [PATCH v5 2/3] drm/bridge: sii902x: Support atomic bridge APIs Date: Thu, 13 Jun 2024 14:08:04 +0530 Message-ID: <20240613083805.439337-3-j-choudhary@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240613083805.439337-1-j-choudhary@ti.com> References: <20240613083805.439337-1-j-choudhary@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 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, -- 2.25.1