Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2653368pxp; Tue, 22 Mar 2022 03:19:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxP3spNvOt7mTMcsOgGb3odNrHAYGtoGEBj04qA3TlwJNmtRDJohvbGCmeAQSiYVmE/ShNd X-Received: by 2002:a17:90a:aa83:b0:1b9:7c62:61e5 with SMTP id l3-20020a17090aaa8300b001b97c6261e5mr4123554pjq.118.1647944396859; Tue, 22 Mar 2022 03:19:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1647944396; cv=pass; d=google.com; s=arc-20160816; b=NS6eC7bnoDi7xVNI3LemAI77R4EteIqL91G7o4QZ86MBPUU9uqUg2c3yUVO5RxHMsl zUJVUGy1QWlneiomHgC6A3u1EL2IVPL72nnO/me9zKA0r+z0vlWUowYsFZ6ok/+zLxZd iJQGhAsQbXgqNBoGnyME1OWNt1zpX7/VybNJjUj4Xka4P5no5KY5MK7QnzDXbfG2Hwz7 e0C8FzwLthELV0fBcHFspxP/XCozCtnWtC/7x0b19BBeaUK5hVlkWOaDqOiCryeho/2t HDFuF9UgNJJH9Lzt8VxxBrQfXkm4rHYJQUcgpd2LZ79ATyheRRi9LwXeSpb+E5YXZJ/m yfAQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=crLBeSQJBvzPeuG+/m0bDIA8bMNEexRmN6mdRRFC2dY=; b=WkBkVsrDJSTjXK3o834wUMHEiMVkUj2UrEXv1ZvLxnj3Ds1zWkrH4/QTiX77mTjXqg UCRUVqj1zCoC86pKtt0B2H4EX/Nb/uQWC6UbaodVE4e9EmNqInIVtXFzZnpIniJFJ37k zX4PtGNxogUY8MN/hUPnAwC+usPQryv72ZF7Rl+e6tqmvoUHScVtW2XZ8EGZjvN51BB4 BYBkQGDU+K0o8ez6jpH9YSbDdroUzT3af/Sa75Z9MuhiQR1OFO6Let7i1vBtcc9+FA99 bSo17uN0340SiVenJDebwI4WFu180Dt3D/eHAEjncauZk6nGkl4y9zXz1/oxkLWaIO0r /bgA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b=j7M922cu; arc=pass (i=1 spf=pass spfdomain=analogixsemi.com dkim=pass dkdomain=analogixsemi.com dmarc=pass fromdomain=analogixsemi.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=analogixsemi.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ha7-20020a17090af3c700b001bf7513fb01si1676365pjb.98.2022.03.22.03.19.44; Tue, 22 Mar 2022 03:19:56 -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=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b=j7M922cu; arc=pass (i=1 spf=pass spfdomain=analogixsemi.com dkim=pass dkdomain=analogixsemi.com dmarc=pass fromdomain=analogixsemi.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=analogixsemi.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231504AbiCVIxr (ORCPT + 99 others); Tue, 22 Mar 2022 04:53:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230196AbiCVIxp (ORCPT ); Tue, 22 Mar 2022 04:53:45 -0400 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam08on2135.outbound.protection.outlook.com [40.107.101.135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 479847DAB3 for ; Tue, 22 Mar 2022 01:52:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GOTEYLeU68yKzp7/hQAgxxIMx1WsCvNQGyIcmeTBeW3RFDwwWAXy4Jy45Y54tnpYsp1ErdHr1qOhRNW5SNaYeuwhVa1b06wMv5OeI+Bi1dBqDgUS8OK874SOwy/+8ls8N5KVkR1s1yzmOWNnGAZQFYB+6TCKVXsf4bI35oWKBU9Q850jO3i1XuIA+5+JOPU9rOZCqOYGqrLT4iLP4k4qDxp+bbeu01xov2Y15+ppWgTE9SipeyXMRveUa1ACjFOoLkUGTqmXgcQEu0w+X6qQd9L8twn7jAYrui1S9l6j7OHpi2N1I2lXDPvM83EQ/RtjwEj6rbI1hkprPx6u8uwBfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=crLBeSQJBvzPeuG+/m0bDIA8bMNEexRmN6mdRRFC2dY=; b=lnorJkES+LMH9YOJGX7zV2IpPTrHOS9742aX4hVmL2Yq4FalqIxv4Rq9HGHF4QDtwRFe95NfwysN9VizdCfGdysQdJajhhYQcCQNN0pjsa/O21vAk1LkEcgRGeI5Pdbh0hG53RyOPMhXZ/eWXsYjSrO/AyYpG533Hlm5913+aIy7gPw63iCH+BasjvsQPwUAR7QI5Pq8AvetTmpdxqlLTWKfyZ2opLfkpsF99LEbOzoyL/zeYVbsZ2vpTN7d+bKTsXqoidSQ234Or2XJjwNUcfHId8acrOW6jpxsnmmLFaSkNDPp+53CszWRFoGdZGSpXVhcI+jjqiSXA5aico6/tw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=analogixsemi.com; dmarc=pass action=none header.from=analogixsemi.com; dkim=pass header.d=analogixsemi.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Analogixsemi.onmicrosoft.com; s=selector2-Analogixsemi-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=crLBeSQJBvzPeuG+/m0bDIA8bMNEexRmN6mdRRFC2dY=; b=j7M922curM506NpDyNY/Zn1LWV+tjZQmkSP/HfxV0REvVYM5KQW/zsxbqlav0/7NxAcqWnVM6YCv4f6QHXwdsURSU8+PYc/gdRIfVTYJAZqDb9geuyFYbO9+XTOKFTk+r2f/eaAcD13jUYb6TpFTc1a267e5Db/WavtX+djnNXQ= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=analogixsemi.com; Received: from BY5PR04MB6739.namprd04.prod.outlook.com (2603:10b6:a03:229::8) by BY5PR04MB6834.namprd04.prod.outlook.com (2603:10b6:a03:22d::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5102.16; Tue, 22 Mar 2022 08:52:14 +0000 Received: from BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::a865:6d10:c4a9:1142]) by BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::a865:6d10:c4a9:1142%9]) with mapi id 15.20.5102.016; Tue, 22 Mar 2022 08:52:14 +0000 Date: Tue, 22 Mar 2022 16:52:08 +0800 From: Xin Ji To: Hsin-Yi Wang 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 Subject: Re: [PATCH v2] drm/bridge: anx7625: Set downstream sink into normal status Message-ID: <20220322085208.GA1487511@anxtwsw-Precision-3640-Tower> References: <20220322080213.1487134-1-xji@analogixsemi.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: HK2PR02CA0159.apcprd02.prod.outlook.com (2603:1096:201:1f::19) To BY5PR04MB6739.namprd04.prod.outlook.com (2603:10b6:a03:229::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: eeadc973-b38f-417f-b37e-08da0be14258 X-MS-TrafficTypeDiagnostic: BY5PR04MB6834:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 08JY6yghO53/a3QdqM6A0VL3xQuAWUewCmS9RAXha0Re5sm5WDu6+xK16NXWn0WJcWb55RYeRTMjb6ile1rnVmbpfH1h4uPk1kJKvCj24GWYei5cSNdf+ZD7IdHzZxeZ0yXtCWC2CpwiyRkHXLeitVmAvIHs/VS9Yt7AS5+PyYzw5Wy1FyZUOd37fWKRVWuUDardfFgKRHQt0dIPKGLnQnHGNAH9EdXPiUBPTu5DzlgozClctF2v+C6S6mASQSv0fJHYjHBXBMmDXBPbXa0jMIbMcr7HSfqRMHziqod3jGlg2quCgIVID9TPzTeFVEnOx5mmjDyu3btpJ3ee59UUxNEq8Zdlj2UvJWz04JqzjxBu2XVkVmbh8z5eWNDhvoMm7sR5JIxDbtqPS/NL5HWQIyL/GCqoXT202gdbyhokp2zxGYbkvblpGLH9agl9AEpPTyXdsyRu2xNmuBE/ce5JHuyvIl5crrtd9AG7+yqHlpp32Pbz9M87yeZ8MElweGQvY6xlJ/+qARYUjJg7tRfFIkYGpV+ETkMLEvfb+aa3Wqx/sRybLE4AZWe1+/l1HlZix04/PKfXOzlRFyfWLeacax7tfBoZOwSqgCqYjzGZa+HedaufF46HgCU4wYw3vr86H7N1wcVkdqxdM30Pf+2TQv1FdPN5HCwf9BTXnzYgKSiurGL8S3+peZidQ01NTNfd/+gUZC3X/fM0LFcpvKGRgg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR04MB6739.namprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(7916004)(366004)(6506007)(316002)(86362001)(6666004)(26005)(33716001)(1076003)(2906002)(186003)(9686003)(6486002)(508600001)(6512007)(83380400001)(7416002)(8676002)(66476007)(66556008)(66946007)(54906003)(6916009)(33656002)(4326008)(5660300002)(8936002)(38350700002)(38100700002)(55236004)(52116002)(53546011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?y+GkO3RFrT7Snm7OsLMe0j0nJo5RgrVfPxTSb8M42E0dgT8l/HOmhXHP5rvH?= =?us-ascii?Q?0zSd3GXL8xcDaA5pwf26TB6p7lJT+zaQXFZ6qRAZoE06Ft2PlvQxS+I21C3k?= =?us-ascii?Q?e9FD0qaDxlTFT0rw0o0E+B9kpyjRQii34/eFN6J0CECba8/qVVeSAbNW+HJO?= =?us-ascii?Q?1iaDV7+CIJoeWLlIGhNKkWKO0wQGXoKvJfxF/ybJsdcwa9KHU2z/1cW+wot/?= =?us-ascii?Q?dkyZdt0V17UIV75zj7zxUlR51FGyGygEQUDlHT1FuXUCP71k2nKMlRY/C4qP?= =?us-ascii?Q?xS8X+WZYfuTHjY9uz/WRiGmz48HzNJqcW5B77zpQh0CEO9WnFVOhG1pfbCUo?= =?us-ascii?Q?mxV0e5V3IFT+tdspxAF0nAc9ErtQca8qQ2TjDTObI+cQJqbHrWmyhgW4GGRQ?= =?us-ascii?Q?PFjL8LClc98YSBPSDV9C0Xgek6e/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Q?vwiZn+Ob5msgSoNE7LXO3doSKf9j134h8h6m8GER+Np4j1dsSHJM7+FME4Zd?= =?us-ascii?Q?mjbC7FPfXgsNyILF7iD/dYN9GcdBeNnEtvi4SqrGFywH2s+SFkSDrmfbR41K?= =?us-ascii?Q?KI8OAk5mcqopKVOHFIGv1hIxBj/6vaFy?= X-OriginatorOrg: analogixsemi.com X-MS-Exchange-CrossTenant-Network-Message-Id: eeadc973-b38f-417f-b37e-08da0be14258 X-MS-Exchange-CrossTenant-AuthSource: BY5PR04MB6739.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Mar 2022 08:52:13.7033 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b099b0b4-f26c-4cf5-9a0f-d5be9acab205 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: KFUqaUuEboQDdvUwW+REFkX9Zfk3jAU0MoQt0A0y7/uSUX70pZoblQ6dY38G8uLDSNfKruFIcZS6QfvPvMDOwg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR04MB6834 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 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. Thanks, Xin > > > /* Disable HDCP */ > > anx7625_write_and(ctx, ctx->i2c.rx_p1_client, 0xee, 0x9f); > > > > -- > > 2.25.1 > >