Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp904531pxk; Thu, 17 Sep 2020 20:59:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyb9wUk9rkxBk3N6vNKBiZLNtuqjjEbKTpUVNqS0Ketm4EbjLahHiCF6MU2S/cWZ1AZGOjz X-Received: by 2002:a17:906:724b:: with SMTP id n11mr34499633ejk.328.1600401592928; Thu, 17 Sep 2020 20:59:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600401592; cv=none; d=google.com; s=arc-20160816; b=ORFV/t7LyWa1E9MlowspiqPh12d53Slupvl/HNMPo+i3ILKQ964/48h/bvtr6dQFmq HAJoo9UVIyfp959Qs08RGGhSpnfvoLXS4+/kemAs/9ZBBesEiSo+ncnJbq8CHJ1U4Yo3 rrJQPloXWIhHRdgKE7ZPeCAktzC+FIAy+6wxE5EVTk/gvB0Oab79p3d2WRioUjD6RCWe P9hXe3vCLFFRvR9qGbo7cWtM5x+Zj9jaxPwZfQFNaEfJtoAOrf6ZQ96Gh3dBZQeUz6wJ XLK+OTkML+8dHwoPPEMzBe3OQ0zkog76hN5sd9q6dOVNmW2rT2WC16buxBVCT5jFcx7j AfnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:from:ironport-sdr; bh=xOVviFiQ2sja3NRe1GRAD6GVklddS+wHL8uyw3Lg9ZA=; b=kv5zujPtxRSqQGZx0YYL7muvEk/H9c+w340nfWzdpAsHlnTqeBFfBZtc1Tv9QzFQye QtpcPFZA2yBpyiwgKDgpdLjyITm5daat0siIQJ+0QCuH1Jt+ac5nwo7BYWLQeOFgqFuZ 8p9mypZq8ikPoupNHlVTQeW7hXcGrGFDxLvn7y6D26EJ4jssNXD5MxFkcoI/ruQ2Gq0e p1yUkSxq9/KCSS8b3EPViTPE8HU5vth1lcfJfC1RnvLN+MN+ECawQFAmY5II78zLKliS YZmQQJbMFuH0xybwzMbL53sCH+I/n7SUr79ASt4n7iJLJFRXDY+m4qKmW267ZyaWw6es b6/w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f7si1443522ejt.351.2020.09.17.20.59.27; Thu, 17 Sep 2020 20:59:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726552AbgIRD5z (ORCPT + 99 others); Thu, 17 Sep 2020 23:57:55 -0400 Received: from 60-251-196-230.HINET-IP.hinet.net ([60.251.196.230]:52659 "EHLO ironport.ite.com.tw" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726269AbgIRD5z (ORCPT ); Thu, 17 Sep 2020 23:57:55 -0400 X-Greylist: delayed 429 seconds by postgrey-1.27 at vger.kernel.org; Thu, 17 Sep 2020 23:57:52 EDT IronPort-SDR: QRvZBk8mJqjBl2kmRODkwg1Gd8jbXSClV0CB7oMCDYrNlrPmzMt/vJK/BY0PJemqPINqu5GlvF O1bkQnDicTAg== Received: from unknown (HELO mse.ite.com.tw) ([192.168.35.30]) by ironport.ite.com.tw with ESMTP; 18 Sep 2020 11:50:42 +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 08I3oaaU006752; Fri, 18 Sep 2020 11:50:36 +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.1713.5; Fri, 18 Sep 2020 11:50:36 +0800 Received: from CSBMAIL1.internal.ite.com.tw ([fe80::2cba:f37c:ac09:f33f]) by CSBMAIL1.internal.ite.com.tw ([fe80::2cba:f37c:ac09:f33f%22]) with mapi id 15.01.1713.004; Fri, 18 Sep 2020 11:50:36 +0800 From: CC: , , , , , , , , , , , , , , , , , , , Subject: RE: [PATCH v3] drm/bridge: add it6505 driver Thread-Topic: [PATCH v3] drm/bridge: add it6505 driver Thread-Index: AQHWgmF3Zki6rF4XSEGSgvwHyhwxDqlt1R/Q Date: Fri, 18 Sep 2020 03:50:35 +0000 Message-ID: References: <20200904021029.365700-1-allen.chen@ite.com.tw> In-Reply-To: <20200904021029.365700-1-allen.chen@ite.com.tw> Accept-Language: en-US Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.70.14] x-tm-snts-smtp: C936F51C2F39EDF77F20DAE34C3C3A0714BF4F01EA62D9D2486BB6AA6ECD21E12000:8 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MAIL: mse.ite.com.tw 08I3oaaU006752 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SXQgaGFzIGJlZW4gYWJvdXQgdHdvIHdlZWtzIHNpbmNlIEkgcG9zdGVkIHYzIGFuZCBoYXZlbid0 IGhlYXJkIGFueXRoaW5nLg0KQ29uc2lkZXIgdGhpcyBhIGdlbnRsZSBwaW5nLg0KDQpJZiB0aGVy ZSBpcyBzb21ldGhpbmcgbmVlZCB0byBmaXguIEkgd2lsbCBmaXggYW5kIHVwc3RyZWFtIGFnYWlu Lg0KDQpUaGFua3MuDQoN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