Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1978350pxb; Thu, 16 Sep 2021 22:13:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxc0Hof7Q8MHFFhQ7BkMmBjW9yAbjGaQqq7Ymu/jjx2ZFFHlXgFXyeZxlTuBwT0KdbaF9rt X-Received: by 2002:a05:6638:2611:: with SMTP id m17mr7260032jat.85.1631855592565; Thu, 16 Sep 2021 22:13:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631855592; cv=none; d=google.com; s=arc-20160816; b=ejkF2EDF+hl6xkut5jSBnuEOtADSlodMe0B2POmpDEVh7537Cgell7eouhirizefr9 5yGajYOWAFdn18LsUb/E1Gve2o7ERLKy2jW8UPwfpLVKD6hFMHBxjpji7xIF8GXkPzSP Ny5RzPXoebfNGkwgrxffubSNH5NovstS0iU7+gErZfmnmKLvKh9bYd5KxDV5aVnRLFEa HptSghBmsESq/1PQLMCBM28s5xbxsrP17iGUZN2dosHuZVqoaF9Xl+k/Vt8YAuDQgiSJ gcUNyTvMpbaKBYxme9eZ3WsAzmepHifCJpppsxpxInJmxwjj1LDDTSFq1z/nOO9AkAU7 ahkQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=q4YIWdOLC2QZ0hLphWfFJ564k4heqLGLfnpzd2jvv+o=; b=lwtQg3Cfkj02stiFMK9vKKjnjSCCcr37PvtUdDeulWI6s1FzuGOQhvsAWl/ejz0fsR N3WTjvD1AZ1KMC+uomggFsERqlY3nqT08pSVOwnIPiP2XWloZSg1jhYa/V0yXYd6p+05 aQFvy13ka3CsnoSqkOW7zhKtOQzVi2+IE+8IgMKEEsV0PbB05q+XRrux1KgKOiW5OTIz sYKxVj9w6IP/W8kj8XJNpvTKB13guumVTOeXqjtqKs+KWO7w/IU2QPmPrEe8W9cujs3C iarwTKboOplWPwJP4JbISeV7GAh6foym1brUQ+H/L2DtV9q6GUXmKdTkCXB5Pf8Vubh0 ZwfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BUr5smLz; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u13si4652251ilg.40.2021.09.16.22.12.59; Thu, 16 Sep 2021 22:13:12 -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=@linuxfoundation.org header.s=korg header.b=BUr5smLz; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356548AbhIPRuS (ORCPT + 99 others); Thu, 16 Sep 2021 13:50:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:57146 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355490AbhIPRlf (ORCPT ); Thu, 16 Sep 2021 13:41:35 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B6DB461A8B; Thu, 16 Sep 2021 16:53:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631811192; bh=iXJafTiwm+F/PRnWqxas69L3sKLJAcb7LldHNIyBmJQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BUr5smLz69WxFyzGUTeDj2ZL32IyOfk4EYJHw/mz2CC6qpdXh0AFmdRh7ebxnBmev YsxOOd2tsjDiD/xmZ9WFsiZgC93vv3yWBVFFHgrf8StFGAUpXebJll4+cbdRKB82BF NidFH3G4sLXd3TT/ANVjEz9183TIQgj4MbpS22JE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, David Heidelberg , Rob Clark Subject: [PATCH 5.14 417/432] drm/msi/mdp4: populate priv->kms in mdp4_kms_init Date: Thu, 16 Sep 2021 18:02:46 +0200 Message-Id: <20210916155824.967379282@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155810.813340753@linuxfoundation.org> References: <20210916155810.813340753@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: David Heidelberg commit cb0927ab80d224c9074f53d1a55b087d12ec5a85 upstream. Without this fix boot throws NULL ptr exception at msm_dsi_manager_setup_encoder on devices like Nexus 7 2013 (MDP4 v4.4). Fixes: 03436e3ec69c ("drm/msm/dsi: Move setup_encoder to modeset_init") Cc: Signed-off-by: David Heidelberg Link: https://lore.kernel.org/r/20210811170631.39296-1-david@ixit.cz Signed-off-by: Rob Clark Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c +++ b/drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c @@ -399,6 +399,7 @@ struct msm_kms *mdp4_kms_init(struct drm { struct platform_device *pdev = to_platform_device(dev->dev); struct mdp4_platform_config *config = mdp4_get_config(pdev); + struct msm_drm_private *priv = dev->dev_private; struct mdp4_kms *mdp4_kms; struct msm_kms *kms = NULL; struct msm_gem_address_space *aspace; @@ -418,7 +419,8 @@ struct msm_kms *mdp4_kms_init(struct drm goto fail; } - kms = &mdp4_kms->base.base; + priv->kms = &mdp4_kms->base.base; + kms = priv->kms; mdp4_kms->dev = dev;