From patchwork Wed Aug 12 15:12:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Paul X-Patchwork-Id: 7002771 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 32A32C05AC for ; Wed, 12 Aug 2015 15:12:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 29FE9204EC for ; Wed, 12 Aug 2015 15:12:33 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id F3E66204DE for ; Wed, 12 Aug 2015 15:12:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0931F6EB9B; Wed, 12 Aug 2015 08:12:31 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-yk0-f176.google.com (mail-yk0-f176.google.com [209.85.160.176]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2F526896D8 for ; Wed, 12 Aug 2015 08:12:29 -0700 (PDT) Received: by ykdz80 with SMTP id z80so16434649ykd.2 for ; Wed, 12 Aug 2015 08:12:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id; bh=xfjYjHk7XCpYKQHnJTRT9Pd/7HiuPXcLu6cGqLSvpjE=; b=KOgGTMFT0JMRdig2NK9Wdz1rxpH3etyM1XMdeXFIwMEPZU0lnt90qmTBICuJvVBDGx lvzeQKoAv0jZQjq8q5zxuPQDfjEm7rA1wBu5umO9DyzT/njZU9zrT5BkAwp+RkYVmocF wEbXuGTpZ7b77UqqmE0g7jp5z4/GMpbgB/H90= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=xfjYjHk7XCpYKQHnJTRT9Pd/7HiuPXcLu6cGqLSvpjE=; b=K4j1cgHYMMZ8KlS5VDxw9fEEKpAeWaXNLFKjbZpzJgVSWlP5TKqHWTeqleidhSroJe 5rrpPavn5gwt76PkP6x4bf/b3ARVC7aES3JfCr5Tswdlg/NvEWdWi1H9tOo+VSya78cv 1BpO2tNcQtl6vvVnkj6KOv/ETTZtsH+lv7ln7lgQr7X9ZCsZuD75FH4WOpniRHxI6DqW n8m2IUs5CzUXLDNEHCziFEiYKX4s67KKrn8clPZRMg+uapjIdABR33AUfyQA4Zw0QXdh 2PiSV3zb/UNkIzAhM2tFZl+xqOfcwyKjTFvT1Sd4/rlexY/aeGUJmDCyPJytdIo1Oqcw SzdA== X-Gm-Message-State: ALoCoQnfLfWAal2CpeQPVYbGSUK5CUGdsl9BYYo24gzNJ0f0LmoWlOZKiiuBB3KO4uCGQZ5oPZaC X-Received: by 10.129.103.5 with SMTP id b5mr15233337ywc.55.1439392348292; Wed, 12 Aug 2015 08:12:28 -0700 (PDT) Received: from billyjoel.roam.corp.google.com (cpe-75-189-128-87.nc.res.rr.com. [75.189.128.87]) by smtp.gmail.com with ESMTPSA id r129sm4868152ywd.26.2015.08.12.08.12.26 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 12 Aug 2015 08:12:27 -0700 (PDT) From: Sean Paul To: airlied@linux.ie, thierry.reding@gmail.com, dri-devel@lists.freedesktop.org Subject: [PATCH 1/2] drm/tegra: dsi: Properly set num_lanes in .transfer() Date: Wed, 12 Aug 2015 11:12:19 -0400 Message-Id: <1439392340-17130-1-git-send-email-seanpaul@chromium.org> X-Mailer: git-send-email 2.5.0.rc2.392.g76e840b X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP According to TRM, DSI_NUM_DATA_LANES only applies for HS transactions, so set it to the proper number of lanes. Signed-off-by: Sean Paul --- drivers/gpu/drm/tegra/dsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tegra/dsi.c b/drivers/gpu/drm/tegra/dsi.c index ed970f6..09f9f68 100644 --- a/drivers/gpu/drm/tegra/dsi.c +++ b/drivers/gpu/drm/tegra/dsi.c @@ -1287,7 +1287,7 @@ static ssize_t tegra_dsi_host_transfer(struct mipi_dsi_host *host, tegra_dsi_writel(dsi, value, DSI_HOST_CONTROL); } - value = DSI_CONTROL_LANES(0) | DSI_CONTROL_HOST_ENABLE; + value = DSI_CONTROL_LANES(dsi->lanes - 1) | DSI_CONTROL_HOST_ENABLE; tegra_dsi_writel(dsi, value, DSI_CONTROL); /* write packet header, ECC is generated by hardware */