Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3029646rwb; Mon, 15 Aug 2022 16:28:33 -0700 (PDT) X-Google-Smtp-Source: AA6agR6Tm/U3tMohrTeqEkKeoXtlVnM1pX44Mi1GOdBsky555I4iZLFu9ZlE2+wIAyqfUxb0NrE0 X-Received: by 2002:a05:6a00:acc:b0:530:e79e:fc27 with SMTP id c12-20020a056a000acc00b00530e79efc27mr18825805pfl.61.1660606113538; Mon, 15 Aug 2022 16:28:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660606113; cv=none; d=google.com; s=arc-20160816; b=WhYJEztlSLOPvDD7ErHaJ+cTR+61XG3dVekNgCfrLNHwO7hSQxO9Plam7YBKRWskLs UffVGUiK+jJ/onK/Doyk7xbjaBR/lu5Isidy/aOz0WJPAgSqmNCBhK5oO9ki0x93TrQY nWHlbkQwi5UMWsBoecwytLidODHgx+rS9PH/DNwWy4XDIV66dj0A5z/vIkBkViyyJZiL rU8KmO8h4NBMEtUU9DyOTo6S2UOLJad9lqIq1JJylaVUETVWaw8Re05j2yoOVx6ulFlF oiiZH6XxVzWdqBhdjqEMK1KbafQTOcd+POMVYLsSt9BmMiOrEh30kYXJvkotCZOACtDG D2xw== 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=+5AOjJ3s23eMkjQpGbxZeWpGmCTEhW9NvBarDKJ/0BM=; b=OaI2O5glwC1fjHTkYzJe/zVzf/s6Fih3QthK4kUVT//bS2ip2KW8MicnO6mrYp9tJ1 btAqKgwBtVnCZKGPeKpHFZdzlRhJRP0yfoDwURO56bxlW6bZ3mivBkda6WIMXuWNv4P4 +5voiNeLsiiKNbjywyUUD9qlXl+M/7w4mfs8qnjdqQfLHYoW9tt3iTTT93QhRGcu2AJV IscxvFuqM8O49uE7f6PTrqbWm+2eo8lZyRM002NeIhEtl7ujlB+CgXrm3fshv2UcU+Qj Y6NuuZiA8m8u67q6674cvqE1Y2cpZR/HNvt5Q2EUyV8wNZRzqySQWDlB9TeWc6uh0cP0 AcRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nJRTNLYe; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s5-20020a656445000000b0041c0c9a13fcsi12771617pgv.98.2022.08.15.16.28.21; Mon, 15 Aug 2022 16:28:33 -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=@linuxfoundation.org header.s=korg header.b=nJRTNLYe; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244748AbiHOXSJ (ORCPT + 99 others); Mon, 15 Aug 2022 19:18:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345907AbiHOXPA (ORCPT ); Mon, 15 Aug 2022 19:15:00 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8CEC7C76B; Mon, 15 Aug 2022 13:02:22 -0700 (PDT) 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 ams.source.kernel.org (Postfix) with ESMTPS id 7D9AFB80EB1; Mon, 15 Aug 2022 20:02:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DBCD8C433D6; Mon, 15 Aug 2022 20:02:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660593740; bh=paxBoEnAGh+TJJxSDISYgtGqLIvQ5WKLbYQHLktb9E0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nJRTNLYeg8U5XGGuRWSm0FA7OMC5kCRiKWXy6ak8b0F3YZK14aamrNBhxHMZjVpPd d/IYRtSZuiDlHvBDqkowKQ9EZ3T7yrolCo8FEk9LORPkGboRoj9Dep9zIhr7D+Gl0/ bmjZYWdTJFONf/rcNakIwysS35ciH+raDVFaeUW0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= , Jani Nikula , Sasha Levin Subject: [PATCH 5.19 0318/1157] drm/edid: reset display info in drm_add_edid_modes() for NULL edid Date: Mon, 15 Aug 2022 19:54:34 +0200 Message-Id: <20220815180452.368173158@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Jani Nikula [ Upstream commit d10f7117aa43b0b0d1c4b878afafb6d151da441d ] If a NULL edid gets passed to drm_add_edid_modes(), we should probably also reset the display info. Cc: Ville Syrjälä Signed-off-by: Jani Nikula Reviewed-by: Ville Syrjälä Link: https://patchwork.freedesktop.org/patch/msgid/2ac1c55f94a08d5e72c0b518d956a11002ec85c1.1651569697.git.jani.nikula@intel.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/drm_edid.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index bc43e1b32092..1dea0e2f0cab 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c @@ -5697,6 +5697,7 @@ static int drm_edid_connector_update(struct drm_connector *connector, u32 quirks; if (edid == NULL) { + drm_reset_display_info(connector); clear_eld(connector); return 0; } -- 2.35.1