From patchwork Tue Apr 17 13:10:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 10345009 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 E65AE601D7 for ; Tue, 17 Apr 2018 13:14:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D44461FF22 for ; Tue, 17 Apr 2018 13:14:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C84FE200E7; Tue, 17 Apr 2018 13:14:39 +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=-2.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 33EA11FF22 for ; Tue, 17 Apr 2018 13:14:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zvI32T0dzAlhDnp2/XyRGnHR5XJ5oozF9VSz/DA3ILk=; b=X2mdv36UBsGWGq WtraeNnvtXpODPfdy+7HGr09dBMusQRPukWGNYgI1EWuh+G5B1CWiC2VJnUiDUBsmYENRvhPz/Ckz Gh36qdTuuFvPgjbBZ6KGKEf8SxIjuPlm9BFTuSu02ShMNJ3EPH331a60HrbuHxy31R/XFqJEdYuoe KSW7E7+VtLM0M+MVgAo/4H2hKQ4OgZrCJls8xQ7POZt9vXVFjmADQ6O9G29Jkjn25HAhjRvLBGR8c IYBTNeHGYrHIJ9PbTAPgTT53rvJqxdO+7r1bp8bT2stBUAqpa8X0Xjfm9tHdiT2bta846YcL1DHN6 rspZYULLgFSS4mj10abg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1f8QRG-0003Xm-Es; Tue, 17 Apr 2018 13:14:26 +0000 Received: from mail-he1eur01on072e.outbound.protection.outlook.com ([2a01:111:f400:fe1e::72e] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f8QOj-00021h-Oh for linux-arm-kernel@lists.infradead.org; Tue, 17 Apr 2018 13:11:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axentia.se; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ukQB6AqyRvUHqm9+P1nPPhkvsFkVGZKAOBxCxNBKDeo=; b=NLiA5yfAbl7y/48CDzgx+unNlAlye3TAcxE2tcaIEA7htORK4oSccL6ZIqNYX0OMb4EpGBClZl+Pm7XFx9z+e8r5Q7WEiei87/6VmK+x8TufCbDZrYm6cOfUWENI0OPBKfFnMBA+o4dQJxFatKMjgI673Z+Qa+eyFI2ppXyrA5A= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Received: from orc.pedanet (85.226.244.23) by HE1PR0202MB2778.eurprd02.prod.outlook.com (2603:10a6:3:e8::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.675.14; Tue, 17 Apr 2018 13:11:34 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v2 4/6] drm/atmel-hlcdc: support bus-width (12/16/18/24) in endpoint nodes Date: Tue, 17 Apr 2018 15:10:50 +0200 Message-Id: <20180417131052.16336-5-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180417131052.16336-1-peda@axentia.se> References: <20180417131052.16336-1-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [85.226.244.23] X-ClientProxiedBy: HE1PR05CA0270.eurprd05.prod.outlook.com (2603:10a6:3:fc::22) To HE1PR0202MB2778.eurprd02.prod.outlook.com (2603:10a6:3:e8::20) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(7021125)(5600026)(4534165)(7022125)(4603075)(4627221)(201702281549075)(7048125)(7024125)(7027125)(7028125)(7023125)(2017052603328)(7153060)(7193020); SRVR:HE1PR0202MB2778; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2778; 3:HY0dx1IrEqmlbhNT+kvFUZidmV1cpPm+dekGyq4aGFdlv5QtDyZ6JAjwhW9faLtIocpv2nz5NFBxEIBSh4bYRfF05gUJYd12it6K0Cl5bUu0nSFs3sQdS/KsTw0ebjsyw9dVbYRD9L2lopH3eSN4bbI3pP1wZh51WUMqxEuhN+R4oIQ4UYNqvy/OENfwFCC8cwnXZLdkMicKEB1eocd7lQbyGwQGcBpj2uYYbf81oXlaJV0LB2bLCICB+Pl/3AnZ; 25:71gOGeeuHhqsDTqwOamWHjJEcTIPwhRHOSLHtDLnFfj03sB2md9kyUkG68Er8et25x1OmotNtwWI51OYmtsnZsQ7ExzCjudO4MeUs4Ai+3S7n8b+ZkRvcPBONua8zVaSlJC2T4NWiNVjwgJMi1arNcmj0c5lkyj0EhOAI7tNpAs8k2V0dcO7RifDXbY+tZwoEJOYnwFNVPrT0CLt2O6YQ5o/pq/6+jEb+VKtdnlA4GXodAl6313ck4PPUajpsTsBXwVkZ0FvI+fWB46GvqXUPXg7JDlXyLj5QV/+kZnHe0RvWiMMq3ZX5JVLvEKWTpHZY05+4gs89ILN2UIZpMBVtw==; 31:BXRxarvopYK55fOAL/t2u8qHMu9NbKkM7MZb3MDAHbFvZN2bZ1lKB/XKa1MWlhFs4mYPnyuCk6oqYN89lzuCMA9uRVgTXIvS1Qnys7AmjA88KLIk09Yhqi9SFKlQyquR0laTHyn15YDa6/fROru2JLfHexe3pmVaXNjqMKUMOyy2/ZRgPRpXH5W2pLYesj0I+fYi3oBOVF6ga0Ri5ziUDiTeIkW9Z9yAc6YoZr3Sk7k= X-MS-TrafficTypeDiagnostic: HE1PR0202MB2778: X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3231232)(944501327)(52105095)(3002001)(6041310)(20161123564045)(20161123560045)(2016111802025)(20161123562045)(20161123558120)(6043046)(6072148)(201708071742011); SRVR:HE1PR0202MB2778; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0202MB2778; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2778; 4:BUpK9klCqev/U8/cvWrx6bLWvHqdt9NavgwHKED58otTkcdDvwZM3PrGP59wr/Rv6zZXqeN5Z14lFMfV9VV4xTWbRSJCLYOpIli3fyD9rCzFsAJvAR9rp+RgPR+EgXJAykTe1F85FSFacLEt36w/oVk3mGUue79j3jRAipj/MFFi7isSj4nuUthg9DKsh6q873aeoKQHZaqunv+unFGb85h5CaWawbpsuUGasTZVyYBsLFeJH/qvejWkM2QSvOlkM6DEQzoWIEWsF1Emv/KsCQ== X-Forefront-PRVS: 0645BEB7AA X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(376002)(346002)(396003)(39830400003)(39380400002)(366004)(189003)(199004)(47776003)(81156014)(36756003)(66066001)(74482002)(2361001)(2351001)(50466002)(105586002)(316002)(48376002)(81166006)(478600001)(25786009)(54906003)(50226002)(16526019)(186003)(68736007)(7736002)(16586007)(8936002)(5660300001)(6512007)(3846002)(4326008)(53936002)(956004)(476003)(486006)(2616005)(446003)(11346002)(106356001)(97736004)(76176011)(386003)(6116002)(51416003)(6506007)(8676002)(52116002)(26005)(86362001)(1076002)(2906002)(6666003)(305945005)(6486002)(6916009)(7416002)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0202MB2778; H:orc.pedanet; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: axentia.se does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0202MB2778; 23:4bbKymL6G/bZLlx+gWPHpu5npiS7sSOwA61IC55?= =?us-ascii?Q?IwgmhpBSbXheDHN0gXa5h/euML/sTHUoeq5BMAY79dVaQEh+ZVO6gF0HNqLl?= =?us-ascii?Q?Jr2QrL/4evNQxJyJGTf0+FO+Pff2iJbsSZArwFuevgz+Z7awdjTeb2sony60?= =?us-ascii?Q?Bt7pcs/JR4jb926JYxnNjbRy7H1Y0N3CePrzgprroPNUS80b1yrN/x+z9Axr?= =?us-ascii?Q?RRZQq0afywBsR4jCpt5gPlsreBIqPaUaJzOXKG4e3v5Nw8emO5xvqArCY/1E?= =?us-ascii?Q?enC1B3UIYkLGwzG8Ce9I5Z2TEYFAkZToZO+/l8+UogHApKPGYqEZ9+irqJgv?= =?us-ascii?Q?mss0zWZ5KS2MdixlZLbbD+4UscYvQmzOgAgqhAWNA59pNCcgsTei2zX3rFKs?= =?us-ascii?Q?gmK8cro1VWwh5lUIs/gD1O6q0o7fVEoPLAu3GlmV+AC0XtorW82aTCJ1NZnr?= =?us-ascii?Q?NVLwD51uhz7Ua+mpedylIlmW/br2oD/RGfqRooT0jBceXL11q+yHXyTBC1Uf?= =?us-ascii?Q?Du+atSIhbqc/4Vllsldwiz8nftyi/mJhLq7ojuZ8IDFdY9QguUkgLpbZZTeQ?= =?us-ascii?Q?lA7F10qZA/Nl1sge7tsTHngtzGlsjMlou0Ks2CsG1XGTsyHskhvdAULffEiS?= =?us-ascii?Q?DsOPeLXNPhK6OxTdAS3LgUhSVfeZ1Xk0oXGkR+RxWbIc0sIRCEg/CtJflN3t?= =?us-ascii?Q?g+5Pa+B9sbDOuJIC/RerA/g6zhwfOcx6N2Kp22McWzG+bajGHFbfwbGZ70Zr?= =?us-ascii?Q?+W4/ugvo3ODbHtAnE7/ZRPZ/v29cArxlqpZI2FhK2ivnPaIZrt+B4VDabVLg?= =?us-ascii?Q?9iJRWXIDEekXziC8Owj2n39UwdNixM/blGSq7uwKNp0z7ttmZQCMbaQbZISF?= =?us-ascii?Q?sRKysWygQ3Dxho5L87WC9A2cW60PSoU7Rldemaj1nXum9ZNCAzc34PbEJveZ?= =?us-ascii?Q?TCyVaRhI/35ph7N0a7ehrSeOXAOMtwv2HNnp2aTMIqjI65/g6L1qGoXXc+LA?= =?us-ascii?Q?R/S4XxfVeQAPAr47I8FDhy+fim8N/evqRZ4Ipfa5A05SXjp24Jr4typJmt3+?= =?us-ascii?Q?767iAcwcW5fDEKn353p8++inSZgD1bBLbqIvZhGFiiRnyvRqEiM6txvHOOts?= =?us-ascii?Q?0JX8MldKpFoY7WQCKoyRlDMmSkazLJWX26aww6aTnJuU1it/cZz6Q1vpS36U?= =?us-ascii?Q?h8XKiqitRp/4KXxke3/nM8QvG/JNQ/gicPz8fBtwQiXH/Z5Hh+0RFd5amu7o?= =?us-ascii?Q?LqnxA7PM+Psza5979ynWEa+hXm2bfiWELNu3pOvEobFbttQThUJj3kxxd0oT?= =?us-ascii?Q?+PGGXWx1zCeG6YXWv37T7ti0=3D?= X-Microsoft-Antispam-Message-Info: kj7QMld6L1kPFszc1U9hglhINYEcvvdYcoLCweJZE/k0Gxp87XHKUoJ9de8BVh5LelT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5tcfi0sZ2RCM4S5Bp1bY8IZyAoWMdbqdU0iUy7TTE6tdmuk+6Ma5wPpKxmvPK7J5ZvQGPKQ4BCGpXjI5TDhd98yKi466FKLYGSGqyadRWa0doB/xiGw+nUjfQtD+eC9uXb4WTbgDzvduU5Y2Sq5OQpzWNcEngHaH3rbnSIPl3XncyBJ32zXsYIe8qag7Hh/B6S/jJrY X-MS-Office365-Filtering-Correlation-Id: ee8a5762-3bda-4737-6035-08d5a464bf21 X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Apr 2018 13:11:34.9051 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ee8a5762-3bda-4737-6035-08d5a464bf21 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0202MB2778 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180417_061150_031160_24B1CCDD X-CRM114-Status: GOOD ( 16.85 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Boris Brezillon , Alexandre Belloni , devicetree@vger.kernel.org, David Airlie , Gustavo Padovan , dri-devel@lists.freedesktop.org, Russell King - ARM Linux , Rob Herring , Sean Paul , Laurent Pinchart , Daniel Vetter , Peter Rosin , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This beats the heuristic that the connector is involved in what format should be output for cases where this fails. E.g. if there is a bridge that changes format between the encoder and the connector, or if some of the RGB pins between the lcd controller and the encoder are not routed on the PCB. This is critical for the devices that have the "conflicting output formats" issue (SAM9N12, SAM9X5, SAMA5D3), since the most significant RGB bits move around depending on the selected output mode. For devices that do not have the "conflicting output formats" issue (SAMA5D2, SAMA5D4), this is completely irrelevant. Signed-off-by: Peter Rosin --- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c | 85 ++++++++++++++++++++------ 1 file changed, 65 insertions(+), 20 deletions(-) diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c index d73281095fac..2e718959981e 100644 --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c @@ -19,12 +19,14 @@ */ #include +#include #include #include #include #include #include +#include #include #include