Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1180513lqb; Thu, 30 May 2024 02:43:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWn/WU30nN/JAOEiBl1D6oZPc/efijt4iAV29egeZ8mkhcTIs8VDD4FA2oFYrsP259Sm68DIufXPXId5sf9w9TsC9xBCgcMcCg3t5hRMA== X-Google-Smtp-Source: AGHT+IEluu9s767Yc6kDYYlccdG7gbsl2nklkPnVCNuG2V2fmcco5CP/phT5ULCn8UlLXLcKoIB4 X-Received: by 2002:a17:90a:e2d7:b0:2bd:92e7:c305 with SMTP id 98e67ed59e1d1-2c1ab9f7034mr1657506a91.21.1717062237171; Thu, 30 May 2024 02:43:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717062237; cv=pass; d=google.com; s=arc-20160816; b=un0djbjj8Euo58/QDexS6MR0r6VncWmcHYhgNb3vSeLqhPU02wdBEtxBq9RSrYIVS+ 44LZX6R1H60Snd4oDXIy9oz7J3qBj7amr3ispEE5o311yoHyI6qFICJxnu94gRVrlc1c WaMmlesmXwopGqZd9JIps9jzef+rvZjSM3472jSfdu0ZrU7wlwz9+wRHQnj4jmV11MEF 3EuTpT1QBIyDcunVeOjRfrGQno5gjeJRGS/1QWgoWKuI2lAs2/qMnWcyIPCKWS8ZopEW +6HTTHI8mmxpH4D0SkBRhsGOe/jlPyLmvbvuWi5XWFgcenAJiFjFDyEI56uZ3WLjKXlB qmCQ== 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=8IsrSRtFydZv3T+0eIRnXTxvkv96aiYK/zRbroJAvnw=; fh=fWFkqWhkEWu3rFwNeYdXbOcQQfbvrHCRIs7r20HyHeE=; b=elPPh8uk0f+1+uVixd+UuH6astz80XPC1QoVPmcWBrZ/DmLMrJSqXfgs8xn1pdMNZB MAJ91V0Q+Ua7SaOEZNee3RRw+Lfj20kjQqoDrT/D9uv12uzDLA+95sXsrdqhq30WccYh 9PyhplauqcA0WZlYSOoEh+nU5vD9/RoLoYN2W+IcAhsLoyRUE0BqQ6GP3braGq0ymAMm z3gfNhO6Ie0PuLgl1qn70wkkjIWJhNkAr11m7CdKtPfAywd39MXI4imr3Gj5SsTguJMr YvwBQ/QDSG0FG4Naz/Z+hnGFdQRYOyfESniveqdAh6Zq+knGDiR9JZSrVDUzdNw/Yij9 PFVQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=NbWkCLyi; 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-195192-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195192-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. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c1a77b9bd6si1311903a91.113.2024.05.30.02.43.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 02:43:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195192-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=@ti.com header.s=ti-com-17Q1 header.b=NbWkCLyi; 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-195192-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195192-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 6813AB244BF for ; Thu, 30 May 2024 09:36:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C1FAB74076; Thu, 30 May 2024 09:36:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="NbWkCLyi" Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (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 84AAB18396C for ; Thu, 30 May 2024 09:36:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.248 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717061807; cv=none; b=eudXUJzVg08g9vdrqoaKTpXkckEd+GUyJbQLOtnjtM/EMVyorLOsKdCxfDbEphYf5TyH0AR0oU3YCF8zxfiYnxWqaXuVUj1Bgg1Q7VBlVQMwITPdbDVPzymkWBIS5e8GDgtzpM78oEtoGEFjYTICmBBZcTqwydqoOJd+6NhtAq4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717061807; c=relaxed/simple; bh=JiFEQeqE8G8g8PcQJBsUUHzXMQn0i0rKi4ih5hsEpfk=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=BVjdZR0Q+08tics/xa6kupYNb7Is3YofZ94VhfO0SArPkZmupiDQOOVdXwZXzleeTRUChxJIm1teEk7uqNOqnvp1MFmrlS+8KOUzY2xm829NY72Vbjy1Ovxdf1N4hrDiqw0kkCrQCv1w+DU28XdqjHqcXXbMzVPRTUdb96wE3xs= 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=NbWkCLyi; arc=none smtp.client-ip=198.47.23.248 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 fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 44U9aQX4055554; Thu, 30 May 2024 04:36:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1717061786; bh=8IsrSRtFydZv3T+0eIRnXTxvkv96aiYK/zRbroJAvnw=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=NbWkCLyiXn22mHNHAVj/Qir2Nf12AdmLgoZwihAmwLFup9REorPyDNtH5tZ9zvkb9 dMOTi6rY0RR2l3VJKAjP0ReQlE2lGGtPTN6+QNtcvIOWZJJ8/qGEB2VkH2z/5/uvY7 HTVFGDTXYbEEEUIRS0a70AMIsoC7FxRoQi+IWxJA= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 44U9aQZQ128496 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 30 May 2024 04:36:26 -0500 Received: from DFLE102.ent.ti.com (10.64.6.23) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 30 May 2024 04:36:26 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE102.ent.ti.com (10.64.6.23) 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, 30 May 2024 04:36:26 -0500 Received: from localhost (uda0496377.dhcp.ti.com [172.24.227.31]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 44U9aPth000471; Thu, 30 May 2024 04:36:25 -0500 From: Aradhya Bhatia To: Tomi Valkeinen , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Jyri Sarha , Thomas Zimmermann , David Airlie , Daniel Vetter CC: DRI Development List , Linux Kernel List , Sam Ravnborg , Thierry Reding , Kieran Bingham , Nishanth Menon , Vignesh Raghavendra , Praneeth Bajjuri , Udit Kumar , Devarsh Thakkar , Jayesh Choudhary , Jai Luthra , Aradhya Bhatia Subject: [PATCH v2 2/9] drm/bridge: cdns-dsi: Fix the phy_initialized variable Date: Thu, 30 May 2024 15:06:14 +0530 Message-ID: <20240530093621.1925863-3-a-bhatia1@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240530093621.1925863-1-a-bhatia1@ti.com> References: <20240530093621.1925863-1-a-bhatia1@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 Update the Phy initialized state to "not initialized" when the driver (and the hardware by extension) gets suspended. This will allow the Phy to get initialized again after resume. Fixes: e19233955d9e ("drm/bridge: Add Cadence DSI driver") Signed-off-by: Aradhya Bhatia --- drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c b/drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c index b016f2ba06bb..42565e253b2d 100644 --- a/drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c +++ b/drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c @@ -1153,6 +1153,7 @@ static int __maybe_unused cdns_dsi_suspend(struct device *dev) clk_disable_unprepare(dsi->dsi_p_clk); reset_control_assert(dsi->dsi_p_rst); dsi->link_initialized = false; + dsi->phy_initialized = false; return 0; } -- 2.34.1