Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5506105pxb; Wed, 19 Jan 2022 21:22:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJyfmmUG5PAuSHi7FSfFX3V9yqzC7g5e5Vcb7nGJZqYkAk7uPPSuWGt1Qqsu+NsJ/nVgu0tI X-Received: by 2002:a05:6a00:1895:b0:4c1:397e:48bc with SMTP id x21-20020a056a00189500b004c1397e48bcmr34150280pfh.15.1642656171837; Wed, 19 Jan 2022 21:22:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642656171; cv=none; d=google.com; s=arc-20160816; b=FP6+7td43mo9FiLB1D+TSw4Fmdrnpii0o2GhgH6Q9aG/rbgphRZKda0IzapzcvXYAc 6OkUaLeLro622Rn9l01XLmcPsc2hVwPCIwMaPiPptf0KsImyh6NmmOUlUj4br1s9Zvva kxscRt0hjfEa7UNFOT5Q5wJ9zpnXSB0eH129SxopgdHljAni5D0jYrfOa/FkiXQsd08J HEJgtoDyCL50btiERRNWOgpNuBT1YMmvHTITLiSJxL74zQpXVGNJZw/9q6p0f9/HMW7v 9t8apfAgpJk1ztxXx47DFFF9WxXCTipTixjw4bhg88S4UUh1sNK/tNiN1QM+2zFkEUvv 5PYw== 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=WleoRIHOMt7MJzbYHE4mHphzyldSmUFFocoDcZvh92w=; b=HMfdhejXSL0103PbU0LK+IS9SbwOg5Ye1SkpfuIvCbja+b9ovKr/FVAwvWD3JxYuLy 2A//9lilgzIpcCvu/zTGFMa4jjmIVWiDxmm+5nc6u9YdIiGenkrTeo/+/VOTnZ1Uny4P 3kOm/k6XUQdgmIXS7JdZDqadAGq5Pj2xWuigk5703di2JiCPbmMYdHruqYwYbf6tMm96 gQZoj6tePLoZgePo2zIPYNf7A6p6kZ7cTtrZzU/UeNh4CsC8hvPXQcJ6h+uRXTkXp8NZ SovBJoCo8Fx/GOT4JWEwU4D2hK0LcO4n6572nuGhoPiu6L1+t+isJw4qiSinXn9DsmWi ESDA== 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 q21si1901153plr.217.2022.01.19.21.22.39; Wed, 19 Jan 2022 21:22:51 -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 S236735AbiARKHh (ORCPT + 99 others); Tue, 18 Jan 2022 05:07:37 -0500 Received: from twspam01.aspeedtech.com ([211.20.114.71]:63604 "EHLO twspam01.aspeedtech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236434AbiARKHf (ORCPT ); Tue, 18 Jan 2022 05:07:35 -0500 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 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 20IA0RJ0021056 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 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(-) -- 2.25.1