Message ID | 20210909135838.v4.14.Ib810fb3bebd0bd6763e4609e1a6764d06064081e@changeid (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Return-Path: <linux-arm-msm-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 60B80C433F5 for <linux-arm-msm@archiver.kernel.org>; Thu, 9 Sep 2021 21:02:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 40005611ED for <linux-arm-msm@archiver.kernel.org>; Thu, 9 Sep 2021 21:02:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348475AbhIIVD2 (ORCPT <rfc822;linux-arm-msm@archiver.kernel.org>); Thu, 9 Sep 2021 17:03:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347756AbhIIVDC (ORCPT <rfc822;linux-arm-msm@vger.kernel.org>); Thu, 9 Sep 2021 17:03:02 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F8D9C061768 for <linux-arm-msm@vger.kernel.org>; Thu, 9 Sep 2021 14:01:49 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id bb10so1915735plb.2 for <linux-arm-msm@vger.kernel.org>; Thu, 09 Sep 2021 14:01:49 -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=8PTE0Yp5aDkSeBEqIuFJReXHpA2uRHL4THhzDtBtHM8=; b=hUm04el1zXzdBx52xN3cigDxnD1hqWSFUO2ijZO9vUniVOCWCPnQZtbLvdsMaNNm/f yvw2mPOpV0JpHty1NPK1u3cpMEGA6caOD26/7i+BN3OxqZYM6L/Msi49GV3tAWY3DX3M BE+0Y5hEQft4W9Y9v755culUmqPWyizS7U1Bc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8PTE0Yp5aDkSeBEqIuFJReXHpA2uRHL4THhzDtBtHM8=; b=xrHlxUUrPvD5MH9fz6HxcBRTq3rdWIIhEOi9Evhn22Jsu79NRtp/fu5vk6pGpeSGcT vJK1RzOER7srgyfqIc+V3ibBy80VXAhc3/ZoWiWQ4swcQWjr3STiB8vEFqc/E0OS0c1K bPtF+x3ZqLf9ZtrBfpst+E2vcpRntlawFFuywKebkJelw0tFacaJQmwPORTYfGrVK9EJ ODM5LzJptI943K6ANvOCwMOhAkLcl1L0QL8XpNEC7XMhFfSAvyRKaklrmnB29vsdvM5n OAt2tmN2ilDnwgkz1y05ckCzkRMhtdkZjkGNiQkqMt6GrgbNXDOuaZFjgHvPGYxvQZhm uX5w== X-Gm-Message-State: AOAM531P9yS+kYOaRnyxW8001JruRnng8DtgPGhhKxyv7a+12ZLyCJDc Gl0CcKx5t93K5rDmOdUkIbDakg== X-Google-Smtp-Source: ABdhPJy9yqtlq0O55aZDP2543XJUNsq/vXANkPzXqzZKvA+Wc7ATkFCwrz8OUiisMMVh18ipOMA6ww== X-Received: by 2002:a17:902:ec90:b0:13a:34f9:cfe9 with SMTP id x16-20020a170902ec9000b0013a34f9cfe9mr4621219plg.74.1631221309002; Thu, 09 Sep 2021 14:01:49 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:201:8da3:b0fb:4261:2c10]) by smtp.gmail.com with ESMTPSA id l143sm177069pfd.60.2021.09.09.14.01.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Sep 2021 14:01:48 -0700 (PDT) From: Douglas Anderson <dianders@chromium.org> To: Thierry Reding <thierry.reding@gmail.com>, Rob Herring <robh+dt@kernel.org>, Sam Ravnborg <sam@ravnborg.org> Cc: devicetree@vger.kernel.org, Maxime Ripard <mripard@kernel.org>, Thomas Zimmermann <tzimmermann@suse.de>, Linus W <linus.walleij@linaro.org>, Daniel Vetter <daniel@ffwll.ch>, linux-arm-msm@vger.kernel.org, Steev Klimaszewski <steev@kali.org>, Maarten Lankhorst <maarten.lankhorst@linux.intel.com>, Bjorn Andersson <bjorn.andersson@linaro.org>, David Airlie <airlied@linux.ie>, dri-devel@lists.freedesktop.org, Douglas Anderson <dianders@chromium.org>, linux-kernel@vger.kernel.org Subject: [PATCH v4 14/15] drm/panel-edp: Don't re-read the EDID every time we power off the panel Date: Thu, 9 Sep 2021 14:00:30 -0700 Message-Id: <20210909135838.v4.14.Ib810fb3bebd0bd6763e4609e1a6764d06064081e@changeid> X-Mailer: git-send-email 2.33.0.309.g3052b89438-goog In-Reply-To: <20210909210032.465570-1-dianders@chromium.org> References: <20210909210032.465570-1-dianders@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-arm-msm.vger.kernel.org> X-Mailing-List: linux-arm-msm@vger.kernel.org |
Series |
eDP: Support probing eDP panels dynamically instead of hardcoding
|
expand
|
diff --git a/drivers/gpu/drm/panel/panel-edp.c b/drivers/gpu/drm/panel/panel-edp.c index a83ef9905ea7..817c60858ef8 100644 --- a/drivers/gpu/drm/panel/panel-edp.c +++ b/drivers/gpu/drm/panel/panel-edp.c @@ -362,9 +362,6 @@ static int panel_edp_suspend(struct device *dev) regulator_disable(p->supply); p->unprepared_time = ktime_get(); - kfree(p->edid); - p->edid = NULL; - return 0; } @@ -758,6 +755,9 @@ static int panel_edp_remove(struct device *dev) if (panel->ddc && (!panel->aux || panel->ddc != &panel->aux->ddc)) put_device(&panel->ddc->dev); + kfree(panel->edid); + panel->edid = NULL; + return 0; }