From patchwork Fri Sep 24 00:33:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 12513807 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BD630C433F5 for ; Fri, 24 Sep 2021 00:34:07 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6E5B261211 for ; Fri, 24 Sep 2021 00:34:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 6E5B261211 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7DEF76E12E; Fri, 24 Sep 2021 00:34:06 +0000 (UTC) Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by gabe.freedesktop.org (Postfix) with ESMTPS id 27E2E6E12E for ; Fri, 24 Sep 2021 00:34:05 +0000 (UTC) Received: by mail-pl1-x636.google.com with SMTP id t11so5109335plq.11 for ; Thu, 23 Sep 2021 17:34:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wBds1209QF1z+nVsiiM4qRmbmC7cbF+FEIw3lHoYGtU=; b=Kf2Vmhk/2dt9qb+/V976czb5kimbAJ60AV/FhT7PiESWhjOypVvOnbkZ3kcgopY7EG MZh8TlfeKuJG1xSZnGXlsF015BWEXhGvpFjkzppCCSrNgwyCYADwFtr2t9TK7Quk3Vm8 iVt/4gT9vxnz3xJvPcDP02r0Pl8yl6PgItmD4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=wBds1209QF1z+nVsiiM4qRmbmC7cbF+FEIw3lHoYGtU=; b=AhjnaG33BMVFNa2KM1GUKliFkgNRrCNg6r1bw3CDQbB11XWhfUhT+p2llpbuSR3dpQ W96/xBLdB9avGmtkLBUq6RXPVX2BKYmnkHH6FssWzCQFyCHPB5fP3KqZcrMP1mGiuWzl GR1IewjjW8GCOAidBa1C5qbAb6/bCh+ZrQcHc6JUEh5RyVuRbJQXzAfuvfBQV82hfX9s xXypTj+8lZ1BJrBXcvyk67knlMg5CQ4qgQL/NBlJKpbU8njUVX25NeQx/EvxtctHfP8x nfuOR51/k4zCR7TX7fB9PhNWKgiCxuLWZcd58ZuX2Zclu4HlAt7OOQw7z/vHpBL0HkRK bUiw== X-Gm-Message-State: AOAM531nsgOnHQ18YZaswC1IrbyiTlbjhT/UssAuh387bRg9BBxc64Ua y55o5U+/sq+HZkEn+PAfkAVgPA== X-Google-Smtp-Source: ABdhPJyN772GEe8KfQixCUxePZ0AlT/1P8uSb37qfIbvMHownMWtbQ9SCDgYmKGc15Cbf3BX1Tp/1A== X-Received: by 2002:a17:90b:4b82:: with SMTP id lr2mr20911175pjb.94.1632443644726; Thu, 23 Sep 2021 17:34:04 -0700 (PDT) Received: from localhost ([2620:15c:202:201:74de:c8b7:3a35:1063]) by smtp.gmail.com with UTF8SMTPSA id g8sm6555217pfv.51.2021.09.23.17.34.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Sep 2021 17:34:03 -0700 (PDT) From: Brian Norris To: Sam Ravnborg , Thierry Reding Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Heiko Stuebner , Sumit Semwal , Jagan Teki , Brian Norris Subject: [PATCH 0/3] drm/panel: Proper cleanup after mipi_dsi_attach() Date: Thu, 23 Sep 2021 17:33:52 -0700 Message-Id: <20210924003355.2071543-1-briannorris@chromium.org> X-Mailer: git-send-email 2.33.0.685.g46640cef36-goog MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 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" I've tested a few dual-DSI panel drivers which choke if they PROBE_DEFER at the wrong time, so I patched those up in patch 1 and 2. Patch 3 fixes the other drivers that I couldn't test, but seem to have all the same problem. Brian Norris (3): drm/panel: kingdisplay-kd097d04: Delete panel on attach() failure drm/panel: innolux-p079zca: Delete panel on attach() failure drm/panel: Delete panel on mipi_dsi_attach() failure drivers/gpu/drm/panel/panel-feiyang-fy07024di26a30d.c | 8 +++++++- drivers/gpu/drm/panel/panel-innolux-p079zca.c | 10 +++++++++- drivers/gpu/drm/panel/panel-jdi-lt070me05000.c | 8 +++++++- drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c | 8 +++++++- drivers/gpu/drm/panel/panel-novatek-nt36672a.c | 8 +++++++- drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c | 8 +++++++- drivers/gpu/drm/panel/panel-ronbo-rb070d30.c | 8 +++++++- .../gpu/drm/panel/panel-samsung-s6e88a0-ams452ef01.c | 1 + drivers/gpu/drm/panel/panel-samsung-sofef00.c | 1 + drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c | 8 +++++++- 10 files changed, 60 insertions(+), 8 deletions(-)