From patchwork Wed Nov 14 11:42:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 10682371 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 922A61747 for ; Wed, 14 Nov 2018 11:43:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 842002AF8D for ; Wed, 14 Nov 2018 11:43:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 773F72AF92; Wed, 14 Nov 2018 11:43:04 +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 62F8F2AF8D for ; Wed, 14 Nov 2018 11:43:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8A8BE6E522; Wed, 14 Nov 2018 11:43:01 +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 962E36E522 for ; Wed, 14 Nov 2018 11:42:59 +0000 (UTC) Received: by mail-lf1-x141.google.com with SMTP id z13so11253885lfe.11 for ; Wed, 14 Nov 2018 03:42:59 -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; bh=MaZxJxLU6zXPLZm5i7+fmLWs89Err+H2JAXQ5ewgkYU=; b=Ed9vCsTOv9tcaj4o2Pdzj8uF4CzS1VZpzHIpUxcVQFswzETp9Dm3fUqimvAwdMVabp S3phN/t5IZxQGcqDfltfjIvcJknzJZWghjJpT2JdGT80crGvlzM/GG0jOy9a2orMECCh DjIYXBjXsxWgcSQLJspICQLtDDre6bbMPHy70M8TIjj3E3OOyrKN4J2ifYZeriy8t/Do puHAwL/4YGIy5RH46Vi8EWOnIxcoGBSNVqcF+3nefm9d/wlW+Pg6ztCLVst5fexDmo9h iB/2wL+ZF+P+PnJzg9Xk9R8nWzto75tdWFedOgt2u2yUA8RdrMjQIsfU+LAz0LbqxiGQ vObw== X-Gm-Message-State: AGRZ1gJhTkeMguSPlosgdVOOWLjcxgWdO/Ni4ewu1xJf7WZ+f0W/pvdN opdT8LbTaAZFvXRDEnwf765x28HqPOQXsA== X-Google-Smtp-Source: AJdET5ec1R6wz9I7hbnEFz2h5ucgpZKjZLwmpYch6gNDphhdIwC+8bZZ1F+hWClfR/SmKSPIbGMLkw== X-Received: by 2002:a19:10da:: with SMTP id 87mr840184lfq.60.1542195777932; Wed, 14 Nov 2018 03:42:57 -0800 (PST) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id d15-v6sm3791268lja.38.2018.11.14.03.42.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 14 Nov 2018 03:42:56 -0800 (PST) From: Linus Walleij To: Thierry Reding , dri-devel@lists.freedesktop.org Subject: [PATCH] drm/panel: Set max rate for Innolux p079x panels Date: Wed, 14 Nov 2018 12:42:54 +0100 Message-Id: <20181114114254.31209-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.17.2 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 MIME-Version: 1.0 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 Signed-off-by: Linus Walleij Tested-by: Heiko Stuebner --- 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)