Message ID | 20180319155742.13731-172-alexander.levin@microsoft.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp2897811ljb; Mon, 19 Mar 2018 09:03:41 -0700 (PDT) X-Google-Smtp-Source: AG47ELuQjzVuw2/3NVTm618qosC4lnMgjKIm2hq/jzufPoafWHafxMRfJly6bput24ixb0Y3AQBb X-Received: by 10.99.152.10 with SMTP id q10mr9565970pgd.62.1521475420789; Mon, 19 Mar 2018 09:03:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521475420; cv=none; d=google.com; s=arc-20160816; b=Gpa7GsklAc8LZCh7BGXqbXKLSYNTnZPjBudJMa1Q83v3rj59iy2N4gwUoIePRhrZxk H8iyxqRKza/sPl4NAVEc9isV/a2ZeWcLaZvW2wSug6v0waqQgxBAZ302Qnu+xtws2VxM RCOpJmlyO+YhCyXjGove9gW2rTed7n9FFqjwq4U/WDRZFMgUSmsUxs6mbJ1Sk2HPpTcG eWoRxXQB1k5r7fa9OqlCPPEBt6dQHJnbbC62pLalk2iykgAU0MfgdZCcDNLTso1RzPau 79+J307lXpXyiqwwDyKbGwzatH4NxkQVNEZyQnjetWbni/k/iS7mZjcdOM9HVNUEc+d6 PfYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=QoYdUxoV2ywwpXdDMj6MqnIEaWTSAabMPpYy5LdAmX4=; b=FRxd+qV0PPEtvbjMCtnRIHcodX96E7myTBn5VrChjPGsQH0FwH7boJ7tekdnU9TOsX FtOUClWKw6RCwe84SMKDgotgMLUmpYmcHIYEWbwFAUI83l6W3JSpOkS7B166e/OWZJnB WEGdVHoObHI0tuVALo1O071JRC5gsNkns1GXZYJvJ9lormzr+9FrGfcIMyT8uD9DXHRV dG2utaBIVTXuD4Tah74kaTwFHwHcmaBlieBpYgJaB4UJuh2p/t1ESe8H1FZvZxdzD0jV TGLk2yJb4y+lmAjsI/FDMethYXPlwUZz1Nrzc0nmaXQ8x6qIJR2U8FP5QRHNzn1wiD26 hrPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=M5dapYdt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h7si165296pgc.663.2018.03.19.09.03.37; Mon, 19 Mar 2018 09:03:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=M5dapYdt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935038AbeCSQDe (ORCPT <rfc822;dan.rue@linaro.org> + 28 others); Mon, 19 Mar 2018 12:03:34 -0400 Received: from mail-cys01nam02on0106.outbound.protection.outlook.com ([104.47.37.106]:53674 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965533AbeCSQDJ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 19 Mar 2018 12:03:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=QoYdUxoV2ywwpXdDMj6MqnIEaWTSAabMPpYy5LdAmX4=; b=M5dapYdt5klvAGJ20Ea89SE2bATgvSGEmuNCcRyQ73nHecrrr+jt2ZkfsfD8dbp24gp+ZpUEj+IVzHpXolQjaLwajRBAcIfpMLBvGPosj+SN+CbmRqMzMyPqt2RKX0XtUIfz3W8PqJ4lOxV36/YBbKVLwUJMAe0pV7+xMK7IZ4k= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0725.namprd21.prod.outlook.com (10.167.107.167) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.631.0; Mon, 19 Mar 2018 16:02:58 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::3d9b:79e7:94eb:5d62]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::3d9b:79e7:94eb:5d62%5]) with mapi id 15.20.0631.004; Mon, 19 Mar 2018 16:02:58 +0000 From: Sasha Levin <Alexander.Levin@microsoft.com> To: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "stable@vger.kernel.org" <stable@vger.kernel.org> CC: Maxime Ripard <maxime.ripard@free-electrons.com>, Sasha Levin <Alexander.Levin@microsoft.com> Subject: [PATCH AUTOSEL for 4.9 172/281] drm/sun4i: Ignore the generic connectors for components Thread-Topic: [PATCH AUTOSEL for 4.9 172/281] drm/sun4i: Ignore the generic connectors for components Thread-Index: AQHTv5uD9qgG6lP+3keco7sYJnubnA== Date: Mon, 19 Mar 2018 16:01:17 +0000 Message-ID: <20180319155742.13731-172-alexander.levin@microsoft.com> References: <20180319155742.13731-1-alexander.levin@microsoft.com> In-Reply-To: <20180319155742.13731-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DM5PR2101MB0725; 7:ok7zNkJzWk7luYdncS2f4etChJ7sdK+N5ycQk8w2aG/hogZNX+Uof5rLV1jhZdSfNYjPZKepDwls0ekjtfhucBS0r+F1FmkrA2LdEt73QD1U7vAfuz8rU8iIqCIdMBdggXjirWo60zU0U5pIaGLAj1cBx33OjW4YzXmzKTOvXRgfQK9T7WtExlrnRTIYAMMDyO6zHjAW7xzEEtMZWrVkbSa1R7eDci1iQfqWoop1uTo7NRPrGlcXUPywsvsOk12w; 20:nRB4tGxKsOPKQ3nBkgOGyfmULdrxEwRJLDh7UXLcagLqa0JMKXoASMNOaO8bbqBJGzV1hEh2d6Ra/89dSJl+DFkzK9cqmdAWEl0Vuc4Ab/LwTxAYZfc3EC0LrW9DZVFG3Jbyi0DcLMpUNeIV2qKysVisfNGVvYCS9WmLzarXP/8= x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: ec03643b-b226-414e-a78a-08d58db2e273 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020); SRVR:DM5PR2101MB0725; x-ms-traffictypediagnostic: DM5PR2101MB0725: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: <DM5PR2101MB0725E9EEC9BCB2A59EA636FCFBD40@DM5PR2101MB0725.namprd21.prod.outlook.com> x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(58145275503218); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(61425038)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501300)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(61426038)(61427038)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123564045)(20161123558120)(6072148)(201708071742011); SRVR:DM5PR2101MB0725; BCL:0; PCL:0; RULEID:; SRVR:DM5PR2101MB0725; x-forefront-prvs: 06167FAD59 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(396003)(39860400002)(376002)(346002)(366004)(39380400002)(199004)(189003)(2900100001)(4326008)(54906003)(10090500001)(81166006)(316002)(2906002)(14454004)(110136005)(107886003)(6506007)(186003)(81156014)(22452003)(68736007)(53936002)(3660700001)(478600001)(5250100002)(2501003)(99286004)(36756003)(105586002)(6116002)(3846002)(5660300001)(72206003)(1076002)(2950100002)(6666003)(305945005)(6436002)(86612001)(66066001)(10290500003)(76176011)(97736004)(8676002)(7736002)(8936002)(6512007)(102836004)(106356001)(3280700002)(6486002)(86362001)(25786009)(26005)(22906009)(41533002)(217873001); DIR:OUT; SFP:1102; SCL:1; SRVR:DM5PR2101MB0725; H:DM5PR2101MB1032.namprd21.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: LQ+ZSkklCYe0zaORtgfjzriNX/IW3YTAJdvLx3fVQzKywMfRkRa3WTiCZRja55N/Cfcl9t1eEXSqi4Utl8JQ1h9yN2R3bCMd7CHIqQhTDJFegEW54kVPGKcj3dK8T+KnOJwIH2Hica3ajdUqKK6u9CRNdFxJOK26vSyxBwOVFDhU5ZL8DxtnSW9wptWLOw8hdwq5EBx1n9Vi4ez3Wo19iefuTCxqGjS3aNGa9imDqVlYrjcLBKm2K++Csh5QpAQ+NcLbxvnx2H0GEY/zl7oxmOrR0dNyG0gDSLrPXCLAqgDpMYtfcn7RGa+bJM5ve1zJ28g/ZOS/LNPJ2BGudTTENQ== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: ec03643b-b226-414e-a78a-08d58db2e273 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Mar 2018 16:01:17.1820 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0725 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/drivers/gpu/drm/sun4i/sun4i_drv.c b/drivers/gpu/drm/sun4i/sun4i_drv.c index 1feec34ca9dd..7a3d8e8eed75 100644 --- a/drivers/gpu/drm/sun4i/sun4i_drv.c +++ b/drivers/gpu/drm/sun4i/sun4i_drv.c @@ -206,6 +206,11 @@ static const struct component_master_ops sun4i_drv_master_ops = { .unbind = sun4i_drv_unbind, }; +static bool sun4i_drv_node_is_connector(struct device_node *node) +{ + return of_device_is_compatible(node, "hdmi-connector"); +} + static bool sun4i_drv_node_is_frontend(struct device_node *node) { return of_device_is_compatible(node, "allwinner,sun5i-a13-display-frontend") || @@ -246,6 +251,13 @@ static int sun4i_drv_add_endpoints(struct device *dev, !of_device_is_available(node)) return 0; + /* + * The connectors will be the last nodes in our pipeline, we + * can just bail out. + */ + if (sun4i_drv_node_is_connector(node)) + return 0; + if (!sun4i_drv_node_is_frontend(node)) { /* Add current component */ DRM_DEBUG_DRIVER("Adding component %s\n",