Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3505159pxb; Mon, 24 Jan 2022 10:58:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJygnRaExuN/h7C3k7xG+/9MjyWIBOcWT7Uh6q1aqEp7UhEwvk4DLAS/O6mlxCebxSm8MnBS X-Received: by 2002:a63:724b:: with SMTP id c11mr12766349pgn.576.1643050716836; Mon, 24 Jan 2022 10:58:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643050716; cv=none; d=google.com; s=arc-20160816; b=ZsBAW4CgXmKCbHbod6MAR1w9s0hAL4eNF5yKhIngqb0AnmLpcD7baiknrZ0R3wffq3 GXV4bMrqgrUqwlt4obMUsxeOIV8AwZs/60UymNIy7397iYzgd9fDchzKE/2kuQI1jBhO aqP3S1WTTdZS1QHI+KSw7s5yb6NpQMBscZwiuWao0Hp18xlX963WDCKuOKGVz6hfRCR1 snN190+s+TRE0FUsRjH40IJflvrxA88iiBU0JeKKDrINdfJ0P84oGEcnfNILOcf1trIg Lh68UlT6mv1BUtWDxJOrgmFcMcMR/8sl/xGqa1yRLzbXBOjWWjg4gRN3au/r+g0o/Uqi WBsg== 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=A0rSIW3yzARwarG5l+FZYb529mc/WKe88oXjOpomkAs=; b=yhpIH5X/Slw6t4Aum8ciaO3gQ9iEx1w1p37W0UYTmMmQ06xAfHORNJzU6fsXfntXHQ oVapf/Q1iMcZ4ZJBqCZ3i0gMRX0fo1upgHaWNTnMNKQPsyTISL18L+VuVaN6qTOiY46a S7ukHsqu5BDxqXCswPNQH2kAFpvI4DC9dXcoTjoIGStQjs2KRlAxElNcRsUwPyE678xy oftObL6fSKPhTpQL71kq/CF1LEUF2CtpnClVkDl1/gI6kflKba3Rsjz+tptN/5AhmSxx xeyiT3NBMAHd5pXJTiIKirsDxj6SISyoE8yqzio/Mnovf23s8y+/ZUirmnEI/d0AJZmd NS9w== 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 u64si6775912pgd.195.2022.01.24.10.58.25; Mon, 24 Jan 2022 10:58:36 -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 S233871AbiAXJeO (ORCPT + 99 others); Mon, 24 Jan 2022 04:34:14 -0500 Received: from twspam01.aspeedtech.com ([211.20.114.71]:50240 "EHLO twspam01.aspeedtech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234307AbiAXJeG (ORCPT ); Mon, 24 Jan 2022 04:34:06 -0500 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 20O9QVf4054145; Mon, 24 Jan 2022 17:26:31 +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; Mon, 24 Jan 2022 17:33:47 +0800 From: Jammy Huang To: , , , , , , , , Subject: [PATCH v3 0/4] Correct timing report Date: Mon, 24 Jan 2022 17:33:41 +0800 Message-ID: <20220124093345.3935-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 20O9QVf4054145 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series will correct the value of timing detected. Changes in v3: - Add API, aspeed_video_get_timings(), for the calculation of timings - Use active rather than 'total/2' as critera for sync polarity workaround Changes in v2: - code refined to improve readability Jammy Huang (4): media: aspeed: Correct value for h-total-pixels media: aspeed: Use FIELD_GET to improve readability media: aspeed: Correct values for detected timing media: aspeed: Fix timing polarity incorrect drivers/media/platform/aspeed-video.c | 139 ++++++++++++++++++++------ 1 file changed, 111 insertions(+), 28 deletions(-) -- 2.25.1