Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2657073pxp; Tue, 22 Mar 2022 03:26:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwE+U5G5Ky0+pipJ9nq6gGPk4UYOD7kK1WCatHEqW5jywItH5a2BUkpd8JoT+ZVTqJc1kvl X-Received: by 2002:a17:902:c408:b0:154:4bee:c418 with SMTP id k8-20020a170902c40800b001544beec418mr11249177plk.75.1647944772349; Tue, 22 Mar 2022 03:26:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647944772; cv=none; d=google.com; s=arc-20160816; b=vZ9NUpHDh2fwmQqxHM5++MOvx0vHrEXkg53os6jMVYNiGHdXnrJqM0ALVs3VXAfJrB JNU/Xrhi5onEKnRY2PLux0gqfjgqJtYKTN6i66zGQY1eEvqYQPHLpxvo91drMGLMyMK7 xZh4Rctgx0BgT+kygjG2tFNbPkDfsrPz8teUCkem5lbEDsSea/qY+3cpCY2VJbXVEN3g kUI/4G26C0iDY61awDLOehjC2GQeQWlEffb+VuAXzgnHhuMnAc4/Kb6qzejaVzdGLuol Px67FHkXncnaG2uaqV5GYZKJjENojhQjqmnCk97KdI1SDR+0+1VTLolxSLbpOQpXuoHJ IErw== 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:from:in-reply-to :references:mime-version:dkim-signature; bh=kSE12avE5FpxzB4ihxmwpNNroKbegiLE8Kcfh7pXhI0=; b=VvK+R3bSBqX3P2xfNI7V8U2CqlPdpfPqpTWMrSiNIusIv8HSKS+xfWUFluNVTmSenP rcF466LQ3C463YVsArB6tXW/CEevDj7bjJnv6FWMB6DXuhLE5eIHgIlTspjXFQyeJ3ti XAa1xdJ1lOLU82KtpUPzxinA/oZlDmZ6YbmBluXWdTPbdwMJdEg73liCKWT6A3HlsTYY Ats326uPsL3JIPtmxmFcWezsA+HYzo9nsvYlkgZramTC5jVMvFFVSRlkNSxRg9H1wOV6 3EQIXpf9fDgUt9oKssPEpZXpM0r0Mwg0WOWkUYIDdOvreeCdPBV2Au8CWLNPzKWGSB+E lDbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=CAMeB2ST; 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 na10-20020a17090b4c0a00b001bf020c5dafsi2248737pjb.32.2022.03.22.03.25.37; Tue, 22 Mar 2022 03:26:12 -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=CAMeB2ST; 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 S231608AbiCVIpT (ORCPT + 99 others); Tue, 22 Mar 2022 04:45:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231597AbiCVIpQ (ORCPT ); Tue, 22 Mar 2022 04:45:16 -0400 Received: from mail-vs1-xe2e.google.com (mail-vs1-xe2e.google.com [IPv6:2607:f8b0:4864:20::e2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EBB732A for ; Tue, 22 Mar 2022 01:43:48 -0700 (PDT) Received: by mail-vs1-xe2e.google.com with SMTP id v206so2229137vsv.2 for ; Tue, 22 Mar 2022 01:43:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kSE12avE5FpxzB4ihxmwpNNroKbegiLE8Kcfh7pXhI0=; b=CAMeB2ST43DRf4It75FcHrj3pWVjgoU+rJAtfYkUjxAvWDIpFOdbszM+63cPIONVn3 adssPgQVp/yN3XlQlAQ2bDLMCVTyMwrCaRwgu4TQ7YM2nKLW7GIdBB0zb2Yz3eLDBXwX /DRW1X7gPkDqfs7/iFO6K4ODSuOzUc58+C/g0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kSE12avE5FpxzB4ihxmwpNNroKbegiLE8Kcfh7pXhI0=; b=lBUVIZBNfz1Mom5hQuXfpANYfYzAYS/LN5zs+rivVyF3se1m6b2nWaEGsTggbEGJAm gy8VnRAbtcwZkHzGJMd8BpK2Lz91lphcIzV4A0Geimkbw9zgfFqiDYfVnq8Y3GaRvclU uPSo3EquUc9tga3zGk/pRX9J3RubIJH5xkkLspK/TU8Y+3yjhBifFLY82uUvKQQOeBJK p9labZ79Up74ue2qBQ0y8LJlM1FZrWKEMiKHAs4ADhjJ+WPurs37ZhSIuEVJZ0ad1Ioc Krd92NkUpiv/CVXiZFraE2JDPQYmCgWZI0byIKA4AgKX8E4YYK0fk9J2qGO0KnKwEZnS LwCw== X-Gm-Message-State: AOAM533xmwUaR9tmNp1OX0X77Mfbc5BNxuLfc6+xHfblQ92yO9OoefxK 1QHGbOzFK4f9GbHJO+wabWLRSeu8Ids+dtAUseRn1Q== X-Received: by 2002:a05:6102:ed5:b0:322:ba55:d279 with SMTP id m21-20020a0561020ed500b00322ba55d279mr8412347vst.77.1647938627194; Tue, 22 Mar 2022 01:43:47 -0700 (PDT) MIME-Version: 1.0 References: <20220322080213.1487134-1-xji@analogixsemi.com> In-Reply-To: <20220322080213.1487134-1-xji@analogixsemi.com> From: Hsin-Yi Wang Date: Tue, 22 Mar 2022 16:43:20 +0800 Message-ID: Subject: Re: [PATCH v2] drm/bridge: anx7625: Set downstream sink into normal status To: Xin Ji Cc: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , bliang@analogixsemi.com, qwen@analogixsemi.com, treapking@chromium.org, pihsun@chromium.org, tzungbi@google.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.9 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 On Tue, Mar 22, 2022 at 4:02 PM Xin Ji wrote: > > As downstream sink was set into standby mode while bridge disabled, > this patch used for setting downstream sink into normal status > while enable bridge. > > Signed-off-by: Xin Ji > Reviewed-by: Pin-Yen Lin > > --- > V1 -> V2: use dev_dbg replace of dev_info > --- > drivers/gpu/drm/bridge/analogix/anx7625.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c b/drivers/gpu/drm/bridge/analogix/anx7625.c > index 9a2a19ad4202..dcf3275a00fe 100644 > --- a/drivers/gpu/drm/bridge/analogix/anx7625.c > +++ b/drivers/gpu/drm/bridge/analogix/anx7625.c > @@ -924,12 +924,20 @@ static void anx7625_dp_start(struct anx7625_data *ctx) > { > int ret; > struct device *dev = &ctx->client->dev; > + u8 data; > > if (!ctx->display_timing_valid) { > DRM_DEV_ERROR(dev, "mipi not set display timing yet.\n"); > return; > } > > + dev_dbg(dev, "set downstream sink into normal\n"); > + /* Downstream sink enter into normal mode */ > + data = 1; > + ret = anx7625_aux_trans(ctx, DP_AUX_NATIVE_WRITE, 0x000600, 1, &data); > + if (ret < 0) > + dev_err(dev, "IO error : set sink into normal mode fail\n"); > + The driver uses DRM_DEV_* for logs. Can we use this? > /* Disable HDCP */ > anx7625_write_and(ctx, ctx->i2c.rx_p1_client, 0xee, 0x9f); > > -- > 2.25.1 >