From patchwork Mon Aug 17 15:15:36 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: 266226 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 BC999C433DF for ; Mon, 17 Aug 2020 18:20:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9FC2C20716 for ; Mon, 17 Aug 2020 18:20:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597688404; bh=rqmP99AHGvwcPBfPitoztSTKcjwxWhsrxcWsAhEXPIk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=PeTpU2qvxDJ5dHeS/2U+CcQSbMhf7/z7z0nGD9KyPmEI+s3ZPtSTFLl2h/SjIw5LN Fzt7UX62IJ9WUWtzCYscfUNNDdqzrjmPKN0kd0YtrH40dpM/dDoPz/PjVrbbYZ5hmL jCcA8F7uMTBOzxFYU0ZGZXn93elavRZQf2/b5Ux8= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388716AbgHQSTh (ORCPT ); Mon, 17 Aug 2020 14:19:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:53234 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388191AbgHQQFY (ORCPT ); Mon, 17 Aug 2020 12:05:24 -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 F3C8520829; Mon, 17 Aug 2020 16:05:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597680307; bh=rqmP99AHGvwcPBfPitoztSTKcjwxWhsrxcWsAhEXPIk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fXbIbNPOAU6oL3TUcyBZ0aCLwYh8JdSzZ/u0B6p0TzifvXurdlpoN8YuETxjVlEqW Xsbm93++Qlqz9elU0ZqFxlmrAhl7lR+e2tEmh5FjYhJ4bAbIdW8e2/UP7AlGZA0Cst ydSow/N+y/h5ok0rna0QYDtvXElh2D0krc2H20pc= 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.4 135/270] drm: panel: simple: Fix bpc for LG LB070WV8 panel Date: Mon, 17 Aug 2020 17:15:36 +0200 Message-Id: <20200817143802.518344995@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200817143755.807583758@linuxfoundation.org> References: <20200817143755.807583758@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 8abb31f83ffc7..6d9656323a3f4 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1935,7 +1935,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,