Received: by 2002:a19:f614:0:0:0:0:0 with SMTP id x20csp35408lfe; Fri, 15 Apr 2022 18:11:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwflUxyZn//YshiKN0mxwfVFXae0mTnvYHWMTr65hJpmZ14X9467JxW9ieQEg9T1HCCUhJ1 X-Received: by 2002:a17:902:cf0a:b0:156:39c9:4c44 with SMTP id i10-20020a170902cf0a00b0015639c94c44mr1600486plg.124.1650071483329; Fri, 15 Apr 2022 18:11:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650071483; cv=none; d=google.com; s=arc-20160816; b=0mPhEi0WXRHER19gjdBE7y/yHccWXmMVTcg/Ka4cFYsTOrhzQmyPcTWyfjaiYyg9vv YudQVkCZVYpGuN7zZHAiCjv8//ts/9wMGL5eT31qEmZm6+axDZ2Nyy3qjlMDki3E1dFY xa4XaViVi/I2t9fLRkaBWpf0Ee439mazjjJCeE/3TPoZyxE2ckppSoLcllD9Osek+Sz4 ajPm3OjhVPCr04HoBu80etXg9Op8rNRZncx5VpgnsCu2JHeYsv0dKyWUP3Q1NO8hoI6H NfPtgshEJ3O8sgTbn4+wOi49xAGlJzocQl9KMqMJkErus+RiQpUBD2A/qUy1jO1ePOAI fHBg== 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:cc:to:from:dkim-signature; bh=yLsy6Cg4nTGsce8DJN5bhB9sYWSZN/u1ooAdq1shsLk=; b=LSZ9J+LwWxXa4r7DKu2HmVRSj58ISlbdT5VUT6qvvWUko6Uuz2XY1UwZCfqw+jTUk8 fPhL4Fqqkd0XilJzIQpjaLKjx5iUueDG/HnzFGE+x3S6BNkQr/cCypSALlJNvjB/YA3f I2LT5RZQJU4+DG1X8AhRXd356cW06NHf+bNw896K0xEw1r9NwOrT1bmmVHxaLiPhiCJF 6rJ5J3CJR18opcRFpXp2RlN/6k6inpqFNTQYs4+JPb6qCeZ6YE5qjFSRILRCQYXDQhIV BoS37Ug/jdrb1OhsiaPlUQfEG35eTCID52AYFhoo8F2jy6p1ennRVZZnZv3UKt/yyZOn cRVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=WofpZkYJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id x13-20020a17090300cd00b00158d0436f45si2458305plc.76.2022.04.15.18.11.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 18:11:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=WofpZkYJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CBAED14088; Fri, 15 Apr 2022 17:49:54 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355622AbiDOPuY (ORCPT + 99 others); Fri, 15 Apr 2022 11:50:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236313AbiDOPuW (ORCPT ); Fri, 15 Apr 2022 11:50:22 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4571986F1 for ; Fri, 15 Apr 2022 08:47:53 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id q3so10450027wrj.7 for ; Fri, 15 Apr 2022 08:47:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yLsy6Cg4nTGsce8DJN5bhB9sYWSZN/u1ooAdq1shsLk=; b=WofpZkYJduA5PuvzLuKjMGm5LfRHMtkKXOmASzQFM1iFhfMnjmM64iV5kvhVP2v0p2 EuFG3koJz7aQauCoXnUnU1KSpMWBWKxBuQ9swkkmfo5JQzGjIHnKepNFrnpy5iNkruDA yHwMexMsrq5EviVYM7ETRB4tMEtOFZYaYLw6/V4xFI8oiNEwvdobkFDc9SqdYTgWQ8nC g9DDbWrR00qjcSOkmDo8H6PPpwQSc/6wmZ5gVhjZ0cgs48j+UnJ7rEgMX73Rxf/cIGjS X7xAfhrNezhpGwjKKQz1xGOyWAWdYNIPp+YCWKpOoJWbKCP4leN1v/cnofnhYIQrz5X6 B18Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yLsy6Cg4nTGsce8DJN5bhB9sYWSZN/u1ooAdq1shsLk=; b=qpKExsnpyrDjou1h4rH3CF0H0ZPFBPiAj4puRT+0kPvJ8GjTM3UFC2c/4xE4xhMQTc RX6M4LCP5as+jgiG7IWbKm5ZKSSAfqSqtl8Rt/NnBN2Z4k3Z4h+5aGIrJZTNCx/8ePMp Wn3SutnXXtUFTsYLxmlhGshhDdD+WwDvGU45sn5YfImOnI+Hzjulyj65SeglfRXS1kCD 2MyrrECEfmFtxK87xHGuKZxuDtiA+FHZFfgmr0057PxFlZ0PCcK5IK1l5ohFzsD3y2vK 0RW9kV8NEXLvTSYhK9Kw/F461we5xnzpwsrsWwRBxrina7twan4Hplx7jYTvs6RrelK4 Le+Q== X-Gm-Message-State: AOAM531BGUlN50RX7wv0hh5PLFHX6q7JqZi7n/OUqDycoqvMOEFiAuK8 ETWJn85g1kFEaf9IEL05peX38xeGeRE= X-Received: by 2002:a5d:64aa:0:b0:20a:7f8a:ec97 with SMTP id m10-20020a5d64aa000000b0020a7f8aec97mr2082595wrp.450.1650037672319; Fri, 15 Apr 2022 08:47:52 -0700 (PDT) Received: from localhost.localdomain ([94.73.37.128]) by smtp.gmail.com with ESMTPSA id a7-20020adffb87000000b00207982c7f4dsm4349655wrr.67.2022.04.15.08.47.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 08:47:51 -0700 (PDT) From: =?UTF-8?q?Jos=C3=A9=20Exp=C3=B3sito?= To: emma@anholt.net Cc: mripard@kernel.org, laurent.pinchart@ideasonboard.com, airlied@linux.ie, daniel@ffwll.ch, p.zabel@pengutronix.de, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Jos=C3=A9=20Exp=C3=B3sito?= Subject: [PATCH v2 0/2] drm/vc4: hdmi: Replace drm_detect_hdmi_monitor() with drm_display_info.is_hdmi Date: Fri, 15 Apr 2022 17:47:43 +0200 Message-Id: <20220415154745.170597-1-jose.exposito89@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi everyone, These patches replace the calls to drm_detect_hdmi_monitor() with the more efficient drm_display_info.is_hdmi in the VC4 driver. As I mentioned in v1, vc4_hdmi_encoder.hdmi_monitor (removed by this series) is used by some code not present in the mainline kernel but present in the Raspberry Pi tree [1]. Let me know if you want me to open a PR in the Raspberry Pi kernel project applying this series and fixing this issue. Thanks, José Expósito [1] https://github.com/raspberrypi/linux/blob/rpi-5.15.y/drivers/gpu/drm/vc4/vc4_firmware_kms.c#L1410 v1: https://lore.kernel.org/dri-devel/20220406165514.6106-1-jose.exposito89@gmail.com/ v2: Add the ftrace command used in the first patch Remove vc4_hdmi_encoder.hdmi_monitor (Thanks to Maxime for suggesting these changes) José Expósito (2): drm/vc4: hdmi: Replace drm_detect_hdmi_monitor() with is_hdmi drm/vc4: hdmi: Remove vc4_hdmi_encoder.hdmi_monitor drivers/gpu/drm/vc4/vc4_hdmi.c | 17 ++++++----------- drivers/gpu/drm/vc4/vc4_hdmi.h | 1 - 2 files changed, 6 insertions(+), 12 deletions(-) -- 2.25.1