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: 151438 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1921832ljp; Sun, 18 Nov 2018 13:38:55 -0800 (PST) X-Google-Smtp-Source: AJdET5cu6ISfjn4wIGOuxqJ6SGuScuHGKbT4tEVY743qZd0hGHP8lDdkne7ihoQ8qEVgmrGAFxwA X-Received: by 2002:a63:d547:: with SMTP id v7mr17494700pgi.339.1542577135825; Sun, 18 Nov 2018 13:38:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542577135; cv=none; d=google.com; s=arc-20160816; b=DUhhKq8d0Ql0afvoQw46B0QeRYnl8mFIjrieodghDhoBdyo7rBpdRt//4HeqZTejLd MbUGbtG3e36x2dDURUbDpesMG7bMZT1CCFLpmbsxgMF7J0Zlc4vjFHOae9evMJ8jG8SP M+3yQeUGI/QNkpyMmu4yiFyj1VvsV7tZ1zkmmgu16s4QM42uU4F7EZLZfsi1g2r4qWjB yq8oSX/5LH7c8IxqUNwD3vvanLeYiDVY3qSHdZB6I847DLzNGSTWXb5m+IE/pkwqudts wGMsZ6ZU+99Ai2aIcSaxPMY2fGm9VaPU1BMVp8YsKJxdnvB79aoH19Ab3JO93nYOmXqA oVIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:message-id:date:subject:to:from :delivered-to; bh=Ha8rmnbSjyrPMQ4TYtTfrcgi3cu7Q5eEhwKnbeqGtCU=; b=t2/xFEoQgach7oGOs7YWQcG3bNcsmjIcR4zRyUVJXheaWpT4dO2DVVzwde0wlo39Bi 238ikP4o6JGei51dZa2w4TIt3GPdAS8n1FWQI0wp9hwev3dHrntE5SYlYhL8jzK5O2T8 DBm0Ppu5x2kdVK7ywBvE8T/ZZTYUrHUOMQRPA9B6XCx5cE6OfN2so6TjIyuwFAp2xgJD 1/qopCsnX1hXKej7tTyrQ/ZqSAF4WGVsqVTe3YlMow/21d+UoQGO+YbHjmmgztsknO1c lhsun+LNV5aXQaXWjVMF65LFqO/+xjmeB5bv3dsszhvlJBHqEWTUuwTRjJJQBn1AZdDL J+Fg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id u11si2028033plm.8.2018.11.18.13.38.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 18 Nov 2018 13:38:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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-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" 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)