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: 151069 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp5578074ljp; Wed, 14 Nov 2018 03:43:03 -0800 (PST) X-Google-Smtp-Source: AJdET5dPmhdG7+OYqZ9tw//L7mPJPH3bjSMEy5nIQPBtOrF+OR/TkNk0KOGzgPAFBelnlT+f/ulk X-Received: by 2002:a17:902:7c0a:: with SMTP id x10-v6mr1554014pll.263.1542195783175; Wed, 14 Nov 2018 03:43:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542195783; cv=none; d=google.com; s=arc-20160816; b=GBoCFLGCRLWL3ttWmv4l6u/1dBPxccdGd8doK4MUafO+/LnliWFmtlGLUdqNg0eLd7 3GUjlW8S4ySb0E96DMEvUoxrR3Z7+lSJfukEOslz/KvA5AbDLDr4Yp6jHOF9x+HMV1Ip ypNI498dOi1drSIm3SlDhMQAYBogslqc8szycspy55Zn/dLvQUdXhUTQ37wzQ5EnPsdE j5aoygmZQybYpmQeCHUHOJXfxJonV0N7NAsmGMXorI97EOG/qubH3eET4dbbkePG5VYz yl5dyrti4KIYzmFOzfHBbmP01/k6EJ8FR4ulEKrOL1A6v0GTXdDPSiu6NGf/D1y9no5e xXpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:message-id:date:subject:to:from:delivered-to; bh=JJGPH4eT8pfwmz6HRI/n9bLxjOu6RU2DnZEmBC/Z6wk=; b=PDT3i29Xvw9XaFuCUNEcrb6ktFUySXmhzGs3Yn+/MDsN9YAx/n544HqO93GxbQwxk+ 7ZssgjqpNrnaPqCHJl6R/jy3xqh1V6UPxn/mLT6j2T6tBy4jzA/M+uKJ89ySu1ViOi8i SQMnuMaf0rCmaqjhD1XAYpnP3JqRDUvC9EnBgHBzjYCU4YdtVejGK6QrCGBerV5ZuRS4 4JIXQHdG0MytCi1XDmqU3HXOXcwJgUlAHOMEAyKEQENvfcwaDGk5jO/B3lY4zoB/9cye LPU3NJQy4LAI/ncP47RN3nlWWl3FaQ2tOsR0+dXER6GAyS5zqTEnsBt3mAfC2bx+P0ri aPag== 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 2610:10:20:722:a800:ff:fe36:1795 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. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id y68-v6si25717747pfi.61.2018.11.14.03.43.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 14 Nov 2018 03:43:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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 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-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" 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)