Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp246874lqs; Tue, 5 Mar 2024 00:09:08 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWcGUmKRLLWwGD56fzO93R0jtbJVkL6rQpeL0q7/QcJj4PbQC2dEtUPBj8B37C7MfQytWrxLA4jzRJV9zhzeLCjg1ewBhSD0E8snqlXSA== X-Google-Smtp-Source: AGHT+IFTar8Mz1kOT2Mvbq+JqAeJEkTPZptOwldhouQFNYXlmIG5eaZouLACdZp+u7hgwVL/YkC0 X-Received: by 2002:a05:6358:5281:b0:17b:71cc:8f5a with SMTP id g1-20020a056358528100b0017b71cc8f5amr1416548rwa.27.1709626148227; Tue, 05 Mar 2024 00:09:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709626148; cv=pass; d=google.com; s=arc-20160816; b=OLx2w6Iob62df2md/Mjbppj4BTOC1PYHIEb5eV71jJ8ixvDL0+q8m5fqWSeDDK9oU7 cHREOUrUv5Oz0URKVL8mu/yjiUM0KBj4kApLLzh1JFde9GaHanSzWBfpOAMTPnv7Lgop 9PKKMQr9444073CWDa/HrhwEQ6M02jxKfFT42LyX8go/BMm32qSllg1D2GKTazbWmnlC NIP+v13jXxyRhZCDBsypZg2KVp/dgdQ/dpHBHHvH0N7QgPSoy6fXanxXD+BAVb0kRXGv nG8IrTWIt3cwwY8qMdnXs1gJ3T4qNOW05Hhxem3BzkKJIYCmR4y0LXjQcjwMy45NWgS6 kiZQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from:dkim-signature; bh=oycIcvMjRdtmFAv6MGtf475epfX43L2XVzwqLHKLkHs=; fh=CINfgiOkLbg4auux8MA5lqd+jOgzSZDM3CMrZIQxtjQ=; b=bux1e78jHr+pLCTujomfPys86vCWexYzgYee873tGm7ZYCQOHq9QWeD5soL75dVRFH 8m+kGjDY6GKzO/raER7TTWisGNhmOOHxCQF8hq7xe2NP2O2QBh8x2hdhE6hxhsCF6wJN RUAHi0Q+rHCMst5GBTf/zVWVnNBoj91Ie0zJDhcu8d2MT39HvQeiCaz/SYTEqDL8f5AO G993Y+AJnCoO8v+l65sbN6GuDmXN/F+mF5lIfvfRrB5s+ia6ScMFvpadXd40JoFR+iLi DeSKo67FLgSs6n9f4M73iOc6ncwfxr3rAGznUwkKVktA057hXLveOrXKnc9X3nViHEYw wBaA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ite.com.tw header.s=dkim header.b=N9rIP+HV; arc=pass (i=1 spf=pass spfdomain=ite.com.tw dkim=pass dkdomain=ite.com.tw dmarc=pass fromdomain=ite.com.tw); spf=pass (google.com: domain of linux-kernel+bounces-91864-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91864-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ite.com.tw Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 33-20020a631061000000b005dc4f115f2csi9612391pgq.496.2024.03.05.00.09.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 00:09:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91864-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=@ite.com.tw header.s=dkim header.b=N9rIP+HV; arc=pass (i=1 spf=pass spfdomain=ite.com.tw dkim=pass dkdomain=ite.com.tw dmarc=pass fromdomain=ite.com.tw); spf=pass (google.com: domain of linux-kernel+bounces-91864-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91864-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ite.com.tw 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 E7C24B2098A for ; Tue, 5 Mar 2024 08:09:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 72E8E7EF17; Tue, 5 Mar 2024 08:08:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ite.com.tw header.i=@ite.com.tw header.b="N9rIP+HV" Received: from ironport.ite.com.tw (60-251-196-230.hinet-ip.hinet.net [60.251.196.230]) (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 AC3096025A for ; Tue, 5 Mar 2024 08:08:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=60.251.196.230 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709626134; cv=none; b=HGyCn9B+ZoAei94Rx2BPG5jGMS1WwjC2asdS6+tnlm4ZrfWYBMaKQT8LjXCA7RmpORVAnfNwKeKeKrrHbdaFcvT8WpZGHl6jtVWxBSJgy15GOiUB91x1pjDqDcULw2AZmdGMTUKGRv51jBi6zbk9pSKV6M5Z1JYxJLpIDeAqUas= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709626134; c=relaxed/simple; bh=oycIcvMjRdtmFAv6MGtf475epfX43L2XVzwqLHKLkHs=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=UhyrIkrHHcHvfDD2OaOrDSatReIshPbD+xshZlcSh8+caFxTq6atTcxD9JGKs23nmxumIzT7+GULeySRM2a9MGPi5TlzXKuP7nR4zRtArsZwPywm+RHQ8QfZCRhpnZpP0/Hnvl1MZ0n3dqHXncYXLqkmysJTrSvjU9/lM0G98dA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ite.com.tw; spf=pass smtp.mailfrom=ite.com.tw; dkim=pass (2048-bit key) header.d=ite.com.tw header.i=@ite.com.tw header.b=N9rIP+HV; arc=none smtp.client-ip=60.251.196.230 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ite.com.tw Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ite.com.tw DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ite.com.tw; s=dkim; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=oycIcvMjRdtmFAv6MGtf475epfX43L2XVzwqLHKLkHs=; b=N9rIP+HVmwvF/rI/Z5FWDcl8bY/mEOWncOv4WQvFPlW4ZUlQawAQDd3G AxBdw+Ou3yxteBNVvy0nH7gOvTnbb+w7hM6fIUe49WtX5J/VcaFXtAZ6q Ahs2RDZoyUEJzN0CGwLKn2bgH8Q+P5Lpa8z7vQl7VsNYGjY5Nz43G8D+t 5U2gpoMxD6dWw2wuYZJNAoE1lQNr5PzIQr290wlev4dUmIzZ51jGPfXYH tsmfYfkTGJ52YX0+uAgkk3IFHqnKd5YwtsV7cUwlRI15KF8j4hP5sAOLI N2dWeT98FRlfZ7MWL3MIZONLrp12Vd1oIGfHTehu+sfZlEtIGp5/81TjS g==; Received: from unknown (HELO mse.ite.com.tw) ([192.168.35.30]) by ironport.ite.com.tw with ESMTP; 05 Mar 2024 16:08:42 +0800 Received: from CSBMAIL1.internal.ite.com.tw (CSBMAIL2.internal.ite.com.tw [192.168.65.41]) by mse.ite.com.tw with ESMTP id 42588Zh4055262; Tue, 5 Mar 2024 16:08:35 +0800 (GMT-8) (envelope-from kuro.chung@ite.com.tw) Received: from CSBMAIL1.internal.ite.com.tw (192.168.65.58) by CSBMAIL2.internal.ite.com.tw (192.168.65.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Tue, 5 Mar 2024 16:08:35 +0800 Received: from CSBMAIL1.internal.ite.com.tw ([fe80::c9da:6689:2b22:a2d6]) by CSBMAIL1.internal.ite.com.tw ([fe80::c9da:6689:2b22:a2d6%3]) with mapi id 15.01.2507.035; Tue, 5 Mar 2024 16:08:35 +0800 From: To: CC: , , , , , , , , , , , , Subject: RE: [PATCH] drm/bridge: it6505: fix hibernate to resume no display issue Thread-Topic: [PATCH] drm/bridge: it6505: fix hibernate to resume no display issue Thread-Index: AQHaZLV1icdzL4nqO0S5roND258Qa7Eo3nMg Date: Tue, 5 Mar 2024 08:08:35 +0000 Message-ID: <861b89563c964bda8451902ecfe2aedf@ite.com.tw> References: <20240221080441.190922-1-kuro.chung@ite.com.tw> In-Reply-To: Accept-Language: en-US Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-tm-snts-smtp: 8DE87418AE84C504BB0309B588A5FB82732301BD3BF2057A22EF04C5AB3FC4952002:8 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MAIL:mse.ite.com.tw 42588Zh4055262 SGkgUGluLXllbiBMaW4sIA0KCQ0KCVBsZWFzZSBzZWUgbXkgcmVwbHkgYmVsb3csIFRoYW5rIHlv dS4NCg0KQlIgS3VybyBDaHVuZw0KLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCkZyb206IFBp bi15ZW4gTGluIDx0cmVhcGtpbmdAY2hyb21pdW0ub3JnPg0KU2VudDogV2VkbmVzZ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