Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2586457imu; Mon, 17 Dec 2018 04:40:08 -0800 (PST) X-Google-Smtp-Source: AFSGD/XHjUPiIsbmEBmVO2rIdVlFXVMMZXvUi2ALfzdYMDjBz7f+rp0RTIP2BjCQH6LQZ4BEZ1Js X-Received: by 2002:a62:32c4:: with SMTP id y187mr13219548pfy.195.1545050408317; Mon, 17 Dec 2018 04:40:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545050408; cv=none; d=google.com; s=arc-20160816; b=vr0L58f2cfgqTdjwrRpByYMLNZODB7kWRa8WPdaDCH6VpTQYmapLLnlWpMLdwf1GZc 6Mf6FgyZ9Ykx1Vm3+tsHATuoPVH8T/lIRyqTbMEDH+C92EboHzfD1OYNgP4HB/nLjrT7 ZWPRn5fgIMZBaE/xS+loKZnkMWwCg/JPuInashHRpL0fvd53Iuk4wYvVIH2asUTP2DAP 9GVkDT1HgCCLXhwJdVt+6v141MwHKmH6SLeUsqiVDzzGdkrBGNljtouerr1oamNZs5ji QucUsVcYMzYfyCx59DeLJJ1ifA4arp6/W64goirI0MjzdtkbcuJozRBGouaPhsHfX2wR 8mNQ== 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; bh=eQ4So6xMxIZHm7JkPbfdyEjvIxVcojPZj6LcatQtdIQ=; b=lowZKtpJmJsCAd7SZ5brO0AGBHVe7Ak9HzEU78ecwgozRMR1T2FIacg4nbq7EKuFsq KH/7s1rz9IkTuuPdHSJzMvV6zIbAvlhof+ZDkWGs7gs9HMMyDs1Wy+Pna/xWzIDZELnX hLEdzjedyFniL6puFP2x5khar2Jzk1nIg0o+mSFSit5jET307mE1DOmz2PH3WKEEs2pb lNoOC/jYzHtccTtqJZzbiDsgWsrdWBhKidfrUtb4naQHwU4asJ6/e8saWKjHbTb3V7dq keu1RKApnHzVU2vwjUJ/E9VLq6ZWbgFqfXcCBbRHVzmMaXFR0nKugWxcMxVlyryXgHy6 WCyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dialogsemiconductor.onmicrosoft.com header.s=selector1-diasemi-com header.b=J5ninix5; 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=fail (p=NONE sp=NONE dis=NONE) header.from=diasemi.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y40si11290680pla.251.2018.12.17.04.39.53; Mon, 17 Dec 2018 04:40:08 -0800 (PST) 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=@dialogsemiconductor.onmicrosoft.com header.s=selector1-diasemi-com header.b=J5ninix5; 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=fail (p=NONE sp=NONE dis=NONE) header.from=diasemi.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727193AbeLQMXl (ORCPT + 99 others); Mon, 17 Dec 2018 07:23:41 -0500 Received: from mail1.bemta26.messagelabs.com ([85.158.142.6]:55902 "EHLO mail1.bemta26.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726436AbeLQMXk (ORCPT ); Mon, 17 Dec 2018 07:23:40 -0500 Received: from [85.158.142.104] (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256 bits)) by server-6.bemta.az-a.eu-central-1.aws.symcld.net id A5/12-08814-745971C5; Mon, 17 Dec 2018 12:23:35 +0000 X-Brightm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D6joD6ptfJ9ZILqz sImfee91oK8LfPL7L7BwFODVc6oBQezzmcsOfJJ21bcPDtm8RIlYdGzcdNxs4X9DQdKyDzxAw AA X-Env-Sender: Adam.Thomson.Opensource@diasemi.com X-Msg-Ref: server-29.tower-229.messagelabs.com!1545049415!2885949!1 X-Originating-IP: [104.47.4.55] X-SYMC-ESS-Client-Auth: mailfrom-relay-check=pass X-StarScan-Received: X-StarScan-Version: 9.14.24; banners=-,-,- X-VirusChecked: Checked Received: (qmail 30868 invoked from network); 17 Dec 2018 12:23:35 -0000 Received: from mail-am5eur02lp2055.outbound.protection.outlook.com (HELO EUR02-AM5-obe.outbound.protection.outlook.com) (104.47.4.55) by server-29.tower-229.messagelabs.com with AES256-SHA256 encrypted SMTP; 17 Dec 2018 12:23:35 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dialogsemiconductor.onmicrosoft.com; s=selector1-diasemi-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=eQ4So6xMxIZHm7JkPbfdyEjvIxVcojPZj6LcatQtdIQ=; b=J5ninix5EspLOdKK8spj4Fa1IldRJQm20SQgQzQR+LKcSnOWTicYUSbXF0wtRNOozIJEaKfadMaISs6VYd7EJzpBaYzBPsEPftl4uoLAIulLQ7YI75PIMCEB6GiNagRrB22fQN9pfuWGmkrS/p4zcg+XUIf4YPExJqJGJ9BN0g8= Received: from HE1PR1001MB1002.EURPRD10.PROD.OUTLOOK.COM (10.168.129.142) by HE1PR1001MB0922.EURPRD10.PROD.OUTLOOK.COM (10.167.193.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1425.19; Mon, 17 Dec 2018 12:23:32 +0000 Received: from HE1PR1001MB1002.EURPRD10.PROD.OUTLOOK.COM ([fe80::b806:2864:5268:3447]) by HE1PR1001MB1002.EURPRD10.PROD.OUTLOOK.COM ([fe80::b806:2864:5268:3447%5]) with mapi id 15.20.1425.021; Mon, 17 Dec 2018 12:23:32 +0000 From: Adam Thomson To: Kyle Tso , "linux@roeck-us.net" , "heikki.krogerus@linux.intel.com" , "gregkh@linuxfoundation.org" , Adam Thomson CC: "badhri@google.com" , "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] usb: typec: tcpm: Extend the matching rules on PPS APDO selection Thread-Topic: [PATCH] usb: typec: tcpm: Extend the matching rules on PPS APDO selection Thread-Index: AQHUlbL6k39xhGS0X0+dwIYfo3mukKWC1r+A Date: Mon, 17 Dec 2018 12:23:32 +0000 Message-ID: References: <20181217024805.122897-1-kyletso@google.com> In-Reply-To: <20181217024805.122897-1-kyletso@google.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [165.225.80.56] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;HE1PR1001MB0922;6:HlrVqe0WG5Fs70Kp85ZH8SlcjMLetlS12XHh+pzbvPfAz5GBiot3mxNQu0WLwTBLOfFBLjBl3B9wa13fP5AM1NXgtTGRv5mkpa9gJI7IjI6Bd5cQA2AaYUUWPepOC1jwSF36d8OVoInRsmrbnCBp/ehTvSg/+bn4rV+HSu5q+8goEyoJFcSHMTKkrkUK8+fRowwmdwYmKGlOCVJGM69FfjDelYAT1l0TEVj7+KUTNjnCduy5M/kXBLq1t8kSmqURQ5/9RrPg/2001hGn74xiPerVbCAefYmZTeGSc3NriyaDuqeUXw88ca/PvwWXIKtTb4IHmRFlthR/oyt620v3gLYyZPGyoE16RcEvC+asHOcRS0mo59Sb4he15UNaxXwhf+h93xb450yYuEaDbG8AAEh+XrD0Uwbj0M+giSY/fnpWQpQifl6QmQSCvRe1z3LZNnW6Fg+4H43DovCW46QNDQ==;5:UlUphTVsq34111D2X0SXH82hmuGSVVwVdzAy28wSoapDP1BDZUkFWboKl64dlyT82ZRV/psB2iJVt0sh6/RFr9+mfX/DyCaY5RGc9HssdXzM0T8iCthw8MaY2ljY6IqXlaDDn+t/Q6pC9wjZSxunnxEuJ6EWHEBUi2F6mKTy008=;7:HEMXX/E2Goo3UfA1NjzKZRSzu6t2Q9VwyiSI2QcFsLYPpEHZ6jzZtKyKgPnNgipUKsq19pH1YJCJ8g7h4TjuP+IOqSMVMXxHCLEr1HAWpiDl99T3QQGDXk9DfCONM+mupbOqSO/6AlK3fAAsqVoktg== x-ms-office365-filtering-correlation-id: 34f40aa6-9bbd-4f0d-6bb1-08d6641a7587 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020);SRVR:HE1PR1001MB0922; x-ms-traffictypediagnostic: HE1PR1001MB0922: x-ms-exchange-sharedmailbox-routingagent-processed: True x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(3230021)(999002)(6040522)(2401047)(5005006)(8121501046)(3231475)(944501520)(52105112)(93006095)(93001095)(3002001)(10201501046)(148016)(149066)(150057)(6041310)(20161123558120)(20161123560045)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095);SRVR:HE1PR1001MB0922;BCL:0;PCL:0;RULEID:;SRVR:HE1PR1001MB0922; x-forefront-prvs: 08897B549D x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(136003)(346002)(39850400004)(376002)(366004)(54534003)(189003)(199004)(7736002)(110136005)(53546011)(6116002)(5660300001)(25786009)(11346002)(68736007)(305945005)(7696005)(2201001)(72206003)(446003)(74316002)(8676002)(66066001)(71190400001)(6246003)(81166006)(71200400001)(14454004)(3846002)(86362001)(53936002)(6436002)(256004)(4326008)(55016002)(81156014)(99286004)(486006)(9686003)(105586002)(55236004)(229853002)(33656002)(2906002)(476003)(76176011)(97736004)(217873002)(8936002)(316002)(478600001)(106356001)(26005)(54906003)(102836004)(186003)(6506007)(2501003);DIR:OUT;SFP:1101;SCL:1;SRVR:HE1PR1001MB0922;H:HE1PR1001MB1002.EURPRD10.PROD.OUTLOOK.COM;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:0; received-spf: None (protection.outlook.com: diasemi.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: QP009yoFIRTCl1NZLqIOPfOC0HE8n4mcZ0nBJozl0meIMGmwW8GYkQ8COLqoPRrPl7ta/ayFnxJRP2ZBenMDgnBsRw/NTTymy3NwtKqdq3h//KQt+lkee44YMlWk54tCH5tkdBeIXcEZ8Y45Q7rhrPj2lXpgvm8cl24Ea14aEMJL2mADsVBmM9u4qxDYwjgGDsjfCaiwd5utgbntubZCYRpmTt2P1rSgsPQfdMFoGjULewQa71ZUvHy/dJKGv1/5C66xbpBt8vcFtIrDN7RMYtVtRO3d5CHx3GTobE64LNtDvyhqY9HzMC7wfTfjAu5Z spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: diasemi.com X-MS-Exchange-CrossTenant-Network-Message-Id: 34f40aa6-9bbd-4f0d-6bb1-08d6641a7587 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Dec 2018 12:23:32.0958 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 511e3c0e-ee96-486e-a2ec-e272ffa37b7c X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR1001MB0922 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gMTcgRGVjZW1iZXIgMjAxOCAwMjo0OCwgS3lsZSBUc28gd3JvdGU6DQoNCj4gQ3VycmVudCBt YXRjaGluZyBydWxlcyBlbnN1cmUgdGh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