Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp687462pxv; Thu, 22 Jul 2021 09:44:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy57mC+TjhfQbBFrs/9yEMdYsodZqJ1+oRL3o7CYmFkSu3cMsyI0EPnmutdy4UkYr+YShWd X-Received: by 2002:a05:6402:5215:: with SMTP id s21mr651881edd.356.1626972270028; Thu, 22 Jul 2021 09:44:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626972270; cv=none; d=google.com; s=arc-20160816; b=RqgV4p+Z3pCAgV8y7SRzxj01xYkdgsZmU7hxFEr1xyZTOy4Kg3ZQZflngqePiViTdU 8Lx7hc2/aMXKClo6ySfTZ7ijhOXngfl+BQNMT43sFngKKZ7l7ZWMluDrOQTMCMxe5RZi 9Vb9ScjdDm+Kqu1LyA/q4YiRax3nvyZMxbkf1xBI2NGuxZDk+2QJEPSJE7cLAOVTyjb5 0aPPbCTiXpbv2BeyoRzlpTar3uK3gX3MJVUh7MYRkjoW4E5lwXm0lfp0RZbU26ywDEmc dyAmiiU0ZxEDIENyoV22flkE8Q8uOJoTj2ysGfdsP5bBmrJv69J7JdxfmplD8D2KpOLa bxGQ== 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=kzHub8aWNyg4UC53E+GG4SMs9VQ03UekIiTjLL/YgRxztcd+0s6sdiWdPu1wbZFv2h LdqA/5YkWaAf7pVZQKDLPDZdH6JggB8RSg2Tieh3EyuLiip8sxttHN/4StLtf8xfMH+N oNvVqndZyJk1J2Uv8vzkCyN+kT5txDrijJfoyCm9YXj5qrGDWLLjdrjMVq+Oh7uzi7C4 b7shrd3pb152t3wCqeKzejp0JWA4ikhzycdJKWFln66tT8VbeLBW0P/E0hoHxJxxmJnH RsktuFPWAPbUfR8VCoNgb9ogVcbXlaulRrRPsBDpn6DzsEL0+06xaT70+ss3yM1c1dUQ /bIg== 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 linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 qk13si17618807ejb.97.2021.07.22.09.44.04; Thu, 22 Jul 2021 09:44:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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 linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S233210AbhGVQCL (ORCPT + 99 others); Thu, 22 Jul 2021 12:02:11 -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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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,