From patchwork Mon Nov 25 13:49:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Nyekjaer X-Patchwork-Id: 13884921 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 A5F4DD58D4C for ; Mon, 25 Nov 2024 13:52:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=QFkmN5/AIJVNMn/fY5/nPE6hxTuKJ8kdCgzvY8ANXv0=; b=RVDHzQCqcpJXiS XsnWo4sdFRnziHrK5Y6JiWoW+/D3qsgs+TNF2CFQM9UNkEf1EUC4xkkafzuHvRXq5ovIbZ3rLqy1Y 6VLFsVvUz5ztdTVhknfRLOhHgfwP7SBvzaqWVVF0HxQdXOVLMo6TqCoMSR+IUjzF64JgH0Pctwwxp lEZjYc7ZVlbIxVzbIpz+4fqI3fBGsJT0WxpYrC/Zy+kI7vH7NStUvQiZzc0QiU4pU2+Z5PBqxAJCA xJEOqffTxcolpJbwk6Y47dyNl+LW/HwLZqN1Anob2UIi7z9aF09WSSeTcnszRTECvgITxQq6l+Zw/ Dh+vFao+K+24iWHu4RbQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tFZVJ-00000008ByD-0Pg8; Mon, 25 Nov 2024 13:51:53 +0000 Received: from www530.your-server.de ([188.40.30.78]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tFZTQ-00000008Bce-1cKM for linux-arm-kernel@lists.infradead.org; Mon, 25 Nov 2024 13:49:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=geanix.com; s=default2211; h=Cc:To:Content-Transfer-Encoding:Content-Type:MIME-Version: Message-Id:Date:Subject:From:Sender:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References; bh=QFkmN5/AIJVNMn/fY5/nPE6hxTuKJ8kdCgzvY8ANXv0=; b=Ui OcUpXXU5DoRQrTujmQVvo+gXQsDG8zxhh4Jw9cs7bgHLQfSQF29//1GlOfqsnITLAxDWKMmq5lCe4 XEvHH3OpAfw5YMaPyBbSr6chLFJhOVZlsPepDhZ+T4ahEq2CVJgkQsvXih1aypuLkQEl6SwhVcxNZ TAFha6pmabINsQXjBMiisq8w883Gx2CzEDEgdc+3joRrtW+pNnAeY/hX7Tbw5RpXM2TV40lwFRaIH 01nVIQEAGLq0hzRVVXTBGwfrPRncRNn27pQOdIBtoT1RFt6bo8VeWQE8wHL0p2hE0tPxMmpg6rqlm gf7tW8pMxXQzm3GmSBIS5rACM2V3UUzw==; Received: from sslproxy08.your-server.de ([78.47.166.52]) by www530.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tFZTA-000CcV-R3; Mon, 25 Nov 2024 14:49:40 +0100 Received: from [185.17.218.86] (helo=zen.localdomain) by sslproxy08.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tFZT9-000A3a-2Q; Mon, 25 Nov 2024 14:49:39 +0100 From: Sean Nyekjaer Subject: [PATCH v2 0/3] drm/stm: dsi: relax mode_valid clock tolerance Date: Mon, 25 Nov 2024 14:49:25 +0100 Message-Id: <20241125-dsi-relax-v2-0-9113419f4a40@geanix.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAGWARGcC/x2MQQqDMBBFryKzbiQzSRW66j3ERRpHHWi1JEVSJ Hdvms2H93m8EyIH4Qi35oTAh0TZtwJ0acCvbltYyVQYSJNFpKuaoqjAT5cUWrQPN3d+6i0U/x1 4llRbw1h4lfjZw7emD/y/taINEWrbG2rJUK87rVBFdtt9KSOp9fsLxpzzD8aKpzGcAAAA X-Change-ID: 20241125-dsi-relax-1414baf6cd74 To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Yannick Fertre , Raphael Gallais-Pou , Philippe Cornu , Maxime Coquelin , Alexandre Torgue Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-stm32@st-md-mailman.stormreply.com, Sean Nyekjaer X-Mailer: b4 0.14.2 X-Authenticated-Sender: sean@geanix.com X-Virus-Scanned: Clear (ClamAV 0.103.10/27468/Mon Nov 25 10:36:56 2024) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241125_054956_713323_395924B1 X-CRM114-Status: UNSURE ( 7.44 ) 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 Introduce helper function to check if the pixel clock is within tolerance. Signed-off-by: Sean Nyekjaer --- Changes in v2: - Introduce helper function drm_mode_validate_mode() - drm/stm: use helper function for mode validation - drm/sun4i: use helper function for mode validation - Link to v1: https://lore.kernel.org/r/20240322104732.2327060-1-sean@geanix.com --- Sean Nyekjaer (3): drm/modes: introduce drm_mode_validate_mode() helper function drm/sun4i: use drm_mode_validate_mode() helper function drm/stm: dsi: use drm_mode_validate_mode() helper function drivers/gpu/drm/drm_modes.c | 34 ++++++++++++++++++++++++++++++++++ drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 12 +++++------- drivers/gpu/drm/sun4i/sun4i_rgb.c | 22 ++++------------------ include/drm/drm_modes.h | 2 ++ 4 files changed, 45 insertions(+), 25 deletions(-) --- base-commit: 28eb75e178d389d325f1666e422bc13bbbb9804c change-id: 20241125-dsi-relax-1414baf6cd74 Best regards,