Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp601568pxb; Fri, 29 Oct 2021 16:27:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlRkfZ8IfZd6TI73zo8BWKIRMoJXItQjpzrxY5KVitHasXg6kxiBfBDndVJ84Epbh0Jd2y X-Received: by 2002:a17:906:14c7:: with SMTP id y7mr18254978ejc.123.1635550061223; Fri, 29 Oct 2021 16:27:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635550061; cv=none; d=google.com; s=arc-20160816; b=KnzMCyHpldLG6sjn8YrqkfR+7MHnjSTdwjIR1UwJrBtbq7vO/d6TgyWVD4Dghrt8ZV 2JlYFN+8esXs1I3JbKS2ROdk7Jhw9hby7suLBGia2e7nNUz1nNmeYwLByNcoShDQ3Y2s 3y8ho4HRp/9lS1Qysr/7wIldTpV2XZKg8IZmZ2YRb3o3K5HChtbWOHRrYK/BMj17Ky7y 6bQI7bS/qV/pRYDDhqATzGBJR4m5z0mpHpsb5gVERUzJ2/zRv+RmsGMDIN0kQqiM5hW7 rJfaNh0uYs/mPe5DPgL66hFi5Lws9RQQ45vxFq1kWOBS1ldFTWnLCSrqGwENEFLbVh8/ Hoqg== 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:from:in-reply-to :references:mime-version:dkim-signature; bh=HBomj5H0QcXkbdufc+5bLoY1mf3VAHsbJiUVRwMaV2g=; b=on3Q19oKieYWoMeTYM//nYRWlK3aKAQ7lUAPD275n/yB63v1C1Jf8e4t0hVdel2Wan +9DpXu+KN/bP1Sqd2S4BW5ne4EAXjn4t6nfkFznIGd8/oDs6t3+WIfW9st2ozU2FtVbQ I6haLn5FNGm01Q7+fmZN0gaGHAw62+cwUNkDmDeHIig0+f1YPit+Xc1YmRFj1p/YHyTy acsCiSIytZYPS4RZfr5oS4RvCUDyVZMXdRr1M0L7EhVcPRprgFgkN0xV9LW3ZRpu0hmr qAcelFdaXtBcgA1+H+rE0ja/48Vs5TutbDc4olhZxqmdYN7K4S35FeLpn320l87g8Bvn 3jSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="lhT4g/NQ"; 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 c4si10005401edk.560.2021.10.29.16.27.17; Fri, 29 Oct 2021 16:27:41 -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="lhT4g/NQ"; 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 S231614AbhJ2X1j (ORCPT + 99 others); Fri, 29 Oct 2021 19:27:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231591AbhJ2X1j (ORCPT ); Fri, 29 Oct 2021 19:27:39 -0400 Received: from mail-yb1-xb36.google.com (mail-yb1-xb36.google.com [IPv6:2607:f8b0:4864:20::b36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17D08C061714 for ; Fri, 29 Oct 2021 16:25:10 -0700 (PDT) Received: by mail-yb1-xb36.google.com with SMTP id d204so28034719ybb.4 for ; Fri, 29 Oct 2021 16:25:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HBomj5H0QcXkbdufc+5bLoY1mf3VAHsbJiUVRwMaV2g=; b=lhT4g/NQepOEg+S71HTLuSq/0DHZyxu2YRwGdv9vGMHVpGBrTBpnthl4qHdhhfO/M2 l6wXa5TPx9uDYwyQSHqgsng0g3sJEW88/mK4yI+ff3H+4rdXPsGLTTycABCFKGYSKB0A IkC82mCkMOves8b3SVfnwKdOi1vnMkMD/bjY8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HBomj5H0QcXkbdufc+5bLoY1mf3VAHsbJiUVRwMaV2g=; b=minW3vg7D1ikByEOmmiLzqazPclWwfmXJLR7loplalLE6zDMaM0L+aqMZF5eEepDdr W8DUjHTg6H9qHVib8UsjXLdLlTD/nbariSeT/vbf7bj8eLq7HT8liQhCDGYrI97WEtPo KU5s5Yb4bgYCiDVloB1NFnAPL5lJO/78PJ5IMxZjQO3kP/18DLe7IPHpfqv855oibvvE 4KvP+ZabJe7MtQLQHm298zik3xUd3yyuoilmdRRqFv+lwy2jeDxCTgG6EZHM5odAK8cz nS66LytsEVLufztleoRvpZOd06s17xkxBx0hUxzS8G90MYDU0qF2a1qdQQ1F/5+Z4+uQ Ilug== X-Gm-Message-State: AOAM530b4C26LJjaEzIXozcMsOJ+Jgw0c+W6gd7O0ha3/kpDD1w/zsVm /Bab0rmet9wAsVhIQSVSh6kj2UieJR4x5IfVAXKyIQ== X-Received: by 2002:a25:ea48:: with SMTP id o8mr14784901ybe.14.1635549909358; Fri, 29 Oct 2021 16:25:09 -0700 (PDT) MIME-Version: 1.0 References: <20211029152647.v3.1.Ie17e51ad3eb91d72826ce651ca2786534a360210@changeid> <20211029152647.v3.2.If23c83a786fc4d318a1986f43803f22b4b1d82cd@changeid> In-Reply-To: From: Philip Chen Date: Fri, 29 Oct 2021 16:24:58 -0700 Message-ID: Subject: Re: [PATCH v3 2/4] arm64: dts: sc7180: Specify "data-lanes" for DSI host output To: Stephen Boyd Cc: LKML , 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 Hi Stephen, On Fri, Oct 29, 2021 at 4:16 PM Stephen Boyd wrote: > > 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? The problem I see is from dsi_host_attach(). If there is no "data-lanes" in DT, num_data_lanes would be 0. Then dsi_host_attach() would return -EINVAL. > > ----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; > } I haven't tried. But I think it can fix the problem I described above. Would you like to send it as a separate patch? Or I can do it.