Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp6594804rwb; Tue, 9 Aug 2022 19:35:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR6EloGL1pm94wn4MlcELdfANuSewyrF0MkXvl/xlJ1fQf5heI2dxIeXtCyG6CcZn0F1veFv X-Received: by 2002:a05:6402:248a:b0:440:9709:df09 with SMTP id q10-20020a056402248a00b004409709df09mr12362588eda.42.1660098940533; Tue, 09 Aug 2022 19:35:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660098940; cv=none; d=google.com; s=arc-20160816; b=MP7TyIPboYngipYcUxPMeM7BCVvvi5iGaEGYgQT0mrtNVXMls94izQvG0+iz/ktqUW kLbZ9nKqgalj4B/ZwNTs8EMkY06zC15S5P/B39Pr7vPZrQIbmt51SoD4a20wn7L07skj vlNrStf4gzaaUZ85z2J00n0EXKiDCyyOJgXOA3DXyfUG7Y2cSp08hQZStDqn3QxsbuhK T87dD+fnuB+P0N1IidZdudchLftedFgHWzET+MoxFtYdTW1NUXpGgrkcwUM/rOI3YzXG grBYlWAQQSZkf9puMGUT82xK3mTh388gfzsoIBF3cY0MM2FOrqcZdTEZR2X2rZRetA0f O3sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:user-agent:from :references:in-reply-to:mime-version:dkim-signature; bh=jLuXr02/4FcnH6sSE/wa3hWFY34+NhWVn6axHTm9v/U=; b=QcH4mAPND+f0fuuUqAPIXWeFBiwGDf1QDt9EItxhZTsptHqy+2RqnZmg6Tq2Xzp9Bc Ngf7wh0ukDFwS0argVcntzPWdjfP3sbrE4ycj/6KnYi7K1wdCyhoj0td+DJqg0UJ5EeZ +PXRHtyDJGBJkzXOo0q8ByJDJXupo8Sn/nJhPXsf7BeIid/swN8Snu7yF5a013SXo+Yx qaKKizNRmSViUy1TduGXjJHvDSESYnmnfouznKSXm9WrLl3XxDA5prIJAQwXHKb3UqJ6 PbDi2W3FMQCKmPg2bS/USjQkYaUkuRVc8rf7ulshy922krOMXMltKsrNShG1Ptw7reH1 sggw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=SnnzWIIw; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d7-20020a056402400700b004423522863esi1549824eda.265.2022.08.09.19.35.14; Tue, 09 Aug 2022 19:35:40 -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=@chromium.org header.s=google header.b=SnnzWIIw; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229490AbiHJCKb (ORCPT + 99 others); Tue, 9 Aug 2022 22:10:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbiHJCK2 (ORCPT ); Tue, 9 Aug 2022 22:10:28 -0400 Received: from mail-ot1-x32f.google.com (mail-ot1-x32f.google.com [IPv6:2607:f8b0:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F9925D0EB for ; Tue, 9 Aug 2022 19:10:27 -0700 (PDT) Received: by mail-ot1-x32f.google.com with SMTP id j66-20020a9d17c8000000b00636b0377a8cso8754898otj.1 for ; Tue, 09 Aug 2022 19:10:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=cc:to:subject:message-id:date:user-agent:from:references :in-reply-to:mime-version:from:to:cc; bh=jLuXr02/4FcnH6sSE/wa3hWFY34+NhWVn6axHTm9v/U=; b=SnnzWIIwqEobH0Hd3ElkxWCS38PwdORjOB/7trnM5hVytyfdptItihRxhMGoPP5fqe sKhDjKnAmbLJIES5S/ksPgr1XhXVLMEs5mTFcH8A4VgLJWI3ICoZdbpVobzoT2IOXJyU LK2WAGuvO87YkEAZsMlvKsPAZ7tuRLY3R30fc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:user-agent:from:references :in-reply-to:mime-version:x-gm-message-state:from:to:cc; bh=jLuXr02/4FcnH6sSE/wa3hWFY34+NhWVn6axHTm9v/U=; b=fMt3Gb1HNzTDZ0AKerIJaNIQjCj2X4hcAIBU9VieHmTHiCCZOjf3zBcFjq2GA8FuJG vazUnBVCMRyHMeXbvz+so717Q0ZLAwkIGesOJ7+14EOlZ2wWES4nDa+7V/83F07MhFGP 5v6aS3SQelJVtT7NsPVo4aW4xhpFHL6EUQpOcrrjM2HjcAt9ex0YyUwtOs7S6VyyTvmd CPHtJmEN0U6FaunVjHxlBVLyAPGo4kQjYuX1eaVZROYyg7hTwvYbs9xVTvu7Ix6zliXf A0hnJX0j/S0GLcZmReA7+aJQGuI0J8ac0HKeT0xttAyr2PDIcBYP8uRA4ibnr/8KuxRZ 69Cw== X-Gm-Message-State: ACgBeo33+lKi+FpFkQLGRAdruYizdtq0paOo7PCxGFTyjbH2q0dvz1QM JCSHXSn4p7yuIQFN+pgZPdklKAmnn19AW57vi86azQ== X-Received: by 2002:a05:6830:34a9:b0:637:eaf:573a with SMTP id c41-20020a05683034a900b006370eaf573amr1897387otu.3.1660097426801; Tue, 09 Aug 2022 19:10:26 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 9 Aug 2022 21:10:26 -0500 MIME-Version: 1.0 In-Reply-To: <1660077890-31622-1-git-send-email-quic_khsieh@quicinc.com> References: <1660077890-31622-1-git-send-email-quic_khsieh@quicinc.com> From: Stephen Boyd User-Agent: alot/0.10 Date: Tue, 9 Aug 2022 21:10:26 -0500 Message-ID: Subject: Re: [PATCH] drm/msm/dp: check hpd_state before push idle pattern at dp_bridge_disable() To: Kuogee Hsieh , agross@kernel.org, airlied@linux.ie, bjorn.andersson@linaro.org, daniel@ffwll.ch, dianders@chromium.org, dmitry.baryshkov@linaro.org, robdclark@gmail.com, sean@poorly.run, vkoul@kernel.org Cc: quic_abhinavk@quicinc.com, quic_aravindh@quicinc.com, quic_sbillaka@quicinc.com, freedreno@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 Quoting Kuogee Hsieh (2022-08-09 13:44:50) > dp_bridge_disable() is the first step toward tearing down main link. > Its major function is to start transmitting idle pattern to replace > video stream. This patch will check hpd_state to make sure main link > is enabled before commit changes of main link's configuration to > push idle pattern out to avoid system crashing due to main link clock > is disabled while access main link registers. > > Fixes: 13ea4799a81b ("drm/msm/dp: remove extra wrappers and public functions"); Does it really fix 375a126090b9 ("drm/msm/dp: tear down main link at unplug handle immediately")? I don't see how removing extra wrappers caused us to start trying to set the idle pattern when the device was unclocked.