From patchwork Mon Nov 19 09:15:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 151460 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2420382ljp; Mon, 19 Nov 2018 01:15:37 -0800 (PST) X-Google-Smtp-Source: AJdET5c4ZANZamAZE2YGz4qjEbJWu1lJ7IzRd86wx2Yeo6GQqWU4BVamcTPg/2XrgkVS5oRt/2J9 X-Received: by 2002:a62:a511:: with SMTP id v17-v6mr22027357pfm.18.1542618937624; Mon, 19 Nov 2018 01:15:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542618937; cv=none; d=google.com; s=arc-20160816; b=XU1CY7QQeh1LGSSr7wgtq64c/Y+O5LDRsPlQ79HJouEB2+73/KtTfqbQFwsXZTR/el EI/tYzpgDf7tv19lQRWYMw1vVnpRegnUsFB5QVmzjOkOF47xBfVoDDK6CQY9ophJOUfe jtJ00Nb6eU5Ok1/6rk9zDp8K+dgDIJYO93/7dbpnoqYXDYX+W1CvWjoMIygYAaFbQi/Q +J9VPCKEosC1qGuFAwQkkFpFNmUFCYBh68bheIMeen823ZDex12aaO7E8VMZz6sNntH9 nWyElnpTky2vQUhlswczI03sXDyJ0/Pqo+jvzjOjNqIpYuNjZYSAnXUcNGO6pYuix5wT WsVA== 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=pr+hNPLvEX2nMSG3C3TUBUDRuANAArU4ki6AUi65Ixo=; b=tXJg8YBy8SXsKFg0HHTqJmdTHH62kBFc8nfJVFSkNSDkTjYeEeCM1vWQgJyNiodPjb 9TKmXVcK30m5LMnw5qFU45qjEto17N7AqJrknd7Y0A1AamXOoJ/8IfyVym5Yiqum+Sjc yBwU5wQrZxlrPLvTs64QV/ta+NiVHYMb3e3Vv1pzl86xwNkc854uJtWGMSUGbC0+Pnd3 IW9NfRrHw8G9PMcNcQFIroG/YVp5O5WaNESKxY5HCYbZXawU/czbQ9C+gYn25l0UKgFj nsu3HyeQY6nlgLB6uWR5geUrQC2myb069Jo7PqphTO1jqO8VhWCYVtPmteqwqCTDUJ7w qkag== 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 b94-v6si42175527plb.396.2018.11.19.01.15.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Nov 2018 01:15:37 -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 77D6989157; Mon, 19 Nov 2018 09:15:35 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by gabe.freedesktop.org (Postfix) with ESMTPS id AFCF589157 for ; Mon, 19 Nov 2018 09:15:33 +0000 (UTC) Received: by mail-lf1-x142.google.com with SMTP id p6so20762503lfc.1 for ; Mon, 19 Nov 2018 01:15:33 -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=ugNjR5ImK5XxESsGj9QSGNGBXPdXz+1tEVU+9jpJfzA=; b=hYtSJZXQncocTT96tcy0lf+HqtimAWo/rwHUVZbqC+1g6isaAXEnEZGK8hcWhgZeQ3 jVG1pfHrwH9RAY5PVny4l82M7gA8pSDlQcrRL00MkZTiHlPAakv6I4BeVv0C3aIKRw0h 0TCUmS5eozHES9JT1GS0MJG48OZ9cxd81l/qiZMJmJJVg32fLi13Ke52UdX1ee6sdB5D FQ3fx904CYPeX6vnK7RWdkqZWjBdEVeG3RtlDGzRQibhqEAYZUU6DL9lRZxrKINCCY7I izpUZ2FOec6wsWinlX3prCzB7q8c3KWabNJci322CPycum+n/8yF+cxv+1ue8XMtwrsu uesw== X-Gm-Message-State: AGRZ1gKMYeVA7N2AJY43OpHmVatrO2Fvy4kgCfyM0x2sq0PBsHvlvSFP GlkfnbCHgTtVDYZKlyv6sukUIA== X-Received: by 2002:ac2:50c4:: with SMTP id h4mr10066014lfm.81.1542618932022; Mon, 19 Nov 2018 01:15:32 -0800 (PST) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id q11sm4469328lfc.92.2018.11.19.01.15.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Nov 2018 01:15:30 -0800 (PST) From: Linus Walleij To: Thierry Reding , dri-devel@lists.freedesktop.org Subject: [PATCH v3] drm/panel: Set max rate for Innolux p079x panels Date: Mon, 19 Nov 2018 10:15:28 +0100 Message-Id: <20181119091528.10056-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 Acked-by: Thierry Reding --- ChangeLog v2->v3: - Add the 10MHz LP speed. ChangeLog v1->v2: - Collect Heiko's Test tag --- drivers/gpu/drm/panel/panel-innolux-p079zca.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-innolux-p079zca.c b/drivers/gpu/drm/panel/panel-innolux-p079zca.c index ca4ae45dd307..cca3f3b7710e 100644 --- a/drivers/gpu/drm/panel/panel-innolux-p079zca.c +++ b/drivers/gpu/drm/panel/panel-innolux-p079zca.c @@ -518,6 +518,10 @@ 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; + /* 10MHz according to table 3.6.1.2, symbol FDSICLK_LP */ + dsi->lp_rate = 10000000; err = innolux_panel_add(dsi, desc); if (err < 0)