From patchwork Thu Jul 12 08:48:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru-Cosmin Gheorghe X-Patchwork-Id: 10521345 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CA58E602C8 for ; Thu, 12 Jul 2018 08:48:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ACA1A2952D for ; Thu, 12 Jul 2018 08:48:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A0C0C2953D; Thu, 12 Jul 2018 08:48:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5B2392952D for ; Thu, 12 Jul 2018 08:48:22 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 146926EEDA; Thu, 12 Jul 2018 08:48:21 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-db5eur03on0605.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0a::605]) by gabe.freedesktop.org (Postfix) with ESMTPS id 197406EEDA for ; Thu, 12 Jul 2018 08:48:19 +0000 (UTC) Received: from e114479-lin.cambridge.arm.com (217.140.96.140) by AM5PR0802MB2546.eurprd08.prod.outlook.com (2603:10a6:203:a0::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.952.18; Thu, 12 Jul 2018 08:48:16 +0000 From: Alexandru Gheorghe To: gustavo@padovan.org, maarten.lankhorst@linux.intel.com, seanpaul@chromium.org, airlied@linux.ie, dri-devel@lists.freedesktop.org, liviu.dudau@arm.com, brian.starkey@arm.com Subject: [PATCH] drm/probe-helper: Fix modes reporting for writeback connector Date: Thu, 12 Jul 2018 09:48:02 +0100 Message-Id: <1531385282-17196-1-git-send-email-alexandru-cosmin.gheorghe@arm.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [217.140.96.140] X-ClientProxiedBy: AM0PR06CA0028.eurprd06.prod.outlook.com (2603:10a6:208:ab::41) To AM5PR0802MB2546.eurprd08.prod.outlook.com (2603:10a6:203:a0::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 478d25b1-7da3-465f-2b4d-08d5e7d435cd X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(48565401081)(5600053)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:AM5PR0802MB2546; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0802MB2546; 3:j3v9/VD4SoSUgSScAeLTrj/7Tb9p6oGiJFOiGq0akc34Wb8rq5Wa1Uj+pgT/yPAJ8JO/I4NsbeNAarLhEQTUGjm+pPX1vbQMSKx/kUYeOP92hSYEhSz/tXgLTuEt8KP8xJXcPzPYgSFsu2RH+E5hJOlQthrIAvASlOdzBUEBQfKjIhMBNMmgOxFoZWnV2uRuEfKNhBnp5rtCwe4/pSh2VHNblQzWkOXZ3gIT0sjsAn0b15P3QsLs5pC9bJnj5DM9; 25:Mi/gsf9WStS/0ru3wWgAhY4tbZ7v2vJ1nU1crTsppXSSR08MemCda6Sv9JXJBu5A4T0nQhUZvOzzxvLYVhA5FUVMQeDBN3tA/YaGFdCTZUOV4ellape9b6pNulG7hCSzEtX6LArH77Uj544JLvzRmrbjf7jWNMWeOqmVQ6Ap0otYDTlxg4CIEdz3HzBxOiPpB2FTau0GMlV5TOW9B7Pk0T015EtthpMg+L9GfmXCiFUcUK5nEfHd+SjKflflC8JD9ryXEkYtBQAU/++/KqfHln9FXivgirOrq3MVs+r4h11j4VOyQE6Bit7e0tHpW37nZFBf1SscLs9KS605FvolmQ==; 31:rtjsBQkhtKqzvA3qChReYKxazd2Bfnb+3td+p/4uCktxHfqSUNL1A2d7rnHIZAdq++LmOBbKJjKvt9hkvNGFWLsr1Yzrdueda0/ou2eXfm3P8ELm+Qj2EbMsYd8FX6juKGd2tUAULWbr3T1pzE/tll4eOX8S721u7IqdPE87mVYamtzXKDYBzFhmNPTvZnxIB5tBexJIie1jzNqeAmspvSeWcVHVMt7DCnsvWOuaqeA= X-MS-TrafficTypeDiagnostic: AM5PR0802MB2546: NoDisclaimer: True X-Microsoft-Exchange-Diagnostics: 1; AM5PR0802MB2546; 20:77iDS/udxSCnUKPEe62aBZljyDEBb3hdzEqB5rIedwEPxgGozN0xXgrP/EDvSYd8UHCj//VpLw/gzs6+Z8lSPhcyhRVk+HKpQKXXGYfn9dxjGEDaoy7zVtEl2X5rv150N+e0EL2KC+XOra4zt5sbJr8tSJcYPQdRsut/VuznfcI=; 4:wQI1iqWo+FVXBwjDTJnWmaoCQTkMP5EoymNqLGltvP1+k9O0hVcWSpt1KiDpNgWY5SeVN+02TjxCGu1RgEWehv15Fa86wGnn89OcI86It4vPJselSzR05QaQ+fcdi+Fj0tRzdE8ur/aVxqYnumJriXnNOAh6BjispjlxyH0V3OKl1Pz8XD8uTuxPvRvFtx13a7CYd4ExmuSZ9mtK6unuUQoAGPxf3GNhgSMZb10057tHWe4YR/ELx0QwAn+1l1tmT6b9nHtnmbDayeawj+97HzV76NYWSg8GgSbk6sq+iOV+DJq3zxZHtVrt1tZvFA/BdctRDbVP9JsnVYsmKJDYosKMNOr+LGfaM5/Rb2igG3Y= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(180628864354917)(211171220733660); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(3231311)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(20161123562045)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:AM5PR0802MB2546; BCL:0; PCL:0; RULEID:; SRVR:AM5PR0802MB2546; X-Forefront-PRVS: 0731AA2DE6 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(346002)(39860400002)(376002)(136003)(366004)(199004)(189003)(72206003)(6116002)(6666003)(3846002)(7736002)(486006)(305945005)(106356001)(8676002)(8936002)(105586002)(50466002)(81166006)(25786009)(478600001)(97736004)(48376002)(81156014)(2616005)(476003)(386003)(86362001)(6636002)(2906002)(956004)(50226002)(51416003)(52116002)(16526019)(36756003)(316002)(16586007)(68736007)(186003)(7696005)(14444005)(26005)(6486002)(47776003)(1857600001)(66066001)(4326008)(5660300001)(53936002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM5PR0802MB2546; H:e114479-lin.cambridge.arm.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM5PR0802MB2546; 23:1CZdx62qYbcNMFjhjML+Io0uJi0E0nfP8nfZO0o?= =?us-ascii?Q?xgmDoG+eQUKnGNxrgnC6J5PZ5D3yvAex62pcAiteZBjBPqaoWyExKrJi6QmM?= =?us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g5UHOtTKggiRuPejtmTAmwgDyhSg3oktWudwQXPkMXzgzW/wicR16FR1SLe1Ea7QoHG5rIxwibZqeYcsVz2aulnxFkS+j4axm3BAQ==; 5:TOjkwURkKw39mkwTBaFNQicOwio0kTeN5tf6lxiNMbsirXKFMVpK2cq+Ta4n9IW8imW7wr2Nk8tIbWUltPO+v3tOmb4Sjz+6uDwrxvC12wnG4jY/ybZ+X8/M5h9Ixmn/0a6jg9h14AT+muF5jjHqp69f5Dk2nxl2TQjdgJ7OJ00=; 24:S0eMBhqb7lI053R8BQWsKmKoubtDF3qwu08dMTdnz1VIKBZI3mbkBXABdP/0KzjR/6WmXYn7QTF1jlUrJvwzdJrgD7tfbQhBLaNW4V3A/rs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM5PR0802MB2546; 7:YmzyrgglhkHQ09UCl0BQmnqJf1Bq4WOaE5qPu7RcnaJCPx/kNqAtelal84tOF3LsSyjkN2tFLCR5DfKVWfBIBPSzH9/dfxemJPAwm8jMF1SvSINF7IXmSDlVRoArbUW3Xtzj1fc1NyWMpMwYkYnyZwofbDOMzinwkNEbwHvZra0uw4AYaFNG+BWAuEas/2vp1zzjwguSKiRsEvooJ13Z8h6t9mKFE9trCahrHAicIynaVWXK9U/9KY+hs/5BQB7I X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jul 2018 08:48:16.1942 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 478d25b1-7da3-465f-2b4d-08d5e7d435cd X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0802MB2546 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: nd@arm.com, Alexandru Gheorghe Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Writeback connector is reported as disconnected, currently this causes the setting of the edid property to null and then exit. In order to properly get the modes for writeback we need to add an exception when connector type is DRM_MODE_CONNECTOR_WRITEBACK. Signed-off-by: Alexandru Gheorghe --- drivers/gpu/drm/drm_probe_helper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_probe_helper.c b/drivers/gpu/drm/drm_probe_helper.c index 52774339..c7bdbe2 100644 --- a/drivers/gpu/drm/drm_probe_helper.c +++ b/drivers/gpu/drm/drm_probe_helper.c @@ -472,7 +472,8 @@ int drm_helper_probe_single_connector_modes(struct drm_connector *connector, dev->mode_config.poll_running = drm_kms_helper_poll; - if (connector->status == connector_status_disconnected) { + if (connector->status == connector_status_disconnected && + connector->connector_type != DRM_MODE_CONNECTOR_WRITEBACK) { DRM_DEBUG_KMS("[CONNECTOR:%d:%s] disconnected\n", connector->base.id, connector->name); drm_mode_connector_update_edid_property(connector, NULL);