From patchwork Fri Jul 14 07:24:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saurabh Sengar X-Patchwork-Id: 9840567 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 1A78A60212 for ; Fri, 14 Jul 2017 11:02:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D3A12875A for ; Fri, 14 Jul 2017 11:02:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 01CB228752; Fri, 14 Jul 2017 11:02:52 +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=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID 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 4289028752 for ; Fri, 14 Jul 2017 11:02:51 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9C4736E802; Fri, 14 Jul 2017 11:02:50 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 1974 seconds by postgrey-1.35 at gabe; Fri, 14 Jul 2017 07:58:02 UTC Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0041.outbound.protection.outlook.com [104.47.32.41]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4A9716E78B for ; Fri, 14 Jul 2017 07:58:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=FToMrqVHEdPY3dq1e5Ab+d4RpZ5K/B4LFFmumTfaavs=; b=IKLD41BTwTd7jJ1K+MwOyHK2KOB5HDkom2Fvsz1rSRESom9mbCLNbpZn61wXCQa90zLem1TtEdO5dgbl3eMgDo2m7/+nxOL6q4poUd2DQT6dHg69/0ABtzLL9UrMHD3u82qlb3OGGIn9pKtJB37QvgNQ2Q6s3xj6reuvR3nWW9s= Received: from BN6PR02CA0052.namprd02.prod.outlook.com (10.175.94.142) by MWHPR02MB2735.namprd02.prod.outlook.com (10.175.49.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.13; Fri, 14 Jul 2017 07:25:07 +0000 Received: from CY1NAM02FT003.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e45::202) by BN6PR02CA0052.outlook.office365.com (2603:10b6:404:f9::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.13 via Frontend Transport; Fri, 14 Jul 2017 07:25:06 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.100) smtp.mailfrom=xilinx.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.100 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.100; helo=xsj-pvapsmtpgw02; Received: from xsj-pvapsmtpgw02 (149.199.60.100) by CY1NAM02FT003.mail.protection.outlook.com (10.152.74.151) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1240.9 via Frontend Transport; Fri, 14 Jul 2017 07:25:05 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66]:35324 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from ) id 1dVuyH-0006NQ-90; Fri, 14 Jul 2017 00:25:05 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1dVuyH-0006Ro-5b; Fri, 14 Jul 2017 00:25:05 -0700 Received: from xsj-pvapsmtp01 (mailhost.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id v6E7OsHD026037; Fri, 14 Jul 2017 00:24:54 -0700 Received: from [172.23.64.94] (helo=xhd-ips64re108.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1dVuy6-0006IO-GH; Fri, 14 Jul 2017 00:24:54 -0700 Received: by xhd-ips64re108.xilinx.com (Postfix, from userid 16955) id AD328E0369; Fri, 14 Jul 2017 12:54:53 +0530 (IST) From: Saurabh Sengar To: , , Subject: drm/edid: api to register cea modes if no edid supported Date: Fri, 14 Jul 2017 12:54:51 +0530 Message-ID: <1500017091-11832-1-git-send-email-saurabhs@xilinx.com> X-Mailer: git-send-email 2.1.1 X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.1.0.1062-23192.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.100; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(39850400002)(39400400002)(39840400002)(39410400002)(39860400002)(39450400003)(2980300002)(438002)(189002)(199003)(9170700003)(5003940100001)(90966002)(45336002)(107886003)(47776003)(6266002)(36386004)(38730400002)(8676002)(36756003)(81166006)(54906002)(189998001)(52956003)(5660300001)(8936002)(50226002)(626005)(305945005)(63266004)(48376002)(50986999)(33646002)(4326008)(2906002)(356003)(478600001)(106466001)(46386002)(42186005)(103686004)(2201001)(50466002)(72206003)(107986001); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR02MB2735; H:xsj-pvapsmtpgw02; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CY1NAM02FT003; 1:RFHYfr+1Y0cCOpYwvrw+FV5PMgxCKtECTgkPtTfe8pigGUW1jasUD1h2WOqJTL1xFAFUXl8Au4QfZz3RRnL8d5ilhtAyjp5Qvu0pgBda+c5/UmBZ4SE+OQP5VZwBl8N3URVIa90eFHvHjATaDPuD4H1omm/BzWQk9TXX7uROPmGc3a9WOagxuDbm/phR832438TDZcowOaIyM3IFvQHg+8IIH2uyUOMIn+/KI8YufEd1s+63QkEnv2c/MwKnFbHUb2i/azw3iFHfoN0DmqP/cqUvn7qu6TlsyBG3TEFe/Pl2i6/napOGsMj1CvRutHCtIo57wYcbMRhkfi1r7VSJbDnaByDoKjdQD7k2TgWGpND26XZv+723tBGhS/sOWal+RCRzdaV5zTSFnuJpid7guonK9KgJ1pZmE/vN5XdDsFkQnM18DaI5Au218bD4aGakT5e3/d7mq4UWZevQ/0dyVyX8YSad+Cppce8UpRBjUbn9PyUmrFBL2VoFmtpQ9PhMdkyIEKEivW4f3VrcJWZqcL3VIqNj2wCMOtcL9JxONuyMb8OHzRdsx1Gbd6LaWjDwGjO3FkVJzC4AmDZHp5f0DGKwpb9FVf+69V5sYFpOAmBSy7D+YyfSVHTbQTi68Rx3akSyi36C7D0U0EaGtSvMd9MHE3D2oLg1zW0buqEHQ2x2XsuAKw16zMCnzv2jQWTi6VK6mnDc/nL7uxAP0dJwdNmX8pYUdZo+MEkh2PvCJxBgtL+1Jruxv5yL0PnX6JOwbSqU/s8eDZbSJy5mKC/GfYCZEJK9AtYKr3UQEkiatyDuLboWhlPDql8RA1dICoM7St3zX6uzttB0FDooBPwBvg2QXgF0KPv2R29qaJNg5us= MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b9fc92af-e8b3-4570-2643-08d4ca89735d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(8251501002)(2017030254075)(300000503095)(300135400095)(2017052603031)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:MWHPR02MB2735; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR02MB2735; 3:FxPVzjXOWI2EIzchqBPSqHn3KRMNre2OtqJTWq7dNK?= =?us-ascii?Q?EptQDCfyCndrY82XQYVUGfkfzPEnwd5oGPNOdmtdeIDY086QMw3NLT9LJT31?= =?us-ascii?Q?PJhsw00OgiJ8qKhS3KqxXkkSSjvi3h1f6J/U3nGuEhM8pHPDERs4Zric5X5l?= =?us-ascii?Q?E7NWulu7McLhuq4LhwNNyvugfWR3v75t18b3iRsarlsAJwr0vpkgwgcd2SWq?= =?us-ascii?Q?gHJrD7AgFGdUjIJayAtPRGhCU+xfpZoQtOUtjL1S5+VKafDYW94Lxm/rSScJ?= =?us-ascii?Q?ogDl5OGcIm0f/nb6vBEf2pyRQOp8ZrDzG5Wycx3GemgFlwR6plyUo8ZjQJpX?= =?us-ascii?Q?UIkJxcvL2PV42k8E4Lff1GP3kvkcpNBmbTX3iZKQVYOqtx3sbhxAFNz2krLD?= =?us-ascii?Q?BsXbyhqXW1oRLldmuYvNb1z9tfot61sOygpf7ehyr2EK/0+aG58cbNXx/mJg?= =?us-ascii?Q?GtdUkBo50keMycQXBUbw2TEBZpDZ3HDFVhLsVSVPC5X7XGasfk0mk+9c6WAT?= =?us-ascii?Q?q24yjMA8LpjPseKDlqZqwWDv4vYQ0Yt1/DecxGS2J0lKcVmk3ajm9dZmKr6r?= =?us-ascii?Q?8jshconxvN/Yz0RP8d+IHnJu48aNtiwh6p+68Q3xt4ci6QmqCkGDelPzwCre?= =?us-ascii?Q?GmdrnoIud6BNpmmduUu4N+f9/umxds2bmrbEXGFF8xfilsgAi2rqXBQfCi4l?= =?us-ascii?Q?Nsp90MpSsmDfdmBr5O/f9Uehlpsstu17aFubVtSbCKLP4PluyXOb7vN6zBuU?= =?us-ascii?Q?2pcmIe80O0lMmQ2tJhmv1i2wsuNflZgOpxwpfJBsdJ+M41lh2UnGnVP+N6A7?= =?us-ascii?Q?+uUZT4V/I9cwPGGraw5M70bE2nHtSeloGLBYQ8OZwjPcRZ9Je8mPMihAXQJX?= =?us-ascii?Q?Cw+GPGkEwGeo+gkbC3vl8k5hWWAE23c4ho/A6OPxXRWkl/LVAr2wWVqzcIIR?= =?us-ascii?Q?EUfKhsBvEXZE2/sZJeIQF5yqxjLpey55usk6BTWw=3D=3D?= X-MS-TrafficTypeDiagnostic: MWHPR02MB2735: X-Microsoft-Exchange-Diagnostics: 1; MWHPR02MB2735; 25:0+6DyNfjGbw3TubhphdvXszqCwEgx2msw19aQEZCAg617Ws/EcddWjkvz8OlMd2vSYM02yM9X8d9XHQH3RTE29v8VS42B5KaZqcQmlc6GMfDlustFOjXw12TaztwpjqVi43lB6UVb+LiJSFADNOBsBQuQXAUPRU2Ho0xqOHp6eeu45tPy0IVjhVKwVMAEHJdxUXDSxjc7UJSz3JtHygy2CMb8EkNfNa72q2/gSKdxjQfi75CO0hitRTtFwmd55SUUjPhOZhvozDU8kQ09muG2OG9Jx3kwDSnI4mbGOOCKIZ08RRrihFQKvgDA/1829tYEel0LrpA25Htc/CEMaJav8ZGqnkRJLeyT8S+35Tpedy8Ygzf5SbRse8lF77iCIwR2hNrdhs55mu0j5J6HCE0x9aM/j02VucPBUjkydCJJSGeZ7/5/pmLA9iJA4jLA44ee4zAV9enjl4V+bt2Za/IA33k/EnJVI0pHf2Hx5mpSPMwFerFTyhadJZw/DrKhP0mI7M7tOHTn5dP01OaFh15TWcsZmAouilV4uPg35ZcrVLtji8CroNs8L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aByQ4dRRG0z8IISHmZzrjKXWMaPNH5xnJijL2xLZjqVGZX1BZjw== X-Microsoft-Exchange-Diagnostics: 1; MWHPR02MB2735; 20:Nzmg1/KTkT0TvxM9TWD+Dj+mBGIN8bFGTUMxVXmv9z3fenoelFNiykqivWN6C4cSkOmHvFJWlnVZ2x4WbT+5ywVUD+hWr6ZDLiKpmTQaEG6Th+0pEfVEN7wlMzVEkB0eg83LmZkbIgqwFa1MB6S/8f9qGW6XBklyoFXvV5gYng2nWmIql8bxb2tPlQDaO5H8vwhBBNsGf7Y4C4coLNRrHvO8wRVrum21+slCC4OKboHBK+vezVMLQWoHCUFAEvyX2CkzFwOskAI0OKWfpDsl5Of3zatj4PBKzm12gKVdr8bctTRF3VO89svbk9Sc3oF3ZzET7iRS/ajDvKjNL+6vs6wsIvyErWQT3bTHB8SdKiV7FxMxWoyUBkB4Ae5m3MWi74B0MpBqxFWVguq+1GLMJibmhAspoEhLT4hSZ4bkbganbbU8dVUwaZIxvqGJGE37rTSl7yR9jPuuPqQaa4cq9FkPbLl9wtO8GaPlXZiIM89lB/wIGLQbrco+2OWwpPDg X-Exchange-Antispam-Report-Test: UriScan:(133145235818549)(236129657087228)(192813158149592); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(13018025)(2017060910075)(5005006)(13016025)(8121501046)(3002001)(100000703101)(100105400095)(10201501046)(93006095)(93004095)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123560025)(20161123562025)(20161123564025)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:MWHPR02MB2735; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:MWHPR02MB2735; X-Microsoft-Exchange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5E/P2JaMDkMkvmGHPpTDRQdqv/6CGg=3D=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR02MB2735; 6:ER1vj+yB1Alg7p7pHQxmH7N9mpAjDQy2WvJL/xq7Gs?= =?us-ascii?Q?TM1c+ypfZXahdWjDTvC/VRLWqEXrCyCV5/C/vu2Vk0EaC0OrJnu9EGqLmFxQ?= =?us-ascii?Q?Qv7/KH9Ic3w9UUVyer3U0W6Q28bffSz1pr/UDP3M3e2j7E7fFVgWF8GMnTIA?= =?us-ascii?Q?i8kz8/R2gQ6yS4SdWrvfDIq5cMf6wz5Y3s7sr+hxSejfL6A8qvVRIG5/p2Xp?= =?us-ascii?Q?icBdU07hYOL1oAvq0GEOppSMfxMv0B+9+gDp++V7YFWetHwuBUKApKaqpZKf?= =?us-ascii?Q?GPsMmjKas1O3t+Wqiapa9gainaWTomCF1UPIZOC0OH9w36faHwz1eR2iR+B7?= =?us-ascii?Q?S3XZkhURajau5BtMM4sDumWSislsMXy8S6FNhBfxw277VdJH59JLtgdWjEXi?= =?us-ascii?Q?SGNYA/H9C01NcKDiv0XxbSCabGx/P0jwH1VXgmGgjXlHrpLZSuHQuP+2MLOM?= =?us-ascii?Q?uHgeaWO+IQ1oi0UrpQynpldJoAu4EcknJV37fSvqZ3480X8vY59UKGOTdFg2?= =?us-ascii?Q?uJwb1/pTEy8zfhd+cUcnQN9qJfGZLZocnU6hEKLrU1oTNc6snCk2d0y11Lr1?= =?us-ascii?Q?in+6GKp27fc4j0v+5WlALzM50BGm7v7WWk7GJQsRClchZccNJLhxExyaaMoI?= =?us-ascii?Q?o2ujQ2bcqaLLJd88KqdKgj86IXVLepzRE2xwfn6JS5U199VpV21hHx8jQzrp?= =?us-ascii?Q?cxKim59l8b2pxi9VEeuYF6MjQAjc/plLgkLEurKZcyPRV2Vr18b8c5lHarSg?= =?us-ascii?Q?6wJEkOCutO0lviV9lPeP+hBeXgEhJE+MMtGztUGK4lqhAGWQzw3Oz/ZLmrh7?= =?us-ascii?Q?xge70ckBv8w8FFT6poIsIn8n3t8Ao2jfDnSQcDl3vaDSvHrHiVry3qpydNDa?= =?us-ascii?Q?Q2pDmCnh0bDeP6S/gWvztFCTnLYesixepfsI8irFewNmeMixAngyfWdVH2VR?= =?us-ascii?Q?P9HaJQO66rI8OLg1SHtjW2KYpowSPmdjFZkLtj9HLHtY/gOY1zM/jstQTn1e?= =?us-ascii?Q?r4GzJpr0Gs/gVg+FazoK4d?= X-Microsoft-Exchange-Diagnostics: 1; MWHPR02MB2735; 5:FuC0w/MBB9zlMoZaOFo4WAeAvKkp0GBWqSACATUh+GntzZfLApnM/8nNqx+vgEO327bUYEQLOQNRHsh1gMeOiLVRuAL/GLnsab6jy1ffJhCdCzG01tEEq8UzDyZP7sdB+dj5xLCXvdTh00+d710AxeO9aCk4qCEGsYuc4o9SpzsMcCqar8+xzDkapV7V1YVcj/RJ8dMHMrDpV0neHbEgGlFCCOQmbRmEypy/qF5lZz4A5ikYY9CJOyx22T3IRYfejeYFyBkjbOi91uaKt/WiKqUVhhYuGFKqgVItHagkAn8BNsC+TgfB6sGHvlUr+Pq1Cug9trNmmUv2TmXRf1oOOhiXg/i2ddAGUArcJPvT/KqkRQhe9bfJEyQvrUCsk8Wal5fxhrpYNSGmOQAtoCRlsV7PIXGcAehdwi3lko3X7a5Wdq7C7rH0PVbs77iNc+ZSrOtGAm5QtOTQFd/JrQ8DrmPtcCGHE6EY8jODiVrnmoJdR3DnbWRqz7RiD3d1tA/J; 24:hmA+8TRME2opjTUg7Tlb3ByLkgXbl2FGtB9uWYuwUjMp13LRJ6Ijga1Ug44w4eddxqlkKvWe93QWwDg205XMoq4EHX+Ntpgrrek95hjsjPI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR02MB2735; 7:CySDtDASqll/FOMiJlCnsG+WIv71ykWHzQfwQ3UQD1WNrDH15J7uAaJiqiffC+8NhFRgPfFyjv5AxltmTgVlamV32VkPun62zNx1OJ4koyS4fD/5iL5mCxze9RfMKE2WVz6PMzrx4DgVN2NXBwHAMFTcI8VzhcKBYRMwUN9kpySthvnyU0bhIwiv6+TaBIMOdPf1qPM42LwGL4DMWEUUKvf0uNoPkZz3ASxFRZRVHiew53SGY3YENSo5H1CBsuxywpHTJn0PVsruyNsehFC8GPglUT+fCmh/jYCuI7hyQtfYbJIx2XixELEuZVz0Ioqo3R28NV/4OJcIK84bk5P44pTkSWN1u1b+G9iusndPTfAvMNCJvmBOuHKkeUn+X8kcolHUTg/Tqhx/rJjwb2LTBqFjMy3p3z3G548M8hbHwtIF+wyeXDK1nNPRMbcasVoyhYNZjPVEwsvFtg4zxVaFBp30j9Nc35VsC2/pXzGdDTy4MPHU1v3E6Z8FTt+I6ZPcIqeamzDcVCzYXKn7QbBAJSRmDo2nSML9oSkzvus9noGEXmoWoFvBjaJ16pwmnWaXb9QuPWnK+6D4DxH9ZXhzdWPa25Xw/dSltY4CCEjXHj2n3xglu5cscXVosghxvhfWNX5yi3opd3ZBO3hcY1bwsUpGbHxPiOVDAs2UDI3RhQW2OSOIHQhhSdSd9E7S9nVvy6cGTatn18D3rLaVKHLgp7xCQsSzSrJ4h+tIBc47O6/YMKwVayVb3Jq85YdVssIzYS/3Q4uZD3DrLV+HBj+zyROa4SraLKnZlU/Q7IW5oeg= X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jul 2017 07:25:05.8084 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.60.100]; Helo=[xsj-pvapsmtpgw02] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR02MB2735 X-Mailman-Approved-At: Fri, 14 Jul 2017 11:02:49 +0000 Cc: saurabhs@xilinx.com, dineshk@xilinx.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Adding drm_add_modes_noedid_cea API for supporting cea modes for drm devices which does not have panel framework or edid support. Protocols like SDI whic have minimal support in linux kernel can benifit from this. There is already a API drm_add_modes_noedid, but that supports only dmt modes. Signed-off-by: Saurabh Sengar --- drivers/gpu/drm/drm_edid.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++ include/drm/drm_edid.h | 2 ++ 2 files changed, 50 insertions(+) diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index ec77bd3..08cfd9d 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c @@ -4110,6 +4110,54 @@ int drm_add_edid_modes(struct drm_connector *connector, struct edid *edid) EXPORT_SYMBOL(drm_add_edid_modes); /** + * drm_add_modes_noedid_cea - add cea modes for the connectors without EDID + * @connector: connector we're probing + * @hdisplay: the horizontal display limit + * @vdisplay: the vertical display limit + * + * Add the cea modes to the connector's mode list. Only when the + * hdisplay/vdisplay is not beyond the given limit, it will be added. + * + * Return: The number of modes added or 0 if we couldn't find any. + */ +int drm_add_modes_noedid_cea(struct drm_connector *connector, + int hdisplay, int vdisplay) +{ + int i, count, num_modes = 0; + struct drm_display_mode *mode; + struct drm_device *dev = connector->dev; + + count = ARRAY_SIZE(edid_cea_modes); + if (hdisplay < 0) + hdisplay = 0; + if (vdisplay < 0) + vdisplay = 0; + + for (i = 0; i < count; i++) { + const struct drm_display_mode *ptr = &edid_cea_modes[i]; + if (hdisplay && vdisplay) { + /* + * Only when two are valid, they will be used to check + * whether the mode should be added to the mode list of + * the connector. + */ + if (ptr->hdisplay > hdisplay || + ptr->vdisplay > vdisplay) + continue; + } + if (drm_mode_vrefresh(ptr) > 61) + continue; + mode = drm_mode_duplicate(dev, ptr); + if (mode) { + drm_mode_probed_add(connector, mode); + num_modes++; + } + } + return num_modes; +} +EXPORT_SYMBOL(drm_add_modes_noedid_cea); + +/** * drm_add_modes_noedid - add modes for the connectors without EDID * @connector: connector we're probing * @hdisplay: the horizontal display limit diff --git a/include/drm/drm_edid.h b/include/drm/drm_edid.h index c3a7d44..67f4c26 100644 --- a/include/drm/drm_edid.h +++ b/include/drm/drm_edid.h @@ -445,6 +445,8 @@ bool drm_detect_monitor_audio(struct edid *edid); bool drm_rgb_quant_range_selectable(struct edid *edid); int drm_add_modes_noedid(struct drm_connector *connector, int hdisplay, int vdisplay); +int drm_add_modes_noedid_cea(struct drm_connector *connector, + int hdisplay, int vdisplay); void drm_set_preferred_mode(struct drm_connector *connector, int hpref, int vpref);