From patchwork Mon Jul 30 15:26:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Paul X-Patchwork-Id: 10549223 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 946191751 for ; Mon, 30 Jul 2018 15:27:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 84972293F3 for ; Mon, 30 Jul 2018 15:27:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 791A62980F; Mon, 30 Jul 2018 15:27:01 +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=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 29A65293F3 for ; Mon, 30 Jul 2018 15:27:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726784AbeG3RC2 (ORCPT ); Mon, 30 Jul 2018 13:02:28 -0400 Received: from mail-yw0-f195.google.com ([209.85.161.195]:39768 "EHLO mail-yw0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726743AbeG3RC2 (ORCPT ); Mon, 30 Jul 2018 13:02:28 -0400 Received: by mail-yw0-f195.google.com with SMTP id r184-v6so4497276ywg.6 for ; Mon, 30 Jul 2018 08:26:59 -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=Xk1rZx/rVylGFw2cGQC/iU8NNTdihwTaB/MPx5g7iGI=; b=AVfvVonGGj7hg198avgLfnNxnEQHepu6zjusmghrp9dGO29F3XsGqjrPlomwM6Qu55 kMSIfkh+Nd8rKqux+8tr8AvTCtA2woXKeY6yAaFLixpFb5yFhBTVd262zlew2WgJx7Ea cwwv0Vkqf+eFpd/lC483eqUnhdeswdChKj8VQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Xk1rZx/rVylGFw2cGQC/iU8NNTdihwTaB/MPx5g7iGI=; b=tkyGwOJuPtf8ZZvE4eliW0g1XwqwUO5Jl//OX3Oo6bbCTeSGVkIvy6S5hZJTxSOxvB WywCwZAvz1CWzRQYgYw4PWO8Y+Y3ROLpL1pz1WNJ85Dtnqh98NvzHA/8t6V9jZbk7fMY SjfyP5P/tq02DF5BmUi6jrrmTazreGG316x0BTtD+ihiEFHVq+sYOHEvrBjgf9VXeRAI 6GU3iR6O7udELCJdPee7Bhca/hzVSVm2/BfVePYcsy+AYEuZp7yBaoXUqJZ8OCRgtEEr 1pRdwQeNwnRt4wDpiYTc2Ugq15uVPJ+cfeBb2E3/RIAEine1GWufx/AAwypThozJsgXZ xxEw== X-Gm-Message-State: AOUpUlHTB51D/ArTSEBAbSsEPczsWEBjchs0v/F5AHQBvKkdIzC7LeHk 18avn4Ge34dRqlSgdIi43PEZPg== X-Google-Smtp-Source: AAOMgpfDN8k7dP9maddrT1pKbboje8AEpe9oGKmLeZGueiViCLMRPmB7GFeM7tHHNgTB6pOXvubUbA== X-Received: by 2002:a81:20c2:: with SMTP id g185-v6mr8856059ywg.303.1532964419552; Mon, 30 Jul 2018 08:26:59 -0700 (PDT) Received: from rosewood.cam.corp.google.com ([2620:0:1013:11:ad55:b1db:adfe:3b9f]) by smtp.gmail.com with ESMTPSA id s63-v6sm937383ywd.63.2018.07.30.08.26.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Jul 2018 08:26:59 -0700 (PDT) From: Sean Paul To: robdclark@gmail.com, freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org Cc: dianders@chromium.org, Sean Paul Subject: [PATCH 0/3] drm/msm: dsi: Properly handle disconnected secondary dsi block Date: Mon, 30 Jul 2018 11:26:52 -0400 Message-Id: <20180730152658.157098-1-seanpaul@chromium.org> X-Mailer: git-send-email 2.18.0.345.g5c9ce644c3-goog MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The configuration where dsi0 is connected and dsi1 is disconnected doesn't work currently. When dsi1 fails, it paves the reference to dsi0 in dsi_manager, which causes mass carnage. This set ensures that we clean up the correct dsi device, and that we fail gracefully if a device is not connected to anything. Sean Sean Paul (3): drm/msm: dsi: Initialize msm_dsi->id to -1 drm/msm: dsi: Return errors whan dt parsing fails drm/msm: Don't fail bind if nothing connected to dsi drivers/gpu/drm/msm/dsi/dsi.c | 10 ++++++++-- drivers/gpu/drm/msm/dsi/dsi_host.c | 2 ++ drivers/gpu/drm/msm/dsi/dsi_manager.c | 4 +++- 3 files changed, 13 insertions(+), 3 deletions(-)