Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5218865pxb; Wed, 26 Jan 2022 07:18:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJzR6LhiEawMHaubk18Gofl/d3RmSafkbx9yi57S3RzUaUxa4skZl+G3NtIA/pZf+MAyYBqZ X-Received: by 2002:a17:907:3da5:: with SMTP id he37mr13711138ejc.240.1643210288643; Wed, 26 Jan 2022 07:18:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643210288; cv=none; d=google.com; s=arc-20160816; b=C2WHQo9K5sgVBgD10mXFHWyJIL0vxtlzXUKuvL5Q9EG1pqhwsOwx24s+4e13Qs5Gjw EU+X+IbXXjDNk0Jn3z2OSAqCoskATdHe4BBvF9xZ0RiPSAMOye0MQ2XvmYTMmyQL7fwC VARLDoG4vcdqnvHXGyI9ifqi7dBAXL5p9bJKknmaLS+BDbmlvff9qFZnFRQCBbdoNwYA my0CMPLyeNcdoo29CEo7WCdy8kuabLCQBOQKIyfqz0Jd0/yaBU2LDYjM0BLMUKDOnZVf ImGyjgSUl6LCQHMCthn2CsNrfOUcuzkjbRdYWW+XMXLFghv9YjBVgInvrv0ehhMGrBxp J68Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from; bh=WlJyNv2JUDgEflTAIOV6mMTnpE/+GrgoUg6cOQE6w9A=; b=gCeOMhJQHcGroGIE9fmfSdBI8CQ4SRtbcVKqZYCH6X3jPzSsmcwfFUH0l2AzEgkmCd 9ZlrpSd2HwpN7tHpMvQKZvEoqaVWYwUp21lCicUdJM4SJXvMoqJNX5akTrMfb/ZZUdpU rQIfHJ/Qwi7W0guYvoC584a0G3bo5rGDsXJn9zgK/VO8JqQQcSjRJjzxZx7xU8CifE81 wuDAS6kJq39DH+ZJ83rMlCZYdpTaaysgoU28HMqHzvp5LctAnmBp7LSaOag0rCLgYJgZ Gso7M/ypUbM4yXn19EndstSy7x5+UpNNl/kMr9R5mwYBkgx7Z/yqW6mEHfSRgPpdZ80y lrqg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gn42si3431673ejc.902.2022.01.26.07.17.43; Wed, 26 Jan 2022 07:18:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235963AbiAZBsW (ORCPT + 99 others); Tue, 25 Jan 2022 20:48:22 -0500 Received: from twspam01.aspeedtech.com ([211.20.114.71]:37659 "EHLO twspam01.aspeedtech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235863AbiAZBsV (ORCPT ); Tue, 25 Jan 2022 20:48:21 -0500 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 20Q1eoVV090810; Wed, 26 Jan 2022 09:40:50 +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; Wed, 26 Jan 2022 09:48:13 +0800 From: Jammy Huang To: , , , , , , , , Subject: [PATCH v5 0/2] Fix incorrect resolution detected Date: Wed, 26 Jan 2022 09:47:23 +0800 Message-ID: <20220126014725.1511-1-jammy_huang@aspeedtech.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII 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 20Q1eoVV090810 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series fixes incorrect resolution detected. We found this problem happened occasionally in the switch between bios and bootloader. Changes in v5: - Rebase on top of 5.18f 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 | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) -- 2.25.1