Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5970124pxb; Mon, 14 Feb 2022 12:00:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJxHVnxF3k9uDFk3Z3SOFBd/3OIT0jNeQGPxkhJXSs14VUSuLN3f/Gluf+L1H0/lJSpOnh2V X-Received: by 2002:a17:902:ecd1:: with SMTP id a17mr463018plh.0.1644868816126; Mon, 14 Feb 2022 12:00:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644868816; cv=none; d=google.com; s=arc-20160816; b=ysl75S5twrF16Ocn1uFX+CAvD/562NjaKf8m6UVGDonsG9X1fSvJAhOxsu6S8HMIAl gU9RpLtWesFNcrv7lJWSVUWEjpCea8t7EFK7jcKx9rfP/9r9j6qktjGMG6J5TPGknB5N pTVp6Hl4v9RLfLA/XkPu6DFAb8phgAWafuy2If5MPU9EspfeczsLWgecKjg9ulUytlke eroFpKpvramCB65DB9bwW/BCSNPCXBsCna/2oMQDfD5HIYXjQqrSA9Bc1CpOq3Ou7usU afj17AF45RyqeGeH8inZAsGPoX8KNTnULn/Rgn8hovf5NkgaEYNLpVI+Tp9du6kulNtS CjAQ== 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=pclYHGkOTCfpj1TpJMdvuJvJmJkgjWcNz4GW4S9biB8=; b=qbNL9pLGx6IoUwy5oUk+hWAIV70h++Xi2SWUe/wI1ptTPk7v37B5RoRJGabZscSqGT Meg64S3JbEimHILXj/KW2LacbPIhcEefmrH/J5O71Xo0PZRYYcAyPDuglM7vTiYseopb h0+N/6gT/8Xv9NEjr5dEi15edYwGLNFh+TmvXl4+23A0I3mf3QU/HVdupUCP33ACV3jV VIGN6NjaCS7c/uBQ3cYxhcCqn3TregkVXPh07YO/G/konZZVccvlNxEaTtYll792bPR+ 5OXS6O4v8tvhAnSISzyGjkDbxvJFreK3uLmJIN/1KNZG1RZLixCoQGSfe+zd+x/Sa272 d1fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="CjU4KPB/"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id v69si602798pgd.553.2022.02.14.12.00.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 12:00:16 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="CjU4KPB/"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B86078F62E; Mon, 14 Feb 2022 11:41:10 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245505AbiBNJxk (ORCPT + 99 others); Mon, 14 Feb 2022 04:53:40 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:34448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245744AbiBNJuo (ORCPT ); Mon, 14 Feb 2022 04:50:44 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDEFE654B0; Mon, 14 Feb 2022 01:41:37 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7AE6D6102D; Mon, 14 Feb 2022 09:41:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5989BC340F0; Mon, 14 Feb 2022 09:41:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1644831696; bh=9TbKrEy59czhCycBrgr8TptrPB3LMyhS1KggHXhlAo0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CjU4KPB/YjfdHgtZfOE3gaCeDDfrNON3ivZmQUS/Ri05jJ4+qaUQYMJ905iGP2bVm zZqCyLckySsQNeLr1sKwh03HKK6j/nZ8mgVcjlcDRZADk0ijbBOfKc0THSaOlOw+AV hCw1V0s9+05tHGhMEma6N5MgbPrsYPt7HlvgyqNA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christoph Niedermaier , Marek Vasut , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Sasha Levin Subject: [PATCH 5.10 065/116] drm/panel: simple: Assign data from panel_dpi_probe() correctly Date: Mon, 14 Feb 2022 10:26:04 +0100 Message-Id: <20220214092500.993729326@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220214092458.668376521@linuxfoundation.org> References: <20220214092458.668376521@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 From: Christoph Niedermaier [ Upstream commit 6df4432a5eca101b5fd80fbee41d309f3d67928d ] In the function panel_simple_probe() the pointer panel->desc is assigned to the passed pointer desc. If function panel_dpi_probe() is called panel->desc will be updated, but further on only desc will be evaluated. So update the desc pointer to be able to use the data from the function panel_dpi_probe(). Fixes: 4a1d0dbc8332 ("drm/panel: simple: add panel-dpi support") Signed-off-by: Christoph Niedermaier Cc: Marek Vasut Cc: Thierry Reding Cc: Sam Ravnborg Cc: David Airlie Cc: Daniel Vetter To: dri-devel@lists.freedesktop.org Reviewed-by: Sam Ravnborg Signed-off-by: Marek Vasut Link: https://patchwork.freedesktop.org/patch/msgid/20220201110153.3479-1-cniedermaier@dh-electronics.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/panel/panel-simple.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 204674fccd646..7ffd2a04ab23a 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -557,6 +557,7 @@ static int panel_simple_probe(struct device *dev, const struct panel_desc *desc) err = panel_dpi_probe(dev, panel); if (err) goto free_ddc; + desc = panel->desc; } else { if (!of_get_display_timing(dev->of_node, "panel-timing", &dt)) panel_simple_parse_panel_timing_node(dev, panel, &dt); -- 2.34.1