From patchwork Thu Jul 22 16:31:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 483916 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp524545jao; Thu, 22 Jul 2021 09:41:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3sW3wmhAgQYUnEiK1m0fREpyMIaiewNmisYGUn3X+n2rRFApw9QXbuh1dbcJRCogDUvWq X-Received: by 2002:a5d:8602:: with SMTP id f2mr457805iol.61.1626972074751; Thu, 22 Jul 2021 09:41:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626972074; cv=none; d=google.com; s=arc-20160816; b=WqS5dLb3A8mjaUswx+7lceDSj58m+NZu4jX9q8/eOqKEO5WchocPDNcCVA2aZ1sEEk b7yVpBDmI6evXeK2onWgyaOMmqB0w7NLXTxtpz1enpeg8E4cp/r/aP/Azz88kCB+CQ/a iuiKpNTcg7g6KgtGfPR4GL8NCubLvgDNnLDvsdAK+dvSDsmJDH4oYTMAP9vNLuY05CLN Bl2Hcrq1CIOK6sLdJEkEssp5QVexbpfK1iASi8arm24/C/vmAN6gkhJ+7/ERehsFPQJG KpUaOXOE8pYv3ocOLKCv6yfK9x/3GrWbPrSNlM8baRlV6Eu4SaIFujPL9yzG2yUcqkjN n67g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=364UsVDTYP0Phgr5v9WdIXFsh6yYbzmX5kmkiCgmhzA=; b=xnHZpUeHgjM6ri3euMK/zoBi8wIyrMV0KPQVqumD/Cw1OFyaQiiifA89MBo0Lx6Yai +SdzcVv/8XMGf6DPDeE74pEYMNwaTUFthopcFpwootKJO26LaHUOpSwY3QPXJHrZh1nB Tpp8njbpkiEfpyTNdtoEvHYGBTBeIu4ZgmHkbw+1nVfKWc8zuXG+cBLm1JbsORZgfbsk oOSdD7OMAjwQ/VJz6x0x8om1T8OS2k0+hikU/X4+fjkWGXSbalOg1E1KBO0rGbzgdLK9 fHeG8Zy5ToinW1wLKskWLk2CT8LDSoQwhjiyUstPfFaPN+PWZLNebDp/myuhWRwQjbky WJSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rPBrPcrW; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l15si32106787jad.101.2021.07.22.09.41.13; Thu, 22 Jul 2021 09:41:14 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rPBrPcrW; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233705AbhGVQAf (ORCPT + 12 others); Thu, 22 Jul 2021 12:00:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:37632 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232997AbhGVQAD (ORCPT ); Thu, 22 Jul 2021 12:00:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CE6D760E0C; Thu, 22 Jul 2021 16:40:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626972038; bh=bxp28ytE6JLkgpD5YkX0/KOLSOb7QxiwSiht3C8xOdc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rPBrPcrWOP20vT0LAVx+WaZ7PxCDOqY1o0cZxuUxwS6ObrRvL4kyKjj7am/3YpvrG YWlsIzUoDF9pLiWkQnhaEA3I/SgMG+I49CFjuP1b621blMhKvoxeCci5nk2gAhD2xG 5RsXEr3SlH1bWhbONRcUiBQyN7OYegprMYlb3pxQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Stephan Gerhold , newbyte@disroot.org, Linus Walleij Subject: [PATCH 5.10 124/125] drm/panel: nt35510: Do not fail if DSI read fails Date: Thu, 22 Jul 2021 18:31:55 +0200 Message-Id: <20210722155628.826965016@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210722155624.672583740@linuxfoundation.org> References: <20210722155624.672583740@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Linus Walleij commit 1988e0d84161dabd99d1c27033fbd6ee439bf432 upstream. Failing to read the MTP over DSI should not bring down the system and make us bail out from using the display, it turns out that this happens when toggling the display off and on, and that write is often still working so the display output is just fine. Printing an error is enough. Tested by killing the Gnome session repeatedly on the Samsung Skomer. Fixes: 899f24ed8d3a ("drm/panel: Add driver for Novatek NT35510-based panels") Cc: Stephan Gerhold Reported-by: newbyte@disroot.org Acked-by: Stefan Hansson Signed-off-by: Linus Walleij Link: https://patchwork.freedesktop.org/patch/msgid/20210603231830.3200040-1-linus.walleij@linaro.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/panel/panel-novatek-nt35510.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- a/drivers/gpu/drm/panel/panel-novatek-nt35510.c +++ b/drivers/gpu/drm/panel/panel-novatek-nt35510.c @@ -706,9 +706,7 @@ static int nt35510_power_on(struct nt355 if (ret) return ret; - ret = nt35510_read_id(nt); - if (ret) - return ret; + nt35510_read_id(nt); /* Set up stuff in manufacturer control, page 1 */ ret = nt35510_send_long(nt, dsi, MCS_CMD_MAUCCTR,