From patchwork Thu Jul 27 21:51:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alain Volmat X-Patchwork-Id: 127238 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp59113vqg; Thu, 27 Jul 2023 16:01:51 -0700 (PDT) X-Google-Smtp-Source: APBJJlF8JFs7mql2PTniWiITG7WY/iKwrOIgfz9Qkroq1Y9dKmx/X24FiT4WX+GiCHGwczExqqUl X-Received: by 2002:a05:6a00:1512:b0:666:ad0c:c0f4 with SMTP id q18-20020a056a00151200b00666ad0cc0f4mr38195pfu.23.1690498910646; Thu, 27 Jul 2023 16:01:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690498910; cv=none; d=google.com; s=arc-20160816; b=i8k+X6CpYeq88Ii4Fq+Ihu96aDVVLJ/cSxtrlWd8wt/LnQCQj1AT65lnY6nmYik+I0 b9Q82GOAxMg9KtFr0g5s8XUKWSjnfdFe9G1QEqzysk5VprlOhLh4eXyG8zzOVpe1XnZd dZUFzlcNrS1vhlI38402OwgZALGE9rh/hdv4+Lpvq9VlRDHor2ARH/6QxCZTatV45te6 VDnybUOqQvAzfbuEXl4ojyhzJ/nS5N7nTuHbVWLJNBXw+YyNNxQASxGt5KmYka9k931X CMRfRMHeMBrjQlgoSaX8qYb+aBHSjVUSEgcoJpo++xk9F+uHiRQfk0qDXh1P/fN9MMoM anBA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YktwkpXyaGBIT8GsziofZlNMbhT2j8LgV+O0AEQuBJU=; fh=YlaQJ3TP8tbT2RGJU1jM+MHAbXw6RYFhYgmjWx/ZxUI=; b=IznXPZq5zxCE81hjKnWGFb/teGvvTyeXAIWtYL73n744UVSdiexSaULH0t+RTonATM 8sDr2w+ORZcldnLlozr4VdbH6dRZ9JsZegupAP9AUZ19rLuHrG/0IOI7zEdiTxCSEZAE Cq+RmaZ2jH34BH343+ufAfBuAFTTfI1Nc3w3xP/ArSPxg32spcPXzES7BBXKM53laVRM 1L1nQe+1TQG64P1r7DE1sCHHXVwPnC1mvb8mlvzjfwtnasOSmCkqAraVWh8azLMUMYPY GDY1mYwoQeIfPcAV4IY68U7UVjCKh2l1RJqeV1CFAsHoHuxJU5l7rMjrShXmTc9GfjiT 7Uqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@me.com header.s=1a1hai header.b=QUK2Minu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=me.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l19-20020a637013000000b00563519244dbsi1824634pgc.169.2023.07.27.16.01.37; Thu, 27 Jul 2023 16:01:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@me.com header.s=1a1hai header.b=QUK2Minu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=me.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232502AbjG0VxJ (ORCPT + 99 others); Thu, 27 Jul 2023 17:53:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232542AbjG0Vw4 (ORCPT ); Thu, 27 Jul 2023 17:52:56 -0400 Received: from qs51p00im-qukt01072301.me.com (qs51p00im-qukt01072301.me.com [17.57.155.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 432BC2736 for ; Thu, 27 Jul 2023 14:52:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1690494758; bh=YktwkpXyaGBIT8GsziofZlNMbhT2j8LgV+O0AEQuBJU=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=QUK2MinujpZIVzM9jqSwTClsGYBGoJnXMLPmEYJTXNIYv1CKGNPvScMaW/CUV7u5H qnECqzPJpsQrb0VfPu+GNHedd8umWgLVfuTmslj8WGnXSQK4Zsxd3hH45klyQVJdj3 GA5JaUUguVIKc9IN1qxSVLuTWsS6pnYugh/Ua9NnbR1g5fMxnFpL3ebagpLagdFRr6 zCsGaMHBY2B/Q1JlruyDnk7E37+aJouBeSaYLebGveEHiFbeLPvRGXLZP3PL4e2Anx UEXBV+EjJLp+a5XAUoMJOj1plbqxEd9zKO4tr65rjfVUaBSxUuasSKHfzKiNk0h20h K8UY3cjgEBrmA== Received: from localhost (qs51p00im-dlb-asmtp-mailmevip.me.com [17.57.155.28]) by qs51p00im-qukt01072301.me.com (Postfix) with ESMTPSA id 8353F254016F; Thu, 27 Jul 2023 21:52:37 +0000 (UTC) From: Alain Volmat To: Alain Volmat , David Airlie , Daniel Vetter Cc: Alain Volmat , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 06/14] drm/sti: remove VTG_SYNC_ID_HDMI from sti_vtg.h Date: Thu, 27 Jul 2023 21:51:30 +0000 Message-Id: <20230727215141.53910-7-avolmat@me.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230727215141.53910-1-avolmat@me.com> References: <20230727215141.53910-1-avolmat@me.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: mB9QGKLmq2zplK26TClZnVryBqDr75Nm X-Proofpoint-GUID: mB9QGKLmq2zplK26TClZnVryBqDr75Nm X-Proofpoint-Virus-Version: =?utf-8?q?vendor=3Dfsecure_engine=3D1=2E1=2E170-?= =?utf-8?q?22c6f66c430a71ce266a39bfe25bc2903e8d5c8f=3A6=2E0=2E138=2C18=2E0?= =?utf-8?q?=2E790=2C17=2E11=2E62=2E513=2E0000000_definitions=3D2022-01-12=5F?= =?utf-8?q?02=3A2020-02-14=5F02=2C2022-01-12=5F02=2C2021-12-02=5F01_signatur?= =?utf-8?q?es=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 phishscore=0 mlxlogscore=923 suspectscore=0 mlxscore=0 clxscore=1015 malwarescore=0 bulkscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2307270199 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772616585490609067 X-GMAIL-MSGID: 1772616585490609067 Since the synchro signal used for hdmi output and coming from the VTG differs between the stih407 and stih418 platforms, we cannot rely anymore on hardcoded value and involve drivers use compatible to figure out the value. The macro VTG_SYNC_ID_HDMI can thus be removed. Signed-off-by: Alain Volmat --- drivers/gpu/drm/sti/sti_vtg.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/sti/sti_vtg.h b/drivers/gpu/drm/sti/sti_vtg.h index 46faf141b2d9..bd0437bd1c8d 100644 --- a/drivers/gpu/drm/sti/sti_vtg.h +++ b/drivers/gpu/drm/sti/sti_vtg.h @@ -10,7 +10,6 @@ #define VTG_TOP_FIELD_EVENT 1 #define VTG_BOTTOM_FIELD_EVENT 2 -#define VTG_SYNC_ID_HDMI 1 #define VTG_SYNC_ID_HDDCS 2 #define VTG_SYNC_ID_HDF 3 #define VTG_SYNC_ID_DVO 4