From patchwork Thu Jul 22 16:32:07 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: 483926 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp532443jao; Thu, 22 Jul 2021 09:51:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhl3g/x2upRUxYT5NDQp4qQ8g5/QR40qiLEAmtWMj5u2Pr2cKtJCTxiLH1jkmEUwKzNiPf X-Received: by 2002:a5e:9602:: with SMTP id a2mr513268ioq.146.1626972661377; Thu, 22 Jul 2021 09:51:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626972661; cv=none; d=google.com; s=arc-20160816; b=Z61PDSS7ic691tHNFy0mH5el6afXgbWs3ooqxRum+xISs8U4CPFfFWgrjUqku0LHuW A9WSLZaiEhfoWXSkJslqed48pxa+5z+6rfPEBlWi/YFsEUnn8Di8SREF2ommJrAeBO5z QynejCxlNfgcQcFf22nnhTZ1Bf1yw8QHNNiZkV6ZwjzkbAonVZ1R/l/cmb3xPymjPX5y LpP8vv460SANcpERuLo6ptU0xDl2LMp+49QKe9Fn14r5lU0k9yP7sVwTVoec497YRL5b 82GSCoM/4rwl2KqUmKw+W0wEiPvbDPx6n1W8A+/rKjLxXqLfLi4YoZsn9pZnbx2j8ZyM pdMQ== 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=zt8IHd6x7+68ZBeKnNyLvg2/DCn0lZC4EXlmxF80To3Grr22U1ubRdfkqrTQFisB4v DVQC5wdHJ5FegZdtKARGdaVLSxQUH8dE+yje8aSDwV4QwBZX8cCOflINa9ao+Mk/Ttjr EvBnzo5GDoGgK9UJ2SqJAebbwPpCEMQ1yy3xwQwwWEPFBN3chgVmSRD5Q3bJ7WaijhL+ pNPP9gECrWQMhcW5C6UmGHLKUm99c97jV2HtrhuFy5Ytd3Lt6Q7AlvovTgu7uyakEciF UJecSw8v9JWIC9zUSKFRStaom+JCXYTeYwhlKcvf+7A72P3AZpKj8w1ivs1TlPK3vDYh 1UbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Pq0iWd4I; 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 s11si19628083jat.45.2021.07.22.09.51.01; Thu, 22 Jul 2021 09:51:01 -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=Pq0iWd4I; 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 S233726AbhGVQKT (ORCPT + 12 others); Thu, 22 Jul 2021 12:10:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:44432 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235497AbhGVQJY (ORCPT ); Thu, 22 Jul 2021 12:09:24 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C6E5361DC1; Thu, 22 Jul 2021 16:49:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626972563; bh=bxp28ytE6JLkgpD5YkX0/KOLSOb7QxiwSiht3C8xOdc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Pq0iWd4IsugS3bqoAape06UGzK4GH9qKwXSNszq6K0/N4V0tLQvetnY9oTiOAEl1X 7lFNopGYGwBqBK6F3ufM39b9DBk9AjTi5hnw3GemWo4iwVX2HQ1Rtq17P1bAiMLh1Y +muvtRvldvob5E7nmyeeFuSIbre/IgPy1RHV+eUs= 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.13 152/156] drm/panel: nt35510: Do not fail if DSI read fails Date: Thu, 22 Jul 2021 18:32:07 +0200 Message-Id: <20210722155633.266506997@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210722155628.371356843@linuxfoundation.org> References: <20210722155628.371356843@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,