Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2649769pxp; Tue, 22 Mar 2022 03:14:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/1nxpDFdQH3mXuwMfKH9jWesh2StNSQOB0gCCp/yU/KJ8/zFVs1pz8MuENm6Q9r9T9hbg X-Received: by 2002:a17:907:1c0e:b0:6df:d10f:9eae with SMTP id nc14-20020a1709071c0e00b006dfd10f9eaemr15954443ejc.592.1647944043114; Tue, 22 Mar 2022 03:14:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647944043; cv=none; d=google.com; s=arc-20160816; b=vCXSeXM/pxsNAsdY7t2RAIESRjjEiv/f0XYcCLPEOs3k8aX7tTSTuuwOl04N1HVMGW 1r7L18wSMqrR1Cnsbd+EtkGKzUDL9/XVBlUEXVhCBJmaRYZ3hzRX3Wz9dhx9sqyJQlvg 65ls3j8xIIx6tuDx9l02QwJYPQc+RLSwfPW2Y08f7XzItzQQn0QKCumKMN0tqRZT+ulh iUrY23LHKDNckZSX30+jTT0ovXZVskJxvXDY6hblCwgZ9Rtyt20Jt55Rx6ofCTPWIkJl 2ml7K12UWYPB7JjeyuNfWYqV0Sh6oljgPT2gzUlTidj5H44Y5SoX0jOS0nxTQz0ss3Rq nIdQ== 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=zq9OA5jF5EJtQjULWMX9R5+C3ktkDDoBC5HCaRF17Gs=; b=aV+50PEbMQZxb+ILZmbP25fkCv7FF+Xqda6tvkcLPHdRl6tQ7gXIl3RhBm8S80vC/n nrZ6QVk+Ybu9Yo35UloTgWKz3d1j2cNhy+o9kBVPqyLqgGVJ1Wv3MvpK+fA76TW1hRCd Xs5oN8fnGpkznqLxZPBDdYSSN0lIeIZrlGhyatmiYlnJO4unXYCIvXv3IZQaVnHon+ac Bh8DvqaC/VQ9SP2WLhTDEZPAloS7NFfpjct0dsn9M88lBkRFL20RK+uRQyFUWXOGdXnN 4Uibpz82WqfxLV/YOAELOf8Am8yfoEfLiJzQAOcw88xik89F7hXlhGgERkNG9/CXmLSf y11g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ZAwLHC2i; 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 v15-20020a50954f000000b00418d80a5fb9si11058407eda.358.2022.03.22.03.13.20; Tue, 22 Mar 2022 03:14:03 -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=ZAwLHC2i; 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 S231908AbiCVIxx (ORCPT + 99 others); Tue, 22 Mar 2022 04:53:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230196AbiCVIxu (ORCPT ); Tue, 22 Mar 2022 04:53:50 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B67777DAB3 for ; Tue, 22 Mar 2022 01:52:20 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id u16so22897376wru.4 for ; Tue, 22 Mar 2022 01:52:20 -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=zq9OA5jF5EJtQjULWMX9R5+C3ktkDDoBC5HCaRF17Gs=; b=ZAwLHC2i/rp8MSAK1bkjmZORoPzVnPazmnmRTI7SU0/1hUZ5x3fpsHVORP9yIDbV3O 2FdRphnHZbkiMQEQUB39g8nD8ZdD+GHdXP81Tuzvoh8lvwQ5k8qYPZHRzQNTsNzVr+tw EjKskTOkkyW7aXZWDH0YIk5+RIkwIiPtvf59Q= 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=zq9OA5jF5EJtQjULWMX9R5+C3ktkDDoBC5HCaRF17Gs=; b=gIXt+hSG+f3Aq6cWQmLBwhz13clNIlZ8p/ea+MAX5jGY/SJ9X3GzhZCkOG1yJRzaMx VPvR9aHXByZkvbks0NvlTOPu+rTeO1XmNn0dZgBgclzaf+ZsTDSoWbu5fswGgQmjDK32 mKMLSajGxofDZJARX9mWdxwA1VlpWCO5ia9qe3er7IC0cDNghCvYoXiFsYV6gU/lo2Y8 EYt6JkAFZGoA4wVH3dzkX2qT/ELxCcyKtLdXjyvGyCpgTuUyja34l3dMzUfu6ivRz/NB fSNdXUsZXoERzQniRoMtQ5viJYltmdMfMb6O7Vtq86NcAEXEY2kVH+Rl1VLR0cj1//G3 J4dg== X-Gm-Message-State: AOAM533y3B0KSQ8nspZKDN+ujsW/1zjUq7JXY5PYKKYrCbM+WWqLO4N0 JJ/ntiQaadotYWbRhwsUbM/sA3G5gQgXyTLejScPIA== X-Received: by 2002:adf:eb81:0:b0:1e3:2bf5:132 with SMTP id t1-20020adfeb81000000b001e32bf50132mr21256230wrn.246.1647939139335; Tue, 22 Mar 2022 01:52:19 -0700 (PDT) MIME-Version: 1.0 References: <20220322080213.1487134-1-xji@analogixsemi.com> In-Reply-To: From: Pin-yen Lin Date: Tue, 22 Mar 2022 16:52:08 +0800 Message-ID: Subject: Re: [PATCH v2] drm/bridge: anx7625: Set downstream sink into normal status To: Hsin-Yi Wang Cc: Xin Ji , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , bliang@analogixsemi.com, qwen@analogixsemi.com, 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 The DRM_DEV_* macros have been deprecated: https://www.kernel.org/doc/html/latest/gpu/drm-internals.html#c.DRM_DEV_DEBUG_DRIVER On Tue, Mar 22, 2022 at 4:43 PM Hsin-Yi Wang wrote: > > 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 > >