From patchwork Mon Aug 17 15:14:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 266122 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=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, 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 BD320C433E1 for ; Mon, 17 Aug 2020 18:54:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9C959204EC for ; Mon, 17 Aug 2020 18:54:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597690498; bh=f5AxJzQEgxpGJl23qttQXr3kXsI0TYM6W1c+K0TsGFc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=jvSSOrtluaK6XxqyD5Z0NSmbJzAlLKQnJIXJNqFOFOwILD41BM4ryjSA2JCRs3ZR2 qpLOwkqkHZNU+Aez7Bi8j5DJSplkubARnCV7IqXF3Czxqkv29LZ6MgLU8tzZ1CXraX GcRz83G84aZRTgxfVcYj5EPDakA5d6LPKYadzPPA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731546AbgHQSym (ORCPT ); Mon, 17 Aug 2020 14:54:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:36510 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730918AbgHQPvS (ORCPT ); Mon, 17 Aug 2020 11:51:18 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 64218208C7; Mon, 17 Aug 2020 15:51:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597679477; bh=f5AxJzQEgxpGJl23qttQXr3kXsI0TYM6W1c+K0TsGFc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RI2ts9tk/Vw7c1G2Km0KQzrjFRu718c/Tox0HTnihS5zVp50/qreBwqu1p0X/FmoV qnL6LfRqAfS7N2Kg0iq3wzkjlJGa4RZj8TJ/aAmk9s9a5SMwI40/DV0LBF9t8VvbNw 2/ZzlAVfqKaYnBy2jES84O7PxS08RBvo/04L+dhw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Laurent Pinchart , Sam Ravnborg , Sasha Levin Subject: [PATCH 5.7 195/393] drm: panel: simple: Fix bpc for LG LB070WV8 panel Date: Mon, 17 Aug 2020 17:14:05 +0200 Message-Id: <20200817143829.081943634@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200817143819.579311991@linuxfoundation.org> References: <20200817143819.579311991@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Laurent Pinchart [ Upstream commit a6ae2fe5c9f9fd355a48fb7d21c863e5b20d6c9c ] The LG LB070WV8 panel incorrectly reports a 16 bits per component value, while the panel uses 8 bits per component. Fix it. Fixes: dd0150026901 ("drm/panel: simple: Add support for LG LB070WV8 800x480 7" panel") Signed-off-by: Laurent Pinchart Signed-off-by: Sam Ravnborg Link: https://patchwork.freedesktop.org/patch/msgid/20200711225317.28476-1-laurent.pinchart+renesas@ideasonboard.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/panel/panel-simple.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index db91b3c031a13..346e3f9fd505a 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -2093,7 +2093,7 @@ static const struct drm_display_mode lg_lb070wv8_mode = { static const struct panel_desc lg_lb070wv8 = { .modes = &lg_lb070wv8_mode, .num_modes = 1, - .bpc = 16, + .bpc = 8, .size = { .width = 151, .height = 91,