From patchwork Sat Oct 22 07:22:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 7406 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp1097340wrr; Sat, 22 Oct 2022 01:07:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5IN4r01xt7HJLA9s1Dg5F3ytbxmsy7r2w3aajryr58cOBOABPqRCCWVERWfn4XvAGs9jgc X-Received: by 2002:aa7:88c4:0:b0:563:9fe9:5da9 with SMTP id k4-20020aa788c4000000b005639fe95da9mr23189023pff.41.1666426047275; Sat, 22 Oct 2022 01:07:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666426047; cv=none; d=google.com; s=arc-20160816; b=pq+8Icqq41EQjb/+k/xua6xm4ikW4V40lZV/GXRrB7vxUkQxmjTpnJTVo57Hz1Cc2Q ZF+dL60Tu4bOGNMjOGzpR3XEelBfQIp6CSPAOF4tAzJAdvgbZWwms2b+Jlu9LHKSV87V ejcx3rFQ0v4YBd5DvGNQk/+7IpXlGzJz1hW7u3iBsZXCb7hyyAlRHNa+ng11eywKPSiS XWzbMFWOlajEHOdjSSoi9+wL8kALtZpdcub3wMNrAgLjiiTPmY8iqPidzREpLgwJISEV txmy0boaYfHDLeKjpYxl6dVoHbq9rpzdLWK2l0Gn6N3VKAYclPzYyb1AODlOhvEpblQg ZYtA== 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=Ko9cPGMesre6Lm8lyZdkvZ3XiHviKS2Au2xKN1iwn7c=; b=i/JyTG3K1JAskOSpGGGrnXhvMgjRjN4xDBWIGFKfmQQ0lJc70HSx7EN3Tb+mtiRN8Q o4XeiM1R5Q+PdCAgHGtap7q0QqO93wM3liRnc34Az7kE5wqdpEBcVcmoQDbHo7XMlg1P jiNKAJnPnQuTroJ4IadbQG9R94FGt1dMStT6CX06fSSt+WaY2kNDVVL7+BQ+RhAPPcEX gSWIZgwt4mv4sKx6RKf0h66Thi/cEuepFA7N1Ay+yC8z+xMGSOhtuWggXrJMK2lqc5C6 F5iEC80fVBzmtA8AwePW4qqxh+jIV8zTDu604VFFaIkTYj7NYTq5YzifD8w85epLlGb/ nxIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rleCEOgD; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q145-20020a632a97000000b00460b3aecba3si27878521pgq.542.2022.10.22.01.07.14; Sat, 22 Oct 2022 01:07:27 -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=rleCEOgD; 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 S232793AbiJVIGs (ORCPT + 99 others); Sat, 22 Oct 2022 04:06:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232937AbiJVIAY (ORCPT ); Sat, 22 Oct 2022 04:00:24 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 876332670E7; Sat, 22 Oct 2022 00:50:39 -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 dfw.source.kernel.org (Postfix) with ESMTPS id B95276092A; Sat, 22 Oct 2022 07:48:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98645C433C1; Sat, 22 Oct 2022 07:48:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666424928; bh=phSnUqnY7Kv4or2QaTwjWCnYha4ABTmtG8iuKHhbVc4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rleCEOgD592SzoCgauYcseqt2AX0DcYo0TWJ61G2jm+n6S7tAcdO3foLjLMhZu2Du IqyFII2/WID2jootnTYPlrVDOgo/f2JRPg41dWMiLDzbek/uoqooJbbYsXGKB+Q7Lj En8I2etcMLmQ6YKG7avpxIo4gifTjJ2ETz2bZnuE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Pin-Yen Lin , Allen Chen , Robert Foss , Sasha Levin Subject: [PATCH 5.19 299/717] drm/bridge: it6505: Power on downstream device in .atomic_enable Date: Sat, 22 Oct 2022 09:22:58 +0200 Message-Id: <20221022072505.851111038@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221022072415.034382448@linuxfoundation.org> References: <20221022072415.034382448@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.3 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747374358731099771?= X-GMAIL-MSGID: =?utf-8?q?1747374358731099771?= From: Pin-Yen Lin [ Upstream commit fbc1fdaa8338ec4ebd862d918a0ce3e12033e8a3 ] Send DPCD DP_SET_POWER_D0 command to the monitor in .atomic_enable callback. Without this command, some monitors won't show up again after changing the resolution. Fixes: 46ca7da7f1e8 ("drm/bridge: it6505: Send DPCD SET_POWER to downstream") Signed-off-by: Pin-Yen Lin Reviewed-by: Allen Chen Fixes: 46ca7da7f1e8 ("drm/bridge: it6505: Send DPCD SET_POWER to downstream") Signed-off-by: Robert Foss Link: https://patchwork.freedesktop.org/patch/msgid/20220714173715.v2.1.I85af54e9ceda74ec69f661852825845f983fc343@changeid Signed-off-by: Sasha Levin --- drivers/gpu/drm/bridge/ite-it6505.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/bridge/ite-it6505.c b/drivers/gpu/drm/bridge/ite-it6505.c index 4b673c4792d7..e5626035f311 100644 --- a/drivers/gpu/drm/bridge/ite-it6505.c +++ b/drivers/gpu/drm/bridge/ite-it6505.c @@ -2945,6 +2945,9 @@ static void it6505_bridge_atomic_enable(struct drm_bridge *bridge, if (ret) dev_err(dev, "Failed to setup AVI infoframe: %d", ret); + it6505_drm_dp_link_set_power(&it6505->aux, &it6505->link, + DP_SET_POWER_D0); + it6505_update_video_parameter(it6505, mode); ret = it6505_send_video_infoframe(it6505, &frame);