Received: by 10.213.65.16 with SMTP id m16csp205720imf; Mon, 12 Mar 2018 00:14:24 -0700 (PDT) X-Google-Smtp-Source: AG47ELsVyefXcvwslP5OqnQtmxdFsi0IjJA588H76wdLiiQ6L6JfUsHKBKvaxjU/b0ZSg2sNQ4YS X-Received: by 2002:a17:902:bd46:: with SMTP id b6-v6mr7063002plx.247.1520838864646; Mon, 12 Mar 2018 00:14:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520838864; cv=none; d=google.com; s=arc-20160816; b=RGM+LeI5HzH7QZ+GUlG8fFXUZU6Toe6t2Kw1XxPHpxHJRZ1Q3RObPpcx5DiK74LSP7 cfTFpOdWzAe4R9o4+5OdkOv6RrUs3Ugv9Bl3m3mkTKq9lSvCQ+Th0Z//Qze09o1faOh5 1Pu5O9s2FMGMYK05mM2xgsA4MQRapIXfNAnVsJ8t/Ja93OP9X914wiG7lkwCAihEr/uC vjTfciau346M7wS18tD7kKNp5jsF6Fj/Ue8BVywnrYOE4NtE0yr1AkvTpGzqBZKUx9mr tr45a4xDeTTv+SUITKFItqsNkFULoaPFInRU9O8+/F1BdXpI5UEzkL03tJ4R3qmUd/Wr mVpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=J+VgfnAN9aSDftupcUvNAutFtQI/25byRO3BrMh6faQ=; b=TfZcnW+YDxkDF8dcSpesWsijPQKGzd0Ei197UnoB4xSt+d6h3w9yORS+0uE+z9p8kn okygP+te1YDIBk2ojqbO7FIb1Gu3HmGvsDt0HRTCIA5CtlY7oR9bEb5dyv5oiV0B7Np0 /ixct/G/+Y0s2OWhYZuil15KSmckuQVEw4+5h4+qFpT0K1oun9UYEnmDpZLWYibIKEs6 r6kJM2iB+xWOjBFbcA1K1tTlo4C2u3mfRiuoQrqN2UGvZU6+9n4eFrefx+VKRQXbb+pv OibF/UShJUgyMtzsXM0mRQNshqG5yx72zwPL990gORWDgqkI/AqdUzwpyNA4MZh8ZVfB 5CtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=qjt+VbDK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 102-v6si5591948plf.132.2018.03.12.00.14.09; Mon, 12 Mar 2018 00:14:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=qjt+VbDK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752099AbeCLHNR (ORCPT + 99 others); Mon, 12 Mar 2018 03:13:17 -0400 Received: from mail-eopbgr00060.outbound.protection.outlook.com ([40.107.0.60]:17513 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751980AbeCLHNP (ORCPT ); Mon, 12 Mar 2018 03:13:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=J+VgfnAN9aSDftupcUvNAutFtQI/25byRO3BrMh6faQ=; b=qjt+VbDKI8jFRHnYhHvzJ5zTKszfkOHzykHq+6lXt8ZTm6QO1hR9xJpt7mA/Txt0K55vyF5CWWyi/bIkk9hAzZhAtz4prEYtfbIeuchCa0W1zNd5KkOxCmzhZ+CERY1bXVZQOl6W3Q3YakAXmcjd0HL/29beuqPLzuXpTC5W8Lw= Received: from VI1PR0402MB3917.eurprd04.prod.outlook.com (52.134.17.30) by VI1PR0402MB2782.eurprd04.prod.outlook.com (10.172.255.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.567.14; Mon, 12 Mar 2018 07:13:12 +0000 Received: from VI1PR0402MB3917.eurprd04.prod.outlook.com ([fe80::70cd:1c30:40b2:1bae]) by VI1PR0402MB3917.eurprd04.prod.outlook.com ([fe80::70cd:1c30:40b2:1bae%13]) with mapi id 15.20.0548.021; Mon, 12 Mar 2018 07:13:12 +0000 From: Jun Li To: =?utf-8?B?5p2O5pu45biG?= CC: Greg Kroah-Hartman , "heikki.krogerus@linux.intel.com" , "linux@roeck-us.net" , "greg@kroah.com" , "shufan_lee@richtek.com" , "cy_huang@richtek.com" , "linux-kernel@vger.kernel.org" , "linux-usb@vger.kernel.org" Subject: RE: [PATCH v7] staging: typec: handle vendor defined part and modify drp toggling flow Thread-Topic: [PATCH v7] staging: typec: handle vendor defined part and modify drp toggling flow Thread-Index: AQHTtO2TvuhbiKnCtkaCXDhq065ky6PL/wvQgAAbPQCAAAZVIIAAFDsAgAABZiA= Date: Mon, 12 Mar 2018 07:13:12 +0000 Message-ID: References: <1520301032-10109-1-git-send-email-leechu729@gmail.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [92.121.68.129] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;VI1PR0402MB2782;7:xChd4LDwFjLPSOEp0REG2Wz+uwXmfPulgih//dL/irS3h447eZL/a8n0AKZk1jK/q9YoEeRlZaPNEXwqS4ZMKKRHSZiLFrPDCnf8YizhKrH6C/BnxVX9mi0h0uQsL9jMmKCSwsOVq1u7QumguKxz+FXU7o9RgiyRdnjW407b8N/xwj3sqzqu9xasUzGzGjGlTT511qlvYtVNSdngMnZUf1UBdLbCe9DYbGq/tNi2f1cWMERHwjRzXWcKDQs5XBYB x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 00d28beb-5ae0-463c-1dc1-08d587e8b778 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:VI1PR0402MB2782; x-ms-traffictypediagnostic: VI1PR0402MB2782: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055)(185117386973197)(85827821059158)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(3231220)(944501244)(52105095)(6055026)(6041310)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(20161123558120)(6072148)(201708071742011);SRVR:VI1PR0402MB2782;BCL:0;PCL:0;RULEID:;SRVR:VI1PR0402MB2782; x-forefront-prvs: 06098A2863 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39380400002)(396003)(376002)(366004)(39860400002)(346002)(377424004)(13464003)(199004)(189003)(6116002)(7736002)(305945005)(74316002)(93886005)(9686003)(55016002)(6436002)(5660300001)(6346003)(229853002)(26005)(2950100002)(6916009)(186003)(68736007)(33656002)(5250100002)(316002)(53546011)(6506007)(66066001)(106356001)(105586002)(102836004)(59450400001)(3846002)(1411001)(3660700001)(97736004)(478600001)(99286004)(76176011)(7696005)(4326008)(25786009)(2900100001)(39060400002)(8936002)(54906003)(6246003)(86362001)(3280700002)(2906002)(81166006)(8676002)(81156014)(14454004)(53936002);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0402MB2782;H:VI1PR0402MB3917.eurprd04.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=jun.li@nxp.com; x-microsoft-antispam-message-info: RkGwzMWvFzeKrmllO0vwrWHK/F7OoUB9AP0b34cX5TfsZ4wLfX8VcooVlkyDgf/S16Oj3/TdcJ92FpDIcWatj5jiGHZxFPYhxyVwlHpzW7eRTQfP2xuRpk3nGDKY/R3FGupeK8PgyGHsaoL166CG5gwewsteZcMeyrt16+PDuL8FFtIezGftTtHzyfK1OFu5kD2frUbw5tPxSqrGdrFbFO/+lLa+J1V9Lnhm6b9qi7k9Ee3yJRSPfAZ6t1vUytkZjXbjMm2K+UONiUIdsjiEofUqDvN0hBuJUOThC+JAcXH2gmbzPgLCm4VTUawn3wHM1pvisZkISCwQjBzh2Uh3Xg== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 00d28beb-5ae0-463c-1dc1-08d587e8b778 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Mar 2018 07:13:12.1808 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB2782 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IOadjuabuOW4hiBbbWFpbHRv OmxlZWNodTcyOUBnbWFpbC5jb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