From patchwork Thu Feb 22 17:46:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jyri Sarha X-Patchwork-Id: 129303 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp855092lja; Thu, 22 Feb 2018 09:47:21 -0800 (PST) X-Google-Smtp-Source: AH8x227Z9SDHHgOWGIdJJWYojWT1n44cdijPoKwYP8FFLTgbWT3APO82zzSz7S3ph4jWJ3pSH7Ro X-Received: by 2002:a17:902:b43:: with SMTP id 61-v6mr7561175plq.270.1519321641397; Thu, 22 Feb 2018 09:47:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519321641; cv=none; d=google.com; s=arc-20160816; b=erCun39muoaqYIIAfHXFr9g1Hrzz2c14ZqDQlW6kj1drqhP9Kaw9I9zC5St2+qPwsf +8QVV9IDdF77gW/eDDrA3U4OXI4dRZGs/tbPu7SSRLAZb77eRzZ8GtdqsXHTlybxXIvK seSLQ3qrso+jvpflRjF/FJhx92g4rve38Pn788C7ocLVHfRCavvtjsMXjTchKj9pRbIi sytAdieWVQ0l+Fe8J5EM96EClQ98EeSSkLcsx0EA+/65UrleQFk/XHD4SltHFwbMWKX+ OXlMTAOQJzMylcpKvwZPyuPRMARq+CancBxAqBQb0zzjGcZuMtwE6qwXrIZAVB8VQZju O/xQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:message-id:date:subject:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=3YpQUFkkuA7QB9yYxs7KwXEBRuVTlI4ybL/2YWGdR/k=; b=jJazQTaX6Oi4B/xA9jxKHTb7hZW+d8Ub6NBfmSn2HA5ASKiZPwh8IOguSLSOMhQRfc ohi88HUcN3cOgCbnA6EQd67jx7bChKOQ+XAEwwVOZBszJS979W6OhuGqjUvttV1djP4r l5Pvk/IvhePLt2fZ2rfrQ6wsjkjdj/F2i6ufbDR1jBzm5njdr4/Fg8Ih2Qcg3ZjFVYeu vChgNIyJT2q+rg2F9ZprIqrVTQ+BKSBlzMbkfKM4OQLHQ/lHzScFp3g1zR8w0xKeXZKJ QtTIQP69Wn+zYKmLiStJau9lq/De+kRfswhu4eKpblM+tqObrMTMQiGcw4OUMncDgcLw Mjyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=kOZBZfuC; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id f34-v6si371082ple.102.2018.02.22.09.47.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Feb 2018 09:47:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=kOZBZfuC; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4507B6EF1C; Thu, 22 Feb 2018 17:47:20 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from lelnx194.ext.ti.com (lelnx194.ext.ti.com [198.47.27.80]) by gabe.freedesktop.org (Postfix) with ESMTPS id 68E716EF1C for ; Thu, 22 Feb 2018 17:47:19 +0000 (UTC) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id w1MHlIA3007760; Thu, 22 Feb 2018 11:47:18 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1519321638; bh=GKPia0ozVNlzmGl6Uv3VLNNzOkyhalZNSBCO6g5VucU=; h=From:To:CC:Subject:Date; b=kOZBZfuC8/YUJpJntmk8YaLq7HiWToD4CeEMJRuRy1mFy7A+cmzq5ZDPMABomMQ7U Cfj4btX58qKeTqzH1MevlaBIfuKnmvMWHqUCaCXuZ4aQtcL32NqSw5fAOLX6AMEy8Q YyxKuQLqr6IqMYmv8rywE6wuaHe+LAWJJ2ka1mKE= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w1MHlI4L024366; Thu, 22 Feb 2018 11:47:18 -0600 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Thu, 22 Feb 2018 11:47:17 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Thu, 22 Feb 2018 11:47:17 -0600 Received: from jadmar.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w1MHlFZD026313; Thu, 22 Feb 2018 11:47:16 -0600 From: Jyri Sarha To: Subject: [PATCH 0/2] drm/panel: Add device link in drm_panel_attach() Date: Thu, 22 Feb 2018 19:46:25 +0200 Message-ID: X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 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: airlied@linux.ie, Jyri Sarha , tomi.valkeinen@ti.com, thierry.reding@gmail.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The first patch could be squashed to second, but kept is separate since I think it is correct even without the second patch. With these patches unbinding a panel driver in use does not cause nasty backtraces and corrupted drm core structures, but instead it cleanly unbind the drm master device at the same time. The only down side (currently[1]) is that the drm device does not reprobe if the panel drived is bound again, but everything should work if the drm master driver is bound manually. Atleast this the behavior with this series on am335x-evm: https://lists.freedesktop.org/archives/dri-devel/2018-February/166898.html [1] https://lists.freedesktop.org/archives/dri-devel/2018-February/166907.html Jyri Sarha (2): drm/panel: Remove drm_panel_detach() calls from all panel drives drm/panel: Add device_link from panel device to drm device drivers/gpu/drm/drm_panel.c | 12 ++++++++++++ drivers/gpu/drm/panel/panel-innolux-p079zca.c | 1 - drivers/gpu/drm/panel/panel-jdi-lt070me05000.c | 1 - drivers/gpu/drm/panel/panel-lvds.c | 1 - drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c | 1 - drivers/gpu/drm/panel/panel-seiko-43wvf1g.c | 1 - drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c | 1 - drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c | 1 - drivers/gpu/drm/panel/panel-simple.c | 1 - drivers/gpu/drm/panel/panel-sitronix-st7789v.c | 1 - include/drm/drm_panel.h | 1 + 11 files changed, 13 insertions(+), 9 deletions(-)