From patchwork Wed Oct 19 08:27:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 5046 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp247444wrs; Wed, 19 Oct 2022 03:40:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6OhOd3ooQ7RiiNAYRE12HxceFS5bTMZAe0HaVHccxoRmmw+ViyTErOiPp57rZ+LIUwKLSX X-Received: by 2002:a05:6402:2d8:b0:458:c152:67bd with SMTP id b24-20020a05640202d800b00458c15267bdmr6779200edx.308.1666176048922; Wed, 19 Oct 2022 03:40:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666176048; cv=none; d=google.com; s=arc-20160816; b=1JrQjxt9lvw2s5aFN3+dv71l7rkE2ONirEbzr0gFzVQWicLVlygSMFEZgwLs1u5LDs eHGgsKiGHD3weZWfJjRv0UFuW+W7bGtpgaFFSfhAm7i4NgSQTZJiYqfFydXHqvp8ItQl KrvfqINcqlfCFp88aWWKR6a9/QSPU2YH9BX682E+/ehdK42GWjt2BU60/QPpBlUtGRP/ 4W7CVq0ajB93qL1af9U3lFDMS0r77uAfV8KjnO9HWzsMn6jKxOCpK4hr5iwjCE/xKrun JCVMwr9BbTLgiZghsqJ85XWOFDnNV5ttRbWQJSfLoTgaMrqh/KdIvFAKZ6G8sX4Yfr9M xgLw== 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=gBB51RxdHPkWmi18S67uMMI6KjIJcsvtyj3xxpir/YUrB0R8DlzKZiYS2AjDP/GoPU h8Rkyk+Jtx8m5732MlbHUZdrUuv79peWw3W5arbn8t3wvpaUyzVKdO0Q3nDGzJM2pIWv MmqokhgJr4yuaUxYOHY+7X8QA3hdSZ/QBM5lVL9Otn8rRKQqCtoTu+LoPxD1RhspG4V+ D/nKyWNXbDV+QZw+CcXdN2+ZEescE7v7MNwY7mn1fenEuhEDK+6XrrqFn5spxahQtC2h WmPOkTQY0BQqLoyizZRBYyrSPRrq/bfkRzE/+sUlF6wM9ZVT3wfaJfTPLGCvrn76YGLa CknQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="m0Cap/cR"; 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 g8-20020a056402090800b0045c7611d8ddsi15850939edz.179.2022.10.19.03.40.22; Wed, 19 Oct 2022 03:40:48 -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="m0Cap/cR"; 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 S231520AbiJSKjm (ORCPT + 99 others); Wed, 19 Oct 2022 06:39:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232079AbiJSKiz (ORCPT ); Wed, 19 Oct 2022 06:38:55 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BDE8156264; Wed, 19 Oct 2022 03:18:03 -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 ams.source.kernel.org (Postfix) with ESMTPS id A65D3B823A2; Wed, 19 Oct 2022 08:53:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09C92C433D6; Wed, 19 Oct 2022 08:53:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666169635; bh=phSnUqnY7Kv4or2QaTwjWCnYha4ABTmtG8iuKHhbVc4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m0Cap/cRl7UFypbqz0lJu+ekgouYE7mUPpff2b0dt5OI9wqg3zS15OiKKJem0qclr DChIMB793OTQKVbSxUazac3l4uPZDM5bg4mK42o8SoxAVzI0rMAPHdKrJ4a8Xz6U2Q 2jkR0VcNPlifScje8zynrbFuna+UcDNGYF94rqxE= 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 6.0 351/862] drm/bridge: it6505: Power on downstream device in .atomic_enable Date: Wed, 19 Oct 2022 10:27:18 +0200 Message-Id: <20221019083305.554417900@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221019083249.951566199@linuxfoundation.org> References: <20221019083249.951566199@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.4 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?1747112216458849625?= X-GMAIL-MSGID: =?utf-8?q?1747112216458849625?= 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);