Message ID | 20180419162751.25223-6-peda@axentia.se (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 EC0D660231 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 19 Apr 2018 16:34:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DA4222893C for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 19 Apr 2018 16:34:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CEBB528AF7; Thu, 19 Apr 2018 16:34:06 +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=ham 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 55CDD2893C for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 19 Apr 2018 16:34:06 +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=J45GQQSMDRjivb+TAL8ahW1UxOwlwclAQqtA5KzkONk=; b=WS8Jm2RSEdB5Y6 W1NHzB5PZO1RtwSaTGuvigbbgOhQT4/VyuozzhRrsLHnZ8FllVXIea9osXnGRzXIWJXec8ZLZmEoT BUPeZTTeHOF0AOXZkHYnoou+cjziZIw5+qtSTajL47qekaJAxDbC11wsIcnLf8b1OXY4EtxkI7j8v azGYmyjuIm8ARTHU0wxZjvAlA1NuWsY/W1JDhiP4G4ETPZZzLjehvwUB9SaSGmeyVJQHJwrBv3kZs FULYKCZFx4CUC4BM58FMWmNB0zorpwNSyvD46PhSpuxwDtYn8vWRiNJEUtw9f8ONdGM+CUkgABh9j 4bB8Q7CCbESTH91fma0g==; 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 1f9CVL-000816-V8; Thu, 19 Apr 2018 16:33:51 +0000 Received: from mail-ve1eur01on0113.outbound.protection.outlook.com ([104.47.1.113] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f9CQR-0004ic-Vx for linux-arm-kernel@lists.infradead.org; Thu, 19 Apr 2018 16:28:49 +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=GKLFt7r/x8S6ZYAjGFsg6R7FGQphXGYMjzZuibXV4gs=; b=pgwzK5ayWZZcePlfNc8XJhqXqZ2FNURHZQAWr/CMkqqtkArohrs6gUnIdD9TmNZyFi5xG7DqX7BqXKB1L2ooo6XtI2SVIymUl4pTBs44btYThM/2U5IerRWB/fqq3k+xiKcD/En9+QRMtoXDCQmtomgT7qSMadEBXVPiec9H94Y= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=none action=none header.from=axentia.se; Received: from orc.pedanet (85.226.244.23) by VI1PR0202MB2784.eurprd02.prod.outlook.com (2603:10a6:800:db::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.13; Thu, 19 Apr 2018 16:28:33 +0000 From: Peter Rosin <peda@axentia.se> To: linux-kernel@vger.kernel.org Subject: [PATCH v3 5/7] drm/i2c: tda998x: find the drm_device via the drm_connector Date: Thu, 19 Apr 2018 18:27:49 +0200 Message-Id: <20180419162751.25223-6-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180419162751.25223-1-peda@axentia.se> References: <20180419162751.25223-1-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [85.226.244.23] X-ClientProxiedBy: HE1PR0102CA0072.eurprd01.prod.exchangelabs.com (2603:10a6:7:7d::49) To VI1PR0202MB2784.eurprd02.prod.outlook.com (2603:10a6:800:db::9) 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:VI1PR0202MB2784; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0202MB2784; 3:OsNsWW+hEPQcfCXJhQHj5BJLjxoiv/BLH9pkI9V3aXICbhmTWreQWGv5ruvYdLeM32QdtVR47qWcHd/zFZTgxaqXKXf2wdH5lxiKY0EHnO8peUr/6VO3oeVlViQwm9YW29ASv+P+ND+llTXA1VcHShFxt0O7v+sUGWcm8b3RjQj7jzGaceHoOUM8Rsa3ufeQRIcy+c2gVXIvJtaJH5z1Fi0CANGxTjPPzUvihAf8kbz+SayNXSWFSgCeAe2DnfTs; 25:nxyA0eSXANbXv3id3UOh8/aYFF5hvTZSN6I6Da99vS2MH96Rp9QQeaPyHG/iuZOxnO9D81/iZzRaC3sKgxJla6xDndzhJk0EJmSvJg/0og//prN7SgcennDNrEcfwvP83UI3xPa9ghm9I2j3XsldW9NOmr4WlpxYpSV+JChaL2WPooMbiL+49M+rAKHKAFzsbE1eFsjgHofHjhcbHvpXN2H5MZ5B4/cOOhhdwRh7rv1qJUbeyz6xPeqrQ+atWeeFvHgIjWfvMXP9DAcESB3OvaWhkkvl0HJnN11bGY9iF4xBTvr5OySbcaGt1ZEcBM7DoAa/q9oNsqSZf8DN/wKgPA==; 31:kOZmublG4ATmT1RevkoLpRhx2AXiBDWgIcVIFua49ZHVuQNDriPnW1FaMcY9HzyrvLHc5qGhJ0pVg9GmyC+/tnKjEepJYDA6a/ePbTNbRK948+fhfSnkuA2gk5BsgsR6WouGWTtHFY53hrGMGfihKnAa7nvvKcq5vB6UaW4LAzq5Dt3bhVnJQsYc0klT/Nd+Jzs9lGB5jYEr3AN6U4dlWqkLa430B+nIun6UijkPOCM= X-MS-TrafficTypeDiagnostic: VI1PR0202MB2784: X-Microsoft-Antispam-PRVS: <VI1PR0202MB2784E7CAD702E700D01A51AEBCB50@VI1PR0202MB2784.eurprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231232)(944501327)(52105095)(10201501046)(3002001)(6041310)(20161123558120)(20161123562045)(2016111802025)(20161123564045)(20161123560045)(6072148)(6043046)(201708071742011); SRVR:VI1PR0202MB2784; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0202MB2784; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0202MB2784; 4:9ATgtmFMgIvifoKrd4WPCLHUb07TKiplsjEOUGKkJVsXsOFmMGmWXgbRWTOfurqd+Ap9b+t8nSU3xtrSiztgTok2YL/2Cghdf34Zs2WekebIgZuES76lf5ASAK+7tkgIFVOvElWlZPI+aFlmO+OxtPeNfbSRVduFTli9L+52kOT66FrUUEy0diVLbTMbSQ5DsdfV9WbIN0qqFxurkpS8nMnJssC9H+MKV9h3Schj4urqnnRkvWL/oeF29jckRocR8LVjUWQKHMPXQewTkNT4iw== X-Forefront-PRVS: 0647963F84 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(396003)(346002)(366004)(376002)(39380400002)(39840400004)(26005)(86362001)(50466002)(50226002)(8936002)(6506007)(386003)(76176011)(47776003)(1076002)(59450400001)(2351001)(66066001)(6116002)(3846002)(2361001)(16526019)(305945005)(186003)(74482002)(11346002)(956004)(2906002)(446003)(6512007)(52116002)(53936002)(6916009)(6486002)(476003)(478600001)(316002)(8676002)(4326008)(2616005)(36756003)(7416002)(7736002)(6666003)(48376002)(16586007)(5660300001)(54906003)(25786009)(81166006)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0202MB2784; H:orc.pedanet; FPR:; SPF:None; LANG:en; MLV:sfv; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0202MB2784; 23:7vS/Rjt4+bznOEEG9Ul+XeLPMK5Zx5g1Yy4OKE3?= =?us-ascii?Q?JlGCIfRrk4BAbg9qYYlkhuTKD5ZndUZbK2BCGQZKs/YdUbi7LfdGZi2EdIaU?= =?us-ascii?Q?zMcq5/da+hRtKfm2OQieGy6xJ6y/M1EZbqUj5ZuKIfhTKclTOv2TOO1kQK2y?= =?us-ascii?Q?tkKT2ej9TcayBgVW5hU6JDr1q8ID9AfHIoyht7gYgyp+cxS8QtpVXwNA3TQB?= =?us-ascii?Q?0dJOQ1G+nbFa1eO7fZ+88LqGl/c16BwnEx9xcroveeP6bTqmk40FpqjYl+1U?= =?us-ascii?Q?u+UFKwbyQ39kwfB7mJmC+v3SHuRhE8m6PVcTuzLZtG/YvGZdwSOrwjaHmn7Y?= =?us-ascii?Q?/iCFRoucQeCn59RQGpQNCexs2rZvATFBxopZOQxG/Uu/xpp4EZS3V73cJnwR?= =?us-ascii?Q?OEckNw3v5orah7URAYg6n735fvWcPbKwoXHQW9qHrcGQGsro6eQJEO8mzJ1H?= =?us-ascii?Q?VTQ3a2J3CxtZr2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UQPPV0F X-Microsoft-Exchange-Diagnostics: 1; VI1PR0202MB2784; 6:TePwQFhzO5ADiKCJL9KUn9x2C/+jJbvQTtsCMCdCj5FAJF9jgZnsrCZfKq4kTg/NUwbWB9uIW+nzyNmAeu7cGQmp/g2kTCBiQHOtjD6ZraMvO/sU3tcC/Z2mzpLy1TWn2U2NRKh8EMNDQQKx5SpfIRlJxVvAfp/rDHsLTtLSWFzpunwRELEpoNXgDRB+wFGSvkOJSQyWzap9+iNlgzR1ma9xEmoHJklTI15fR+f9ekGxnjIFXU5DrfK0rNCb3Xjng7nAUXx2IODPssAp1JQMBG/PEqWup06+OHP8WGGd1Q2jvn68iDYa+dXTTCFDaG+jpOfdROrCK4niKrNqjwnjAy85j8S165QTTr0WvCYYp1DiSbBW0iAw7J7hysZRu3lBH+1qAX5OsEHbplPuMVFOiyfhQcMSulvK37c7Sw1kbYdY4qLqoVv2o123t2MiC8N/lRbr+hA2PqPiYeK8ImSA1A==; 5:hB0l7Cv/UxNqAn4IzrVAvmmUvJ+Psrewl94tklHjc2wcLLtXO182Ce5n0pW5S0tMH3HYR0dH5a/y4YwVcacuaMkYowtoOPfJZcw18eKbfVoWOj93zTwVfrYa/20/yX/a8bf9FGpWnwUu3Ev2Qp6kF3kHiHrSbmrGNA5bKaH1tz0=; 24:qfXOlwVQd4VTI/guvpruCkm5F+XkN75m53cB9frS6fw/cyjtdjGuBMcR9GyrT53bsXZbH3FmW+y8GpDxpjEI/VDrc1+IIekfpXgJIlBxi58= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR0202MB2784; 7:fxL2kF9ag2q1NwSzlwtTdCcMKJC5o4x78U7lunBLz5nmU/ERYcU1TqUwcTfJ46h8mnWaUyyYKFGNv18BaaAG01B41VXJHolTokNfdY6+d+7vtf5Usi+Z/nIE+DilWI3TMjcDyLYpAY4moupL7xYCW3/bbwmsf+bvLk1StuqHnJs27n4DGiZaqKDhQQvnXIWJ5sS54n9EO3azwoI4OPASdnX8COZKBCtltYgexLQPyyQciFjwLGLw0sd6IHgfL0gy X-MS-Office365-Filtering-Correlation-Id: 148c0c8c-b3d3-442b-6e0b-08d5a61298cf X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Apr 2018 16:28:33.4427 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 148c0c8c-b3d3-442b-6e0b-08d5a61298cf X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0202MB2784 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180419_092848_420563_473ED135 X-CRM114-Status: GOOD ( 12.84 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Mark Rutland <mark.rutland@arm.com>, Boris Brezillon <boris.brezillon@free-electrons.com>, Alexandre Belloni <alexandre.belloni@bootlin.com>, Jacopo Mondi <jacopo+renesas@jmondi.org>, devicetree@vger.kernel.org, David Airlie <airlied@linux.ie>, Gustavo Padovan <gustavo@padovan.org>, dri-devel@lists.freedesktop.org, Russell King <linux@armlinux.org.uk>, Rob Herring <robh+dt@kernel.org>, Sean Paul <seanpaul@chromium.org>, Laurent Pinchart <laurent.pinchart@ideasonboard.com>, Daniel Vetter <daniel.vetter@intel.com>, Peter Rosin <peda@axentia.se>, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
Hi Peter, Thank you for the patch. On Thursday, 19 April 2018 19:27:49 EEST Peter Rosin wrote: > This prepares for being a drm_bridge which will not register the > encoder. That makes the connector the better choice. > > Signed-off-by: Peter Rosin <peda@axentia.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> > --- > drivers/gpu/drm/i2c/tda998x_drv.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c > b/drivers/gpu/drm/i2c/tda998x_drv.c index cd3f0873bbdd..8f6e013f2b87 100644 > --- a/drivers/gpu/drm/i2c/tda998x_drv.c > +++ b/drivers/gpu/drm/i2c/tda998x_drv.c > @@ -630,7 +630,7 @@ static void tda998x_detect_work(struct work_struct > *work) { > struct tda998x_priv *priv = > container_of(work, struct tda998x_priv, detect_work); > - struct drm_device *dev = priv->encoder.dev; > + struct drm_device *dev = priv->connector.dev; > > if (dev) > drm_kms_helper_hotplug_event(dev);
diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c index cd3f0873bbdd..8f6e013f2b87 100644 --- a/drivers/gpu/drm/i2c/tda998x_drv.c +++ b/drivers/gpu/drm/i2c/tda998x_drv.c @@ -630,7 +630,7 @@ static void tda998x_detect_work(struct work_struct *work) { struct tda998x_priv *priv = container_of(work, struct tda998x_priv, detect_work); - struct drm_device *dev = priv->encoder.dev; + struct drm_device *dev = priv->connector.dev; if (dev) drm_kms_helper_hotplug_event(dev);
This prepares for being a drm_bridge which will not register the encoder. That makes the connector the better choice. Signed-off-by: Peter Rosin <peda@axentia.se> --- drivers/gpu/drm/i2c/tda998x_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)