Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp597431pxb; Fri, 29 Oct 2021 16:21:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzc8+SiRRpFkLStspvWFUzwWOGv65HjR4T3KlN4IY8cmrAdzZbpjvVaFpQj5Q2yk+Trfz+/ X-Received: by 2002:a05:6e02:1e0c:: with SMTP id g12mr8393544ila.86.1635549661879; Fri, 29 Oct 2021 16:21:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635549661; cv=none; d=google.com; s=arc-20160816; b=KfVyNtljtGkKXIRJEr/nqkgobQRZrm35IaT3ClBXy+BywO8rnthiAaaoNGH8Mjihcz WFVIIhkXVnple4+S83Fq3XPB8n0cdmnuAWtCPQB7iPafjgBgS+zrtts844forsYAECDU vzMQDhqzTea+Up4hkoagIGis2tZ2nrXd/r3pz2d0ULTCPlxR0uyYBo9T5kzRkz8/61zE C8YA2nVWp4tC69maAYc9cB3wx76lgaQpk7qJJWVFqooj3tGRj1c9iLezxLwuNlqQOkxN WxgeKwIWWHjYzWiZ+2POpbR7CSQO06ZXvWZwG36elAWKRXyc4TWYyNZZTJzOU6GQkE+h O4/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:user-agent:from :references:in-reply-to:mime-version:dkim-signature; bh=uMV5MnFfkKefQ2tbPRsUD5YZmW9QbmFtZJrDLkSD6+0=; b=qAfBMdH/fNuHW+LmBLqvRbR4xF1yjw1/OWVvIc8ciXRLnOFVBULoUeO0Uey+dsPlvN Ux9iJUKC7YOqVO+14lpASFkx8zqAkF3b1Bv1DMMErzlt6l44mud9d5GOzvNH2CFRuYbw NfcPfXdv+UT81XkZNicxSZvIzzywE5hKZStecKeylhZAKJmZVyIiMR5hfShvPxAFUXbd 1VkgvYC2ZRocgsI3SKb5gseCLxSWBlm/ApISkSd3gqhctCgbpJvdeFokwkSACZ2LJKJ6 D3xrVKahRba9v3R0uBc8gNDMRdWdxtefY0epj05Pb/U8tzVNK+8AxgVbJXVmCKPTe5kv 9awA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=STHz8Aj6; 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 k8si8169822iov.8.2021.10.29.16.20.06; Fri, 29 Oct 2021 16:21:01 -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=STHz8Aj6; 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 S231530AbhJ2XSr (ORCPT + 99 others); Fri, 29 Oct 2021 19:18:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231463AbhJ2XSo (ORCPT ); Fri, 29 Oct 2021 19:18:44 -0400 Received: from mail-ot1-x332.google.com (mail-ot1-x332.google.com [IPv6:2607:f8b0:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B516C061766 for ; Fri, 29 Oct 2021 16:16:15 -0700 (PDT) Received: by mail-ot1-x332.google.com with SMTP id s23-20020a056830125700b00553e2ca2dccso10803900otp.3 for ; Fri, 29 Oct 2021 16:16:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:user-agent:date:message-id :subject:to:cc; bh=uMV5MnFfkKefQ2tbPRsUD5YZmW9QbmFtZJrDLkSD6+0=; b=STHz8Aj6W76pYT0kuSqNaq1WJC9GulCds76IHfUeIt1O8u5A77pNvkovyZ2y2PCy57 0QQnCaBzMHfkQruVpFQTAoYfaXkMe2+AW/ChJWS5gdzBD6dofQrsFPS3B7gThd2LkonB B28vIB3hU7aXp08AMOYz97qAwKLf/QpPN/iiY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from :user-agent:date:message-id:subject:to:cc; bh=uMV5MnFfkKefQ2tbPRsUD5YZmW9QbmFtZJrDLkSD6+0=; b=WBrXPtYbv7HlsBEoamlt7jaaADpalw6UsC1Pz2RmfdzmzczFgkaJ04ewgyJyGbNacJ GbSgIeR4Qo/Nsik0H9EgWBrxy1sHB4umhgYANV22VdjJcbCjRBrZXpXjOqN0/t5OgyJ6 eApKrqAiWl4sGezmN2mpj00rCdjWW3hYzf13vyyOpTxgMpDcrXN8TDJmyI9Y2M+5Xiqf 45H5p5XMj4trg6IQcu8CGXtFkRjtM0fqR6GfQSgHTpE2Y0gV/t5S+i8wG3JElNjjnHds 33XQcFIwT9KDE6WrSpxf9fklkfUlhSAWmBvKhEOei2arsUDGuXYgW0ebViD+rm0qfv4L 59JA== X-Gm-Message-State: AOAM532vYJ3A69c0XKX1zTZv4eCyAEbjORBeO9+cfUpuAfvdH2BIcHtx kPJ0CXgtNckU/q7kFk//DElvXRaM9PYfHodaQybGm3hIfeA= X-Received: by 2002:a9d:6e16:: with SMTP id e22mr10520977otr.77.1635549374671; Fri, 29 Oct 2021 16:16:14 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 29 Oct 2021 18:16:14 -0500 MIME-Version: 1.0 In-Reply-To: <20211029152647.v3.2.If23c83a786fc4d318a1986f43803f22b4b1d82cd@changeid> References: <20211029152647.v3.1.Ie17e51ad3eb91d72826ce651ca2786534a360210@changeid> <20211029152647.v3.2.If23c83a786fc4d318a1986f43803f22b4b1d82cd@changeid> From: Stephen Boyd User-Agent: alot/0.9.1 Date: Fri, 29 Oct 2021 18:16:14 -0500 Message-ID: Subject: Re: [PATCH v3 2/4] arm64: dts: sc7180: Specify "data-lanes" for DSI host output To: LKML , Philip Chen Cc: dianders@chromium.org, Andy Gross , Bjorn Andersson , Rob Herring , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Philip Chen (2021-10-29 15:27:41) > MSM DSI host driver actually parses "data-lanes" in DT and compare > it with the number of DSI lanes the bridge driver sets for > mipi_dsi_device. So we need to always specify "data-lanes" for the > DSI host output. As of now, "data-lanes" is added to ti-sn65dsi86 dts > fragment, but missing in parade-ps8640 dts fragment, which requires > a fixup. I don't see data-lanes required in the schema, and dsi_host_parse_lane_data() seems happy to continue without it. I do see that num_data_lanes isn't set though. Does this patch fix it? ----8<---- diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c index e269df285136..f6fba07220e5 100644 --- a/drivers/gpu/drm/msm/dsi/dsi_host.c +++ b/drivers/gpu/drm/msm/dsi/dsi_host.c @@ -1696,6 +1696,7 @@ 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"); + msm_host->num_data_lanes = 4; return 0; }