Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1298504pxb; Sat, 30 Oct 2021 10:11:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9aYjNdV2koO4YwaLEZHTCnRvyMg6unk9CGt+XO0s2UitgKWNPchFHQhxDkIFnKyWdRLtZ X-Received: by 2002:a50:d802:: with SMTP id o2mr24107613edj.331.1635613870799; Sat, 30 Oct 2021 10:11:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635613870; cv=none; d=google.com; s=arc-20160816; b=ak9SIWnp3b6Jq/dEDFTrbVvZ4RcyBJNCAVzDpHvyXLO/jNDTxhqctN9eACGN8PPbjN HdSYGA/cL49urNQLnZLcN0oGoWbLsccZTlhfBvG6Q/4I4uzbABsFq3CYfHlEjblAimxw YlofkiD8gDj3F6Bn9YgDcBdjwsmBuItQ7+sEcFeE5s7bXVGDzDBV8PWwtk3McPBeWdgU ZUyKOuRvQcGhe9rHbltJYBP8mxvM4ytmY5X4CD11RZkFs0OzGtgDBwbk7PIHvcLTpz6U 9rla9MIS66HpHWjwix5YPu+gb5Mk+bxnAxNSx5C8r7kQr0qnbncqhzAvTgGkq94Nlbjl BSuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=H+W1GMLw6C5reaVE/Y3pI1gn/PZ+dci603n52uqzIAc=; b=cezQLLuEk2VOpED3XOwmVaJAS8zvAhrW5KCFURF51bRVFhqTNgTegRlPkxM2FAP8oO pkSXiI1b12Ovy/WiL96Zbj2HyD61ViqSDfym790tj3GfWi/96ZRODHecMkQy8Q0uja2J r0rl+tnl6DQ69chxfpbm9PfHfjIpjWla74rDg5Dso753CmCssUf/iEhnbOBQYUW0erVW pq8I2Qzq8qDlRS+DQzwAcLSVOJ1+k14bZUpGRGq5HbSetfQ1EJMJ7Ivh9Jxa6LeitF+9 RS98ugpuP6VG1cYAqTXsmW7qJSIgGVh/hDJ2f8J+E3HtDUfmCo9T/boMdjXHiGWOBeSa ltFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=K6IFILSE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dd20si15418474ejc.716.2021.10.30.10.10.45; Sat, 30 Oct 2021 10:11:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=K6IFILSE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230232AbhJ3RL0 (ORCPT + 99 others); Sat, 30 Oct 2021 13:11:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229788AbhJ3RL0 (ORCPT ); Sat, 30 Oct 2021 13:11:26 -0400 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2C97C061714 for ; Sat, 30 Oct 2021 10:08:55 -0700 (PDT) Received: by mail-pg1-x52b.google.com with SMTP id m21so12938946pgu.13 for ; Sat, 30 Oct 2021 10:08:55 -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:mime-version :content-transfer-encoding; bh=H+W1GMLw6C5reaVE/Y3pI1gn/PZ+dci603n52uqzIAc=; b=K6IFILSEntzkjF4zAJE53lfbxpsnnRNjTX18tiLglLxJt0GORz7bgiSEoN5mAxVgsh mGFKli7c6RMXqSX9ifPiVEt2g7fVDBii20SQgVDzVo4LR3co8CO0nNOsWbIk2ue/DqJO qUXF3lMtss5oMddUcgBFo0PkgV8queNnOxfeg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=H+W1GMLw6C5reaVE/Y3pI1gn/PZ+dci603n52uqzIAc=; b=L+YHDRPdVr0QK98Tk2ky9E3SJEBkkUTOboiWpqVPRGZZj+BIgZ9V7edM8OhmgtebN8 uo6nYwB7OK1zMmEiX+zcCwzK8K1aFN73QwESGYbDTrStaqxoh8LBC/o8vMiQtxd6mUzP Rz9a2tgoqkXGVoliBsS6Zvo32vJyUMSu2RSJzQ9ygLZfAq9ShI/bNPSaNcxRgzZUi3bF Rm71VSqzeihDgwDUPziDPCRficC4AdGC4R3BVs0Uz3g61jrjx+ASeiv/8sNH1xJm9Rk4 68IQsmPzczNCKd16fUlOx9te46pSl5zm0JEsSpxI/KrQC24vXTK24XzFm9YSTB0y9xL3 lnNg== X-Gm-Message-State: AOAM533vBqccocJgjjnrNWAJrZzbnxnhFjWpFPMYtOQ2zwBSpYA6vlNt 9QSdEnDxn+DwFLjiyO5+oAqMXhyUp0PM1g== X-Received: by 2002:a63:ce0a:: with SMTP id y10mr13812030pgf.133.1635613735258; Sat, 30 Oct 2021 10:08:55 -0700 (PDT) Received: from philipchen.mtv.corp.google.com ([2620:15c:202:201:f63c:4559:725c:b6da]) by smtp.gmail.com with ESMTPSA id i7sm8565390pgk.85.2021.10.30.10.08.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Oct 2021 10:08:54 -0700 (PDT) From: Philip Chen To: LKML Cc: dianders@chromium.org, swboyd@chromium.org, robdclark@chromium.org, Philip Chen , Abhinav Kumar , Bernard Zhao , Dan Carpenter , Daniel Vetter , David Airlie , Dmitry Baryshkov , Jonathan Marek , Nicolas Boichat , Rob Clark , Sean Paul , Viresh Kumar , Yangtao Li , dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org Subject: [PATCH] drm/msm/dsi: set default num_data_lanes Date: Sat, 30 Oct 2021 10:08:50 -0700 Message-Id: <20211030100812.1.I6cd9af36b723fed277d34539d3b2ba4ca233ad2d@changeid> X-Mailer: git-send-email 2.33.1.1089.g2158813163f-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If "data_lanes" property of the dsi output endpoint is missing in the DT, num_data_lanes would be 0 by default, which could cause dsi_host_attach() to fail if dsi->lanes is set to a non-zero value by the bridge driver. According to the binding document of msm dsi controller, the input/output endpoint of the controller is expected to have 4 lanes. So let's set num_data_lanes to 4 by default. Signed-off-by: Philip Chen --- drivers/gpu/drm/msm/dsi/dsi_host.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c index c86b5090fae6..a32eb33dfc14 100644 --- a/drivers/gpu/drm/msm/dsi/dsi_host.c +++ b/drivers/gpu/drm/msm/dsi/dsi_host.c @@ -1696,6 +1696,8 @@ static int dsi_host_parse_lane_data(struct msm_dsi_host *msm_host, if (!prop) { DRM_DEV_DEBUG(dev, "failed to find data lane mapping, using default\n"); + /* Set the number of date lanes to 4 by default. */ + msm_host->num_data_lanes = 4; return 0; } -- 2.33.1.1089.g2158813163f-goog