Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5220259rwb; Mon, 14 Nov 2022 00:48:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf6mmEh2DTri4110buloQ3KQtVSZtuDkBv+ht548jHl1P+tnsYVbrJIP9btcUvKBAvGqfL+R X-Received: by 2002:a17:902:f115:b0:186:94b8:5980 with SMTP id e21-20020a170902f11500b0018694b85980mr13087290plb.113.1668415680780; Mon, 14 Nov 2022 00:48:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668415680; cv=none; d=google.com; s=arc-20160816; b=vLwAyiWmlgBU3RP2QJ0HrWvM3Xl84vMY+dDkyAOLwSSrnp1hz06ZdReFYMioFBc0Ky 0PvfRmVXbFBTQMY8s1V5QZXdYt10PIavqx5i3bZz1lBNARse45Ml5uDGTe9NtmbY6bQc QpxZPjiCP01aEmVEARpW+Uo8aQUO+BcaidiFLJ902ub8DpM3zZ406DPs8OQZKnUl6Ex2 2ti75neK3BkcVCy6VJZsBdWPDHsxAryqedrMFLlU4cRiaLiBhAasovUUQ5v/dEHMJH1M wN5n8KsRkYmnP/eQsUsBoOsh/46iKzQplbK32KDNbZXJ7zfRq/1wlFiy8lvrKGW5yHf5 GLYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=WyKqIpHim3vSSVP+X0j65G6uqeDDW/cpPy3M6b2J/90=; b=vyJldcs/M9rIj/jFWrfZ/ZG7jzC4dleeOG0myfJ/dc29nRANpzh+APAk3/x12n5KGP J6tKBrn7rfcwF8xi4DG9Cr9Ey6DSxfI3DoMIciP2kEMOHYHt9hGm71Ppna0fiHR1exLc sr2FeRNtSL4nig2G0Z0P3Z3rLfFr6eJ6xPDuxcBNK/zmFtifwz531RcF7Ub3tgrlTzEF 5r3GZ/W1PCfS9vZG8kRtgKkTrIOuFUBlV8kSwHZiFtsAXi/SgkjVjvPg8lTzXINsffPs setg+iAEY9Ib9YwfA+sgbAnPXCsnaq7vsKUY708cf5PTaYTOa/fn65fDIrCrSqKiaqL6 dt6w== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j34-20020a635962000000b00434c2c0a834si9161913pgm.734.2022.11.14.00.47.49; Mon, 14 Nov 2022 00:48:00 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236230AbiKNIN4 (ORCPT + 89 others); Mon, 14 Nov 2022 03:13:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235902AbiKNINz (ORCPT ); Mon, 14 Nov 2022 03:13:55 -0500 Received: from ironport.ite.com.tw (60-251-196-230.hinet-ip.hinet.net [60.251.196.230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F238819287 for ; Mon, 14 Nov 2022 00:13:51 -0800 (PST) Received: from unknown (HELO mse.ite.com.tw) ([192.168.35.30]) by ironport.ite.com.tw with ESMTP; 14 Nov 2022 16:13:49 +0800 Received: from CSBMAIL1.internal.ite.com.tw (CSBMAIL1.internal.ite.com.tw [192.168.65.58]) by mse.ite.com.tw with ESMTP id 2AE8Dh44067510; Mon, 14 Nov 2022 16:13:43 +0800 (GMT-8) (envelope-from allen.chen@ite.com.tw) Received: from CSBMAIL1.internal.ite.com.tw (192.168.65.58) by CSBMAIL1.internal.ite.com.tw (192.168.65.58) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.14; Mon, 14 Nov 2022 16:13:42 +0800 Received: from CSBMAIL1.internal.ite.com.tw ([fe80::dd22:b444:859b:61c7]) by CSBMAIL1.internal.ite.com.tw ([fe80::dd22:b444:859b:61c7%18]) with mapi id 15.01.2176.014; Mon, 14 Nov 2022 16:13:42 +0800 From: To: , , , CC: , , , , , , Subject: RE: [PATCH v4 3/3] drm/bridge: it6505: handle HDCP request Thread-Topic: [PATCH v4 3/3] drm/bridge: it6505: handle HDCP request Thread-Index: AQHY9//Ca260JAfXwkyDVowEfwt7KK4+EYlg Date: Mon, 14 Nov 2022 08:13:42 +0000 Message-ID: <6dfdd23e24a243dabb0f8691c0cb60b4@ite.com.tw> References: <20221114080405.2426999-1-hsinyi@chromium.org> <20221114080405.2426999-3-hsinyi@chromium.org> In-Reply-To: <20221114080405.2426999-3-hsinyi@chromium.org> Accept-Language: en-US Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.70.46] x-tm-snts-smtp: 197601AEF1738EE1266B66F3F93C9C7AEEFBFECFEEC870CAB7A49CED4E322A5C2002:8 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MAIL: mse.ite.com.tw 2AE8Dh44067510 X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,PDS_RDNS_DYNAMIC_FP, RDNS_DYNAMIC,SPF_HELO_NONE,SPF_PASS autolearn=no 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 SGkNCg0KcmV2aWV3ZWQtYnk6IGFsbGVuIGNoZ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