Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2580534pxp; Tue, 22 Mar 2022 01:20:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhLe7plLGvQmy43t9vghH/YTo6i9modQGCarLANEZKpoY54gtSMHqSbSTkrMMMRz417aGe X-Received: by 2002:a05:6a00:16d0:b0:4f6:f4b2:b1ca with SMTP id l16-20020a056a0016d000b004f6f4b2b1camr27494372pfc.46.1647937208233; Tue, 22 Mar 2022 01:20:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1647937208; cv=pass; d=google.com; s=arc-20160816; b=xSf3nFnZEW9x5lmyES84VzH5p9X0JLfB79n4rhYYlb1G82J92TtHQ7J13TDHTSwNUq nkgqiDaVfrPv6dc8i7jvLfhttH1d0W//HVPwV+4eJpkxhiSN+5Ce+bk6764pLJbfOGzJ S4/uqyanVxa0Ucypo5+8fjDZ/gJzIBTdTu7t9D7rtv7Z0Fs0SoRyA+3mAvi8qneFIIP9 mKvFt0qNl6FYZIevEju7qQboAzxH9r/4GYMYYIo3vmo5CFeFHVcU3L4BQbenhoXy2B62 pdEIVPnlIzXc/pwTHd3dqHeym4bSP3ZEzJpjQMMoVQwFUakQ/0XKMI3SfZcEtA/zZ/+I cjrg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=D2oA1+qp+tRRGIfs5G4Mf54Q58uF3cKWrP/uiYASqz8=; b=vKcq6xGunR7Blrb54XM6BAq3hHmuXfdNBmhvqs+i7h1QTq9z3md6g8koLqaNjNbWgS qtVfj47rvzSTRxH8UD2CyQzEZRolNZBgYXSNsGrHInozXBVC2Xi2j0n5j5tIWk2e18DE FtaPPLLxSkiXRunHDC/eNlVgHbSV2n3DWj/9DWdyxiF844kmFzco0vJLUqzBNtsWwKnA HBV5eaQlpvoQVqkd9VpISmArnZ5SufNocP9ZYEEnFG8CxaQVwMfUtsp1zRK0+4OWuIvk 0g62qRKJMRheNrc1EHYjwQa9WJ/bHUv6JBC9nrPYgn6wPkR0B2Xj2H6MFOv2AmJC020U a2Qg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b=bpzhoNN5; 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 h11-20020a170902eecb00b00153b2d165cfsi11319211plb.471.2022.03.22.01.19.56; Tue, 22 Mar 2022 01:20:08 -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=bpzhoNN5; 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 S229571AbiCVIEG (ORCPT + 99 others); Tue, 22 Mar 2022 04:04:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbiCVIEF (ORCPT ); Tue, 22 Mar 2022 04:04:05 -0400 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2123.outbound.protection.outlook.com [40.107.220.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DF372AE0B for ; Tue, 22 Mar 2022 01:02:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ewUGWayJ5RLkZILeLyBRiD9iyJmshOxEqNBdEj61YoRX49LjtOqhzSXe7e9QlRNammQ01Y9e8Wr1m1KISSgm/VpIyhQ4feKxTTcuqU90wjQVqCvBmBd4rDMPGVuVJHeu2GlXQ8Q2lUZDM6y97wsijRMCY3ioDiYhg7a5AnQN0udXFQKNdXMi5W7Hs7+RSLbLVd8/6thbdoJ9s8tVUD+KFw2GqalX8Kv2/qL5biLPT6I+Aenc6+hERooJLMAWEfqjHAH96HsQ4Gt6e36KyWGDbQ4dAAX84tQYgp9s6pUgHHTMcCQD8JMJpdA27/5WKXDdS5ofKK1zXCVXvmpGLEJaYw== 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=D2oA1+qp+tRRGIfs5G4Mf54Q58uF3cKWrP/uiYASqz8=; b=lmUtwcHX16IWN36yo9fU0Q/ojdrrWTH+0I3dZEr89KHY430XHW9lqcuLbh5TZgV7SpZdXpwrsTVBxDTwbDQw0pJZU+BXxK0iujX4TTLa/B8Y7M8VeRj+kfRrRAcbKFoQN6l2yjyxZ5j8G0gUg/waI+CsBcT33p+IZ5g63SJgrri8/QdJrtFBXPRS3s4PGGpyxDTrBAc/WGJf67ooSDtXVfFkDqMrIBmjtapcxRUOICSpLFgLeNHVIzfmRknjJ2PJoja8VjDafwmFl3h8+mUapIpT9dKtG7qCpxDMpI0qlhs998lYqLTaBOy4ELK2oaXBmZ1GOrg4y47PJat1mjJeuA== 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=D2oA1+qp+tRRGIfs5G4Mf54Q58uF3cKWrP/uiYASqz8=; b=bpzhoNN5dln/cfZvVoHGqNR6PvZh2pyPPtkgflNV8Xqv/UpqUXE25PXolrvlJzovCVt0J8xlQ8vMKXXE3b7gb/gTKpVprv5vIFfuoNe9yFAxjawFRhPcDQ9pl2ALpO4azZENvxD4HVw7KSraBdO9JRKAocIcZOsAOTaUzqs0/9I= 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 MN2PR04MB6351.namprd04.prod.outlook.com (2603:10b6:208:1a3::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5081.15; Tue, 22 Mar 2022 08:02:37 +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:02:37 +0000 From: Xin Ji To: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter Cc: bliang@analogixsemi.com, qwen@analogixsemi.com, treapking@chromium.org, pihsun@chromium.org, tzungbi@google.com, hsinyi@chromium.org, Xin Ji , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] drm/bridge: anx7625: Set downstream sink into normal status Date: Tue, 22 Mar 2022 16:02:12 +0800 Message-Id: <20220322080213.1487134-1-xji@analogixsemi.com> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: HK0PR03CA0111.apcprd03.prod.outlook.com (2603:1096:203:b0::27) 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: 083ccef6-513a-414b-120a-08da0bda5461 X-MS-TrafficTypeDiagnostic: MN2PR04MB6351: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: /EDf+702vw2vPxBNE/Fbyi9M69mCreKVRGnMO77Gcfq2nUKEuAR4XMsK10JjvT8IqoP4AQFr6DzsSTofvBxfo57+vbP0qhRhZwcGcF3uCrfYaEE61jBCcWPW3PU7TNvH7ij2DEdt55aimYzfE4Fyf5YKIBYOLsztogAVYn93IXolV38VtIH3aPUpeJOPoF40MdDRDDAGArWwqmbqDzn5QHWNPH40MOehFrcz2rzK5m9VpauGdX1raWzqwl10w9spmW1mIb1a+QEX4neA9IFQ1oz3yKpWcdxxLI7Az2SXAB5WUycWLYsnw6Ue5qTra/d3lA1vCFONJXEirGo/ulYxAwlOWLRMw9S3ETZFxD+Swlt5nMRN4MoUKbwuW7zdyIBqOrAtO7292ckjlNQqdcNaeol9L4VF005qADG0AXlhJcWjyPV4Mj7q+Rta9nE3SkDjcUTwixjrE3eA8puWXeQ3htLNtQ+csWP5DdUWAlZWdCEBaNOnckWjTwVjw3MPTwFhnvzKiU+M+U+yrR7J2DISOEQ/QNMOk2PGbT/yVMYFgGyID0NzlvG0MFKcasFeuLXR9A4LiX8IasQGKt+CjyPQSVigl1d6Cep374kZ3oDlt8XMcguKiMQYutTNDV8F+3PxYi5619iW30S4FCBsQdcLl/dmC6IM17SqSa+MppaROCh9LLUkoHOcsSS6vqfUDmIJxo9eZtLLay6HYLWBZgKH7Q== 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)(366004)(186003)(26005)(83380400001)(86362001)(6506007)(66946007)(6666004)(110136005)(66476007)(316002)(6486002)(38100700002)(5660300002)(38350700002)(2616005)(7416002)(8936002)(4326008)(2906002)(8676002)(6512007)(55236004)(36756003)(66556008)(52116002)(1076003)(508600001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?kiKNyGQiLVBS20ua7zWBFY5q8jANew9GFnj+69PpDzJb2QFgsSk2GtaS6Lrs?= =?us-ascii?Q?CIXZ/fVz3YsA1tkktf/LfUaLcSU8rv4BnyLgiHaWUcaXhlFG+hL3bCW7BVa7?= =?us-ascii?Q?YKjbX9aw7VnaLoRaxyiQpnelDcSK05BWm9l5oZJI2WeGG9Ee3eQ31WqmS6z9?= =?us-ascii?Q?M6y4fzdi12plw7vN8qFk00+2l38DNPjW8zDghUF1XxrhpCDtteZmmBkHtjUn?= =?us-ascii?Q?WXc8unwhL7WnMqwP0OCHdX813PWb9Na8syL9temTrVrQGqmyik00vaqo3FNl?= =?us-ascii?Q?hYsqhlwel6JqQGZ4nmYu02W6cJnMrVQ4Y96a5IgdBwdajcPNHOZJO01ZtKI8?= =?us-ascii?Q?5VaGT/HeerCQqfY5YH8PHOv4YYcJbR77DihfzvBIWuD1lYLj1B8n7yyvu8bO?= =?us-ascii?Q?QHTiPQ/a07EtqKCjXS3k8uaj5JsI4F4w2J9AVVu+ELye1I0qKHZRoeY+thx7?= =?us-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ubo9grKbtYXcMu?= =?us-ascii?Q?CkhrApc3ECARI/vsGWbfnPvwR6v9f5A3rnYU84AfYZtCVi+f//zVkTnYdUW1?= =?us-ascii?Q?bygU4F3nE5vPnqvvDd5GxTLtbPQARj88?= X-OriginatorOrg: analogixsemi.com X-MS-Exchange-CrossTenant-Network-Message-Id: 083ccef6-513a-414b-120a-08da0bda5461 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:02:37.5425 (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: 6vMhnmwUxFwC8jCG12+3mT/K6MwfDsC0tcuDw65bTp+46txYNIhL0sCIQ1LgyHeqlURAznEe31BlSge7oila5Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR04MB6351 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 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"); + /* Disable HDCP */ anx7625_write_and(ctx, ctx->i2c.rx_p1_client, 0xee, 0x9f); -- 2.25.1