From patchwork Tue Jan 18 10:07:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jammy Huang X-Patchwork-Id: 12716128 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 3699CC433F5 for ; Tue, 18 Jan 2022 10:09:13 +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=5uf8QKSnFcYlyTd/3LpCVMzGZHwgaRZqfidzaFfjAR0=; b=uxzgkiMJWIbgBo 3JKt2kkcrqsBFyg/2sV0lfOb0Ikf48EFHx0BOpLsp6M+JmZnzG+y6+6vDWE+naVePx0yqGXNtiP0C /cqryaiFOqIn6DBdVX19AJo8GDQdNDFwtKmtiJ6ja0m/PFk5r1bk/dLFHXRn8Aj7Ai51UJo28nUfZ n3PQZlLFaWp2+Y3KEp1h1i11ae6Ned/CB3nnGgiltpZFVfibssjfL8adqg0Sk1gJjw8AqQ5ghZBI7 kZRXLK2bjYmRXRBwoTL1x2ERR9MUdruio4AiE9LFMcDdEYcQ0gNUPTJrb+rm0JmyKN/prN2RvvGuN eS+6ZRFRd+7jwDKfOZ/w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n9lPB-0015pt-5Y; Tue, 18 Jan 2022 10:07:57 +0000 Received: from [211.20.114.71] (helo=twspam01.aspeedtech.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n9lP7-0015oY-J0 for linux-arm-kernel@lists.infradead.org; Tue, 18 Jan 2022 10:07:54 +0000 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 20IA0RJ0021056; Tue, 18 Jan 2022 18:00:27 +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 18:07:24 +0800 From: Jammy Huang To: , , , , , , , , Subject: [PATCH v4 0/2] Fix incorrect resolution detected Date: Tue, 18 Jan 2022 18:07:27 +0800 Message-ID: <20220118100729.7651-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 20IA0RJ0021056 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220118_020753_899150_9EE3A8AC X-CRM114-Status: UNSURE ( 9.28 ) 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 v4: - Correct the subject of patch 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 media: aspeed: Fix unstable timing detection drivers/media/platform/aspeed-video.c | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-)