Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4003001pxb; Tue, 25 Jan 2022 01:07:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJz3adX5QhqI11FD0MAW0VXHuPh3N4/RPL1TvSjLlcwPDJQVoKlDk16qg3R5R0kYyJ+jpvVK X-Received: by 2002:aa7:85c7:0:b0:4bc:ac23:64a2 with SMTP id z7-20020aa785c7000000b004bcac2364a2mr17533130pfn.20.1643101632505; Tue, 25 Jan 2022 01:07:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643101632; cv=none; d=google.com; s=arc-20160816; b=U/UFSBpRvh4zNrJDr/hKaDjWx1yjD5qGzyI3jmegEavvBDqAIiYsbBK3r8SyTfib6/ qtOONIJAp0OS4Ko1WI3PLxqPuEtPfqbn4J48UK/QGYDyXni8K1jvbuvLFo+PN/fv/v+P 9/9Gg+cqvTyR5604F3eSes/OdEfWz0MOGVLMR7c/RfmxwrdSgy65Uz1jbQNyLWutQBc1 RFyeiV+QqFiZ04wXXC3icyd3WIAjOaCVchjFreBNJQj0ucErsnwjajezgtVLeKi65a4w iZvg/dlUdOXGSL95kAqZ/76mxJRSKvk8V3U6QppadjhoN8kctZypTWonzFKIA+AufH3b swhA== 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=z0yyuok5ghV1/Ffv0QtsnSYSDoekpAJxNhuWA/ESkm4=; b=ZtBDJ5F7+YRriQI4psQZhKJaMZzdrTlnMkgdDDEwTekZnwBejYBXwtytlQxGRCb0op BxrZWAIyaM6/3je1qwoeSREaHCBqkbNMZ7j8dklaWGemtZ0TvAys1U3HddNIJTVi3T/H hXrOBtmYH9ahQL9SnVBvWJ703T/xX1VsjXSD61q5bBeKEEjPWDUdYyoY5FreHZmtcNkp pov62VdqDBZWelUElgACi8t8JeRza+bYYSERbTEF9FyMbduSr1NWm897r9ZJj0757D0T eTS6iAftpJOoJpFz9xz9A8jTuQMNPe3p5Kh2y39N5s4BWXo7EI7QWETWOX1N2Dz5y+ss KZeA== 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 r18si15193283pga.388.2022.01.25.01.06.58; Tue, 25 Jan 2022 01:07:12 -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 S1359125AbiAYGrH (ORCPT + 99 others); Tue, 25 Jan 2022 01:47:07 -0500 Received: from twspam01.aspeedtech.com ([211.20.114.71]:8592 "EHLO twspam01.aspeedtech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357877AbiAYGoY (ORCPT ); Tue, 25 Jan 2022 01:44:24 -0500 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 20P6akGu078227; Tue, 25 Jan 2022 14:36:46 +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, 25 Jan 2022 14:44:06 +0800 From: Jammy Huang To: , , , , , , , , Subject: [PATCH v4 0/3] Correct timing report Date: Tue, 25 Jan 2022 14:44:06 +0800 Message-ID: <20220125064409.5502-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 20P6akGu078227 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series will correct the value of timing detected. Changes in v4: - Combine patch 3 and 4 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 (3): media: aspeed: Correct value for h-total-pixels media: aspeed: Use FIELD_GET to improve readability media: aspeed: Correct values for detected timing drivers/media/platform/aspeed-video.c | 137 ++++++++++++++++++++------ 1 file changed, 109 insertions(+), 28 deletions(-) -- 2.25.1