Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4045219pxf; Mon, 29 Mar 2021 19:57:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzp9DbKDBMmqmLuI7PYhUGixbbAVVOCICIZXAq7kEBvOLgdNdmKYov9Do482830YFpja/OF X-Received: by 2002:a05:6402:4395:: with SMTP id o21mr30847336edc.22.1617073060026; Mon, 29 Mar 2021 19:57:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617073060; cv=none; d=google.com; s=arc-20160816; b=JZJ5KmCh1dGNZoQamFsRWAgj/hCtYlAoTld43WrtJf7QOOBVQvKmpn9RvtTtXKU19q Jmz3RGRW8Mhb1quITQvz6mACggy8ZdT9bUm1wdph5llpqql27CZjHEpaU0/nROw+xeSl grBqdw+JgABq8gky+CwJ4W75T1UtP+sjKj7i3+EKCUKql1MywJWsYuHVj2MPOowIPdTE tkbKfjqebfZpuzux3YkQ3n1sJymnn6e5ymcBUYgs++fJpu6ZYX8RxFm0SzG9jiwIDxwA Z4Fs9WW287NskF0KKNKtj3udaoyHtXKWhKBu7C7284soeWUkMv4ta4Qyt2ARdCE1Uw4r RtUw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=H9aZHg1XmzeEuWmP1Y9k5kwByteme6M7NQeVtbNkUCU=; b=ia0S12BEmaNLsZ2ikfBOv1qF70Qs/cqfkuGhZw/cYLCKAGxMGpyyE4r2aTA2LFAbl/ 75pSHLe+kgLjjAc7IiqsqpwVnxI5+LB/Uuy5zDixR676yvqgqir3JpcasHYKzUvDvL+9 tWwYAwYOSFVVBpCuaqNrUlOEOPEaoj1qWu6u/rQgzNw0FPdO7KCDem8dlUODb/zYyC4/ 9vCpBWemEdo/U9cv6YbdkRldBjuZdT0Yw6a9cSi9Ui7BM3uPC3SnCIJCaJ/h/4EYHaRk ELZyRnLiEprpw0pEMj66vTs11RCuwUyNPiqYLWA0stiLQ54oSlkn++ZN2pwLbfvAcuvq hEPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="C/RrhmHf"; 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 h18si14113325ejd.89.2021.03.29.19.57.17; Mon, 29 Mar 2021 19:57:40 -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="C/RrhmHf"; 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 S231434AbhC3Cy1 (ORCPT + 99 others); Mon, 29 Mar 2021 22:54:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231196AbhC3CyP (ORCPT ); Mon, 29 Mar 2021 22:54:15 -0400 Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C429C061762 for ; Mon, 29 Mar 2021 19:54:15 -0700 (PDT) Received: by mail-pg1-x535.google.com with SMTP id t140so3341597pgb.13 for ; Mon, 29 Mar 2021 19:54:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=H9aZHg1XmzeEuWmP1Y9k5kwByteme6M7NQeVtbNkUCU=; b=C/RrhmHfFql2N/xoLubh0lDEHxjw4L7AWTRv0UuWixsW8lQIMBgwB+8VXVga1+vPpx tTauyVTEvRbcQpp9YFiGpINDqXOWBUqidzrOyuJk85ZUjFx8jlv8GVRroTOH154PGPGa 8rKSWGuzQ6BYuBnDPUdGSqpTe/cxZfw84Xumo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=H9aZHg1XmzeEuWmP1Y9k5kwByteme6M7NQeVtbNkUCU=; b=WvDY2OoMamniRAzStxZt1udi6tqyqoUUopoj0jcstUnR1QDJksKTtftccYypYVZJzB oUMQ9EgXDHy5JLucc1vbxpFYNG9Rx2s613tYiCyHo6GiVtbLEeGZs9pNQ1zOHgI9lga7 OAuUJszQGC/ZkruIoT/rBdpbbIkdoBkwKD0gWyakyDLmW29BFiUlAu/OrsPCFlHbzQNy XsorSW+4MFOiMkdc2Ac1A42eLRScfECb2M6splgHMZBeMUHYd2S3m5rERcAtzqbytYqp NMZWByv4nOTHdvC89tKLvNT62P8sSHtkKAHq1KXAX7G2DlUXQZM3fB599iBmSv0QCqiP 53+w== X-Gm-Message-State: AOAM531zx92ZAq4u7YnONub+uOQuhNSqrlwij+1/z6tcxkfeIAYu6KiJ 7z+QImKipDD4X5GhMuC9OzqUqIhnhog1vT3o X-Received: by 2002:aa7:8a4d:0:b029:211:92f2:658c with SMTP id n13-20020aa78a4d0000b029021192f2658cmr28475860pfa.29.1617072854696; Mon, 29 Mar 2021 19:54:14 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:201:f599:1ca7:742d:6b50]) by smtp.gmail.com with ESMTPSA id t17sm19152706pgk.25.2021.03.29.19.54.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Mar 2021 19:54:14 -0700 (PDT) From: Douglas Anderson To: Andrzej Hajda , Neil Armstrong , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Sam Ravnborg Cc: Bjorn Andersson , Stephen Boyd , Maarten Lankhorst , robdclark@chromium.org, Stanislav Lisovskiy , linux-arm-msm@vger.kernel.org, Steev Klimaszewski , Linus W , Douglas Anderson , Daniel Vetter , David Airlie , Robert Foss , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 08/14] drm/bridge: ti-sn65dsi86: Remove extra call: drm_connector_update_edid_property() Date: Mon, 29 Mar 2021 19:53:39 -0700 Message-Id: <20210329195255.v2.8.Ic14a7ab8035df89e19a25ad4fbf2004f9673f167@changeid> X-Mailer: git-send-email 2.31.0.291.g576ba9dcdaf-goog In-Reply-To: <20210330025345.3980086-1-dianders@chromium.org> References: <20210330025345.3980086-1-dianders@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As of commit 5186421cbfe2 ("drm: Introduce epoch counter to drm_connector") the drm_get_edid() function calls drm_connector_update_edid_property() for us. There's no reason for us to call it again. Signed-off-by: Douglas Anderson --- (no changes since v1) drivers/gpu/drm/bridge/ti-sn65dsi86.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi86.c b/drivers/gpu/drm/bridge/ti-sn65dsi86.c index a0a00dd1187c..9577ebd58c4c 100644 --- a/drivers/gpu/drm/bridge/ti-sn65dsi86.c +++ b/drivers/gpu/drm/bridge/ti-sn65dsi86.c @@ -270,7 +270,7 @@ static int ti_sn_bridge_connector_get_modes(struct drm_connector *connector) { struct ti_sn_bridge *pdata = connector_to_ti_sn_bridge(connector); struct edid *edid = pdata->edid; - int num, ret; + int num; if (!edid) { pm_runtime_get_sync(pdata->dev); @@ -279,12 +279,9 @@ static int ti_sn_bridge_connector_get_modes(struct drm_connector *connector) } if (edid && drm_edid_is_valid(edid)) { - ret = drm_connector_update_edid_property(connector, edid); - if (!ret) { - num = drm_add_edid_modes(connector, edid); - if (num) - return num; - } + num = drm_add_edid_modes(connector, edid); + if (num) + return num; } return drm_panel_get_modes(pdata->panel, connector); -- 2.31.0.291.g576ba9dcdaf-goog