Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2649993pxp; Tue, 22 Mar 2022 03:14:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqg2DRbVGgZ6UUroRb1d0POOnBGui2VFLLdNbglQZ/JGKzZamE1yYLScyeneYgbKrRiKDv X-Received: by 2002:a17:907:6d8f:b0:6e0:1512:913b with SMTP id sb15-20020a1709076d8f00b006e01512913bmr7965867ejc.491.1647944064018; Tue, 22 Mar 2022 03:14:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647944064; cv=none; d=google.com; s=arc-20160816; b=z2SC59tWNHTCBYsvyXf71Q2uMO5CxT1R2xq0NdEAT4NyMkDqWzC0cFXrxD+LvrejQH wU0T+qrikkgMypvF/ZFPAgrZmJBC4Z980zENEKVekBW5Ltxb23JoYHxyuM10J6oV8FRV /ShhDYyg9t0b0QJ4CowjR3opmYlXUAWwT1XDuGJ6iC6+8TkFzc+ziy6eMT9TWGAWtVvW plx/8PsdbM46NUhBFDQK+9bT2t5LieQ6Hfmn1CX1NYHquMQT8yzoyiZCXgEHBli74f+p d9uqfNeYpHh2Q4mTojV1Z6hHBlZb+RVxqealijm7R9aI2ElfGh8hquy4wlPDzvsJ8xn1 EI6A== 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=qBo572xYxqKTaI7lpxz6okPw5Dq0guno4lBVKRNZQ/A=; b=H7UgipSvAdoBHy2r6A1Y44+rdGLtk9u4or+kd9QOaHLwVSVwbSWC+zEA4f7l3al+By MSUCRkaKrs5P4UGBllzUe//q8HAQgZ9P8zoy7FhWQvpgJgAMFVGyiLbS8ZGue+Z6Ud87 hsnhsK+QhAN/Q5ns2LCcNHI8ytjIydjYmk2TmbDprsHJfNQCt6a8eMoEXyowiEHZ+rO8 b2sHORAjGMelvD3jtOwKZg40RFcwPe5PAbGk5UXmqdEke7FZCsHBqF0OrplwiDrLJwKa Bc2xqjkDiSWymfsU/u2+Sh7pIeW9spnaf3BfI6cQxIfhr821iWZ2Z3GEPakyScSYuB8d HjJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=WWB8emCt; 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 f9-20020a1709063f4900b006df87d6083asi9737695ejj.376.2022.03.22.03.13.43; Tue, 22 Mar 2022 03:14:24 -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=WWB8emCt; 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 S232419AbiCVJS1 (ORCPT + 99 others); Tue, 22 Mar 2022 05:18:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232406AbiCVJSZ (ORCPT ); Tue, 22 Mar 2022 05:18:25 -0400 Received: from mail-yw1-x1136.google.com (mail-yw1-x1136.google.com [IPv6:2607:f8b0:4864:20::1136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8687929CA2 for ; Tue, 22 Mar 2022 02:16:55 -0700 (PDT) Received: by mail-yw1-x1136.google.com with SMTP id 00721157ae682-2d07ae0b1c0so183212027b3.2 for ; Tue, 22 Mar 2022 02:16:55 -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=qBo572xYxqKTaI7lpxz6okPw5Dq0guno4lBVKRNZQ/A=; b=WWB8emCtss3irAeHLhh34BqngG7N6Em0pESEW5mZSmaLFmMVCjPSTEdYvW0PPGByYQ CWymPaVG1aWq+YgWMqMq92aGTNcile6wp/e1UG5RMywSvkHh/zJoT1q1mQObt6KRR1Um eMCEEeKoqbE9hyhq07qhHR3fabTcqjWmo1Fs4= 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=qBo572xYxqKTaI7lpxz6okPw5Dq0guno4lBVKRNZQ/A=; b=VCjMNWAWLm19AadctJ+/egIrf5/wCjnnncFrh5XfBfwYx/kNGobL9bgd2GlcSx8rvK 23R5VRe6zwki+5I6MlkZLpkRH8mLFhvRXSUoyOj+Qch9qfmBRy/VJIHtIoVFCC1+aTnW aF1lNgcXiX2DDKYMGS2vFch/jlQgXVg9CV28gC88t5yxG76NSUjzYo9kHGiMllPpp1UJ rD76Wjolvq6aFVOTF3WR5rYquYOlsUNF2VHWzxvhnbEY1zsZ0TghHk/llQ0Sduh1RhTN 7rb/AhLBHy5JaVhDH/V9Rf3HOJaM335lRaZWaobt6kWQUEgKNhu1J7q3QYhZafusDOTD 7pxQ== X-Gm-Message-State: AOAM533DUkc3i+PdTjwZED/7MjwXzB5w7D1PrxRKdsQVzvB5RKPeNSlp 7KeSml4uSyoB3o9inFHmaZWsoA0kfgYu5auAUyNEMA== X-Received: by 2002:a81:be05:0:b0:2e5:6c26:59fb with SMTP id i5-20020a81be05000000b002e56c2659fbmr28941957ywn.94.1647940614769; Tue, 22 Mar 2022 02:16:54 -0700 (PDT) MIME-Version: 1.0 References: <20220322080213.1487134-1-xji@analogixsemi.com> <20220322085208.GA1487511@anxtwsw-Precision-3640-Tower> In-Reply-To: <20220322085208.GA1487511@anxtwsw-Precision-3640-Tower> From: Chen-Yu Tsai Date: Tue, 22 Mar 2022 17:16:43 +0800 Message-ID: Subject: Re: [PATCH v2] drm/bridge: anx7625: Set downstream sink into normal status To: Xin Ji Cc: Hsin-Yi Wang , dri-devel@lists.freedesktop.org, Jonas Karlman , David Airlie , Robert Foss , qwen@analogixsemi.com, Neil Armstrong , linux-kernel@vger.kernel.org, Jernej Skrabec , treapking@chromium.org, pihsun@chromium.org, Laurent Pinchart , Andrzej Hajda , tzungbi@google.com, bliang@analogixsemi.com 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:52 PM Xin Ji wrote: > > On Tue, Mar 22, 2022 at 04:43:20PM +0800, 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? > Hi Hsin-Yi, as comment in drm/drm_print.h: > "NOTE: this is deprecated in favor of drm_dbg". DRM bridge driver not > use DRM_DEV_* any more. I'll send a patch to replace all of DRM_DEV_* > later. drm_dbg is better than dev_dbg though. With the former, you still get the option to control it with the drm.debug module parameter, unlike the latter which normally gets compiled out. Please use drm_dbg*. ChenYu > Thanks, > Xin > > > > > /* Disable HDCP */ > > > anx7625_write_and(ctx, ctx->i2c.rx_p1_client, 0xee, 0x9f); > > > > > > -- > > > 2.25.1 > > >