From patchwork Tue Jan 18 08:44:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jammy Huang X-Patchwork-Id: 12716132 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EA499C433EF for ; Tue, 18 Jan 2022 10:10:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=zSLrVpz56zHW8trEPSXjVNtHhNyWqCXda4LyujJhqrw=; b=l9eUHWCTAnQLG9 pgw++Q/yi/p4Tbrpqfud+f00SXs97fa0xRlW6ITilX0+ghsxarOzX7DkRyhZXQj108YTk17tcFALo 05JVvxMmy6+nDEMe57pxMbN5KH7mnaUnw5IXo+7t6ArTfxLP6AeIX+wqgtoWD9eEByXycOV9TRtk3 VPBsFaN7Rz8iZldYXKcjex55mZG50/c0mYlIF3bypeXCL/VMvrMWRx6yOA7B50jrScKuz9EWgmUZ4 GZ27O7WK/CecGGMydI61mxiRPoXspbHV57YB7FXmF7ov08tVC/PDpNuznpcYHvBkQeKLs6rWqfQL8 FYQXvlyZUq2GzICONGCA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n9lQ4-00166U-VI; Tue, 18 Jan 2022 10:08:53 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n9lPp-00160g-Pw for linux-arm-kernel@bombadil.infradead.org; Tue, 18 Jan 2022 10:08:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:Content-Transfer-Encoding :MIME-Version:Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-ID: Content-Description:In-Reply-To:References; bh=Gt62jeXOZtYqnQHtKDpzFn8B5OqKeJeZmTeG0YnxwGo=; b=k/5Jfal8QpAKdeiuPteFi1SX5z 2zjVphjEfWZBj2uthIWau5Svh2KNFjF/b6yX09ybHAoKqnVf+xJrIa979lkx7EdnDRxG6ISm1sSU9 D5krTUA1detMQ3G+P076wVMKjOgnnEcEQlZrOEpnnc0CblAE2tWtv8dAEWlERKS23EuEdaoJ4P69/ IQ41AzKWgzKxxjEshTGKJiqm1mfcbcReadBu9/yrbyUVa5IcQy36GGtNn42KQ8Dz4neMuFnmaG1qb g1TSkcPuoWeQPUcOOCnMOXs1zy1YFpeszL1mA673IF+d9HSVfISMk99uPV5FZnejsDt+izv4g/qYw A3B0krDw==; Received: from twspam01.aspeedtech.com ([211.20.114.71]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n9k7h-001oVp-0Y for linux-arm-kernel@lists.infradead.org; Tue, 18 Jan 2022 08:45:51 +0000 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 20I8c8hV013910; Tue, 18 Jan 2022 16:38:08 +0800 (GMT-8) (envelope-from jammy_huang@aspeedtech.com) Received: from JammyHuang-PC.aspeed.com (192.168.2.115) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 18 Jan 2022 16:45:05 +0800 From: Jammy Huang To: , , , , , , , , Subject: [PATCH v3 0/2] Fix incorrect resolution detected Date: Tue, 18 Jan 2022 16:44:47 +0800 Message-ID: <20220118084449.5182-1-jammy_huang@aspeedtech.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [192.168.2.115] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 20I8c8hV013910 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220118_084549_747124_EADACF88 X-CRM114-Status: UNSURE ( 9.20 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series fixes incorrect resolution detected. We found this problem happened occasionally in the switch between bios and bootloader. Changes in v3: - In v2, we tried to increase the min-required-count of stable signal to avoid incorrect transient state in timing detection. But it is not working for all conditions. Thus, we go another way in v3. Use regs, which can represent the signal status, to decide if we needs to do detection again. Changes in v2: - Separate the patch into two patches Jammy Huang (2): media: aspeed: Add macro for the fields of the mode-detect registers video: aspeed: Fix unstable timing detection drivers/media/platform/aspeed-video.c | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-)