Received: by 2002:a05:6a10:87d6:0:0:0:0 with SMTP id g22csp649335pxr; Mon, 11 Apr 2022 03:44:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPMlTVhIFUJRS6858MXS/kciSMIPKY09GxoPhVVq2n0Wp+P0kl35x9y8/PLTdsYovfbRsL X-Received: by 2002:a17:906:6547:b0:6bd:e2ad:8c82 with SMTP id u7-20020a170906654700b006bde2ad8c82mr28791015ejn.693.1649673869570; Mon, 11 Apr 2022 03:44:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649673869; cv=none; d=google.com; s=arc-20160816; b=DuqurjnXiNjEQhRJpARI+Ydi/0Pfl89Dsp0Yxc6CQTMZNzuHpiPoIT6vVY03gjrMNU oUgEdwt4GcQ39LU1McL1yfvjLXDQb+4nZmzWZqgu+9aJ0FX7q68AJYZ5ZJPu8ZIFml+k HHbQL0bA2+Sr03TjQ2wWH4PO4YZj5l5T5jhlmyMFL1HEi48yJHIYPm0eItfObuQfBgDD XSSHMBr67sNMCqim0dKF6+muzDfIraIcj4lkp+fPijo4oD5cASffn7nLe/SKq+i0Dm/2 S59kyeycik11ldeXJfCxZNVjhxdnBkDzOcMDGhxcM0HdZoEWQqTQubReDwYTW98CoXcn 6V+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=p9HXYw/ALt+MopqQNrusnXpB/e7Lu7tHls88nUVRk1Q=; b=VlOSy0bSLGC/rMQUdkrdRMyG0Z8WDm7ADIijsEZQdQG1VIbopPVkzFyvUzV3w7BNIy XGHZgYwhge0iI2GxeJWsDv+HoFn8xd643rjMJYy/vG/Zy8O8KhilUZGHu9miu8WxiQD5 r2z0HkYvthimwClmQg7nItzhb8UuUM9T7n0iLbj/9ExlywayCandlzVwk17I3OnskE/y Q/KO3rMN5awmnGBBizkFQZNFu2YXinQgVt0K+YDZwAIT5UiZr6BIPIRzEqZVLjuUi/qe 6oemNHMb0siuOWkli9hUxeSLv2kajledjGNzsZxVu5pF1OF3Swu3yldlWdDcmQww457R S2gQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=QcRVSt6R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dz16-20020a0564021d5000b00418d6d7b866si7401131edb.161.2022.04.11.03.44.04; Mon, 11 Apr 2022 03:44:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=QcRVSt6R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244801AbiDKF5r (ORCPT + 99 others); Mon, 11 Apr 2022 01:57:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235110AbiDKF5q (ORCPT ); Mon, 11 Apr 2022 01:57:46 -0400 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A999C33A26; Sun, 10 Apr 2022 22:55:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1649656533; x=1681192533; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=p9HXYw/ALt+MopqQNrusnXpB/e7Lu7tHls88nUVRk1Q=; b=QcRVSt6R79v20L1QwpL+LLtsoOjO3j2CEb+SeUma3+6sIc3r9+LCt0+s 1Vt1Tv+YUbBauWnaIeMlHIM1uteoM2s7g6tzgWBo8vRr9jUYMfSTT+6FD DLRo28e/5YPsa4oOkHixAUL1m+n6G+/HDTk2/gBCjLEVTFESB0SYpDtzg 4=; Received: from unknown (HELO ironmsg04-sd.qualcomm.com) ([10.53.140.144]) by alexa-out-sd-01.qualcomm.com with ESMTP; 10 Apr 2022 22:55:33 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg04-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2022 22:55:32 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Sun, 10 Apr 2022 22:55:31 -0700 Received: from [10.111.167.150] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Sun, 10 Apr 2022 22:55:29 -0700 Message-ID: Date: Sun, 10 Apr 2022 22:55:27 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.2 Subject: Re: [PATCH] drm/msm/dsi: Use connector directly in msm_dsi_manager_connector_init() Content-Language: en-US To: Stephen Boyd , Rob Clark , "Sean Paul" CC: , , , , "Dmitry Baryshkov" , Sean Paul References: <20220318000731.2823718-1-swboyd@chromium.org> From: Abhinav Kumar In-Reply-To: <20220318000731.2823718-1-swboyd@chromium.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/17/2022 5:07 PM, Stephen Boyd wrote: > The member 'msm_dsi->connector' isn't assigned until > msm_dsi_manager_connector_init() returns (see msm_dsi_modeset_init() and > how it assigns the return value). Therefore this pointer is going to be > NULL here. Let's use 'connector' which is what was intended. > > Cc: Dmitry Baryshkov > Cc: Sean Paul > Fixes: 6d5e78406991 ("drm/msm/dsi: Move dsi panel init into modeset init path") > Signed-off-by: Stephen Boyd Reviewed-by: Abhinav Kumar > --- > > I don't know if this is superseeded by something else but I found this > while trying to use the connector from msm_dsi in this function. > > drivers/gpu/drm/msm/dsi/dsi_manager.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/msm/dsi/dsi_manager.c b/drivers/gpu/drm/msm/dsi/dsi_manager.c > index 0c1b7dde377c..9f6af0f0fe00 100644 > --- a/drivers/gpu/drm/msm/dsi/dsi_manager.c > +++ b/drivers/gpu/drm/msm/dsi/dsi_manager.c > @@ -638,7 +638,7 @@ struct drm_connector *msm_dsi_manager_connector_init(u8 id) > return connector; > > fail: > - connector->funcs->destroy(msm_dsi->connector); > + connector->funcs->destroy(connector); > return ERR_PTR(ret); > } > > > base-commit: 05afd57f4d34602a652fdaf58e0a2756b3c20fd4