Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp32641120rwd; Fri, 7 Jul 2023 18:22:29 -0700 (PDT) X-Google-Smtp-Source: APBJJlHbvUBgnZaVdxC57fIhdcaOjJor1X0WgHI0AFqctjQ13kXMGNS9JjeF/GQqH9a6/7bSxudH X-Received: by 2002:a17:907:6d1f:b0:993:22a2:9234 with SMTP id sa31-20020a1709076d1f00b0099322a29234mr10455987ejc.31.1688779348780; Fri, 07 Jul 2023 18:22:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688779348; cv=none; d=google.com; s=arc-20160816; b=qO3X8Ssajx4YGQRDUAciiU3mwZl19+ciohvY34jrL5mvt6yuG06q+V1kA5/6VCj6/8 gHVp11pIDZL/nlibxP9QMM7O7nJUpuzKN/vdqM0TZHPVjcn/UBpacz5aZk+o/OvwTHhc /aPys52+oBHkRV86qlN++gsVtXOeuTxHJNQwsyfr22fMPPmbGppPwOmwem1rkbHRZLZh ifgtToEthxXKdBlNu64pNV65W6xb99+wylgB0bHsl3PUu65cXctulGGtB8WQvQ2zMTwN 7bNe+yw6PNvuEv1Xu0tiv4f6rLEvHMhFGIeaE2zAameWcNZ8katnK2qLH39YaAm/djUM h1Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=mFeoEp95ns5po24iiOVjiBNQNFUg9MGx4urbNtotoYk=; fh=oTBlcLsE5TIjd+/93hKYfVHZJUOdubO2WhDxdVpAISI=; b=NHjv4jwkL7Nafxuw/ChcbLUaYc0kIKykwbQjqvznhqHcFROFTsgjMubs6LBDuIpXsl AbSA96Lzn1t9GD0pptonr+zQifNKSKNhSNcvA9bEDnkxKntmvtAOkqjr9i1VbIhxPflR p7aAadaH7azu9s1FlENI9UH/bcA9AWUZdlltuzbtWpXOLv5R8KM5OwfK2gElGeyg4NnF mjtTwnCsKU+RdfHevYqtwy6/WGwmYHeFJ6pER/fneMnj54ZmX66oJccJy3cw00cTRqXJ l5wdZGr5X/SxP9OI8vKJwiBKI73FjQ2CCCifMtaJydsxBoHMNtQR0vuEAF4GVz082Dtr /tgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lcKcuhFK; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u14-20020a170906068e00b00993689daad1si2869622ejb.116.2023.07.07.18.22.05; Fri, 07 Jul 2023 18:22:28 -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=@linaro.org header.s=google header.b=lcKcuhFK; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232879AbjGHAeU (ORCPT + 99 others); Fri, 7 Jul 2023 20:34:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229675AbjGHAeT (ORCPT ); Fri, 7 Jul 2023 20:34:19 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D401219AE for ; Fri, 7 Jul 2023 17:34:17 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-4fb7373dd35so4609957e87.1 for ; Fri, 07 Jul 2023 17:34:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688776456; x=1691368456; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=mFeoEp95ns5po24iiOVjiBNQNFUg9MGx4urbNtotoYk=; b=lcKcuhFKfOWAx1X+tnOMJ+K1D/sCCoVbGIOhFMwhknnb/8pqXuF2YhWbV/pys9Rp09 Lv7x0nKnmuvmEuHjh0YoncUHPPFHpScRIu0vyR1sKETI6Cqz8Q5IQWpr7BW8kp58YPAe IISv3vsmHut08KnAs0LqucTYg3fSyt73QMEGLiEnGLextm0RU5KgGI5FaaCZxrSp5H1H UtD94PJBIW8PVN8tPVm8fp4GYR2LJSmcEfuSkUh3/Cwt6BXZ63l+6eiyPv8PCvJ2g0EU lBtAk14Iabxhtv+4nJxJYna2sxUjkAFRu2L5wI5FnfLk2HdMG741BJLfQ5HKwXeMlQdq SVpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688776456; x=1691368456; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=mFeoEp95ns5po24iiOVjiBNQNFUg9MGx4urbNtotoYk=; b=ivcaZDZuomXWhVc8GhZhJem2jVUR09yt+WGpHvb/YMpVA+SPBrDwViKmiugRFi4SaF X88eH3sFOMpSj0gOXbsGAbcHIan/3BNZttJ09O5XUj8v1KmO3g+EzdaZ0/gLnki0cMhd xXEcdMXZc80la/sHxGcQEUh8JteoxCVscDQ0mhLLrvVAohFWfJECi+JH2wlE/O+maiB5 cqM48/EHoTmsN1a8x+EPl0l92xKUFdt+tLI/3hH9ZMJsryvd8rbRSFl4/m0JWwTWXBmC 7EqEWiMFRHUP3xekuIZXb9Kt2b5yKFfS7y3zrdmZp/shwNPDkOXhVSfLlUjBNp38VCAd P17A== X-Gm-Message-State: ABy/qLYLZQn5o/abKc4UiZ+LZ1mL3dCp9xGNsLIfn4ObjwW+5wD7rLLV GpztVaY1ax3DHXbRDFclCNlOhw== X-Received: by 2002:a19:4f48:0:b0:4f8:5ede:d453 with SMTP id a8-20020a194f48000000b004f85eded453mr2142516lfk.23.1688776456101; Fri, 07 Jul 2023 17:34:16 -0700 (PDT) Received: from ?IPV6:2001:14ba:a0db:1f00::8a5? (dzdqv0yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::8a5]) by smtp.gmail.com with ESMTPSA id j16-20020ac25510000000b004fbb20791f3sm861038lfk.31.2023.07.07.17.34.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 07 Jul 2023 17:34:15 -0700 (PDT) Message-ID: Date: Sat, 8 Jul 2023 03:34:15 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v1 3/5] drm/msm/dp: delete EV_HPD_INIT_SETUP Content-Language: en-GB To: Kuogee Hsieh , dri-devel@lists.freedesktop.org, robdclark@gmail.com, sean@poorly.run, swboyd@chromium.org, dianders@chromium.org, vkoul@kernel.org, daniel@ffwll.ch, airlied@gmail.com, agross@kernel.org, andersson@kernel.org Cc: quic_abhinavk@quicinc.com, quic_jesszhan@quicinc.com, quic_sbillaka@quicinc.com, marijn.suijten@somainline.org, freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <1688773943-3887-1-git-send-email-quic_khsieh@quicinc.com> <1688773943-3887-4-git-send-email-quic_khsieh@quicinc.com> From: Dmitry Baryshkov In-Reply-To: <1688773943-3887-4-git-send-email-quic_khsieh@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On 08/07/2023 02:52, Kuogee Hsieh wrote: > EV_HPD_INIT_SETUP flag is used to trigger the initialization of external > DP host controller. Since external DP host controller initialization had > been incorporated into pm_runtime_resume(), this flag become obsolete. > Lets get rid of it. And another question. Between patches #2 and #3 we have both INIT_SETUP event and the PM doing dp_display_host_init(). Will it work correctly? > > Signed-off-by: Kuogee Hsieh > --- > drivers/gpu/drm/msm/dp/dp_display.c | 12 ------------ > 1 file changed, 12 deletions(-) > > diff --git a/drivers/gpu/drm/msm/dp/dp_display.c b/drivers/gpu/drm/msm/dp/dp_display.c > index 2c5706a..44580c2 100644 > --- a/drivers/gpu/drm/msm/dp/dp_display.c > +++ b/drivers/gpu/drm/msm/dp/dp_display.c > @@ -55,7 +55,6 @@ enum { > enum { > EV_NO_EVENT, > /* hpd events */ > - EV_HPD_INIT_SETUP, > EV_HPD_PLUG_INT, > EV_IRQ_HPD_INT, > EV_HPD_UNPLUG_INT, > @@ -1119,9 +1118,6 @@ static int hpd_event_thread(void *data) > spin_unlock_irqrestore(&dp_priv->event_lock, flag); > > switch (todo->event_id) { > - case EV_HPD_INIT_SETUP: > - dp_display_host_init(dp_priv); > - break; > case EV_HPD_PLUG_INT: > dp_hpd_plug_handle(dp_priv, todo->data); > break; > @@ -1483,15 +1479,7 @@ void __exit msm_dp_unregister(void) > > void msm_dp_irq_postinstall(struct msm_dp *dp_display) > { > - struct dp_display_private *dp; > - > - if (!dp_display) > - return; > - > - dp = container_of(dp_display, struct dp_display_private, dp_display); > > - if (!dp_display->is_edp) > - dp_add_event(dp, EV_HPD_INIT_SETUP, 0, 0); > } > > bool msm_dp_wide_bus_available(const struct msm_dp *dp_display) -- With best wishes Dmitry