From patchwork Sun Nov 18 21:36:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 10688063 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3E2EF14D6 for ; Sun, 18 Nov 2018 21:38:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2F2312976A for ; Sun, 18 Nov 2018 21:38:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 236EE2976C; Sun, 18 Nov 2018 21:38:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C6A6C2976A for ; Sun, 18 Nov 2018 21:38:55 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C056489C55; Sun, 18 Nov 2018 21:38:54 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by gabe.freedesktop.org (Postfix) with ESMTPS id AC03689C55 for ; Sun, 18 Nov 2018 21:38:53 +0000 (UTC) Received: by mail-lf1-x141.google.com with SMTP id p86so19954717lfg.5 for ; Sun, 18 Nov 2018 13:38:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Uf9Qc4J0GNP0djoYfvM0ltid9elX1z+9JpNB0V7mFD8=; b=TjjKSk/unwyqLZj2GxCoU5vCuBkhLoRjHyAmLmDjoI5xeu5a83WD1/h0px9hnEIERl seQ1LWfzoAl4PnnFw6y8g58UQD8rHRtiJ4gP1QHWJm4aqzvZJzEy8h4fq236usogoRxG RBYJNjZJ9/IFVcG01KTQYsKf3oWuBVtjBMXbuSb51cwx3UNy7sUu5EPzkCdSjVY0npXz wklsy7+kVu6hr9Eo9Us6EUpeGcPNm5UJSGdxnEISgnTYazyceF79GCJgPeOBABIKYHRJ DI5jxxXOdR/TjaHJsem3EYngK28PJhRtgyOu54f4P9fXTxJEw6B30D7tep0a4kBE1kO6 E0qQ== X-Gm-Message-State: AGRZ1gJ9fDFc9MRm3hIc4OhSvCBzbG2Oo946wuf3uSSDP5Ik6NBFK0US mo/3EJ9e7/ibcDyK3ewgLYDtow== X-Google-Smtp-Source: AJdET5dcFFkY2G9w+DNPFyGFMD0AKR5t17aUFKtmjX+IQ/e6TfJP9q+lVXPhJ0Pfka4Zuu62SA84eA== X-Received: by 2002:a19:c345:: with SMTP id t66mr8931409lff.55.1542577131995; Sun, 18 Nov 2018 13:38:51 -0800 (PST) Received: from localhost.localdomain (c-ae7b71d5.014-348-6c756e10.bbcust.telenor.se. [213.113.123.174]) by smtp.gmail.com with ESMTPSA id h3sm1927171lfb.49.2018.11.18.13.38.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 18 Nov 2018 13:38:50 -0800 (PST) From: Linus Walleij To: Thierry Reding , dri-devel@lists.freedesktop.org Subject: [PATCH v2] drm/panel: Set max rate for Innolux p079x panels Date: Sun, 18 Nov 2018 22:36:49 +0100 Message-Id: <20181118213649.8396-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Chris Zhong , Lin Huang Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP After adding the hs_rate and lp_rate fields to the DSI device we need to populate these accordingly so display drivers can respect them. Cc: Andrzej Hajda Cc: Chris Zhong Cc: Lin Huang Cc: Heiko Stuebner Tested-by: Heiko Stuebner Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - Collect Heiko's Test tag --- drivers/gpu/drm/panel/panel-innolux-p079zca.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-innolux-p079zca.c b/drivers/gpu/drm/panel/panel-innolux-p079zca.c index ca4ae45dd307..2013cd3c58ba 100644 --- a/drivers/gpu/drm/panel/panel-innolux-p079zca.c +++ b/drivers/gpu/drm/panel/panel-innolux-p079zca.c @@ -518,6 +518,9 @@ static int innolux_panel_probe(struct mipi_dsi_device *dsi) dsi->mode_flags = desc->flags; dsi->format = desc->format; dsi->lanes = desc->lanes; + /* This is presumably the HS rate */ + dsi->hs_rate = desc->mode->clock * 1000; + /* FIXME: LP rate not specified */ err = innolux_panel_add(dsi, desc); if (err < 0)