Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2719563imu; Mon, 17 Dec 2018 06:47:24 -0800 (PST) X-Google-Smtp-Source: AFSGD/UKhoZ+/I2TkszUL2wMi6MHj8akISy553chzVNpLN9peSR7wpvZ3QdM4F2LuqE/4l2n6Nz0 X-Received: by 2002:a17:902:201:: with SMTP id 1mr59317plc.62.1545058044388; Mon, 17 Dec 2018 06:47:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545058044; cv=none; d=google.com; s=arc-20160816; b=RKR1DYvK2jq9me303f7A0Xfo8jFY0wjRK/j2kBS0u2x1b4PdYeP235GbUKYxFMV5C2 T+snZeTonTJ9wcgjmSmNrTR6RBykBy3u9iqUY/+Rnh1BJg2FxFTHr97gZvVeN6FjGONj AqfOPnjC/Xs1JfsahIFUCjVZCVBL6uFZbQMvbjAGRnM4HusegOgMvQVV9QIRmQvUN2/z My4AmkYWkPTkcrAu9Q0Sv45q7/DO/CkC/qxo68pEoMEKSf80wGS/R4e1knwJ+1tyIaG5 AyGj5154CzQ8KBN7X2ytlqlQF1BVWsVYG69HbcxUT1myf2aw8pfgJb7eqRkTGCMcETAR A4hA== 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=5XGWA9H/z2wH6DjHFTy+bnCrn/g0BPYSaFxJks9AIZM=; b=rU+JvypymyfX0yDM1jd4FI1KvFhRjcktZnWioBVoMPN5l1lp9ba400vP2cYrq+dm5p 4OTyyiYtQk/zvgrgDi24qMjH34SB0yJE9iUOVIvNfmzdMV9JpwzJpxmcnzRYtQXdxpf3 mFNBcuJMG0iq//jd+g8ru5SNiVoTp4i5WTXcgF5H67Ld6KsCKgnIzyhadAWdfXBjK76E qYx536TKyTCnRyK4ldGKAuqFD9S39IRZJlyr6k/ImWfFYnAMWJCFw0K4PnhzRtE5Iur6 uvzb9s9Jd+6ADCEPBBZ8YYOwBkK+UrudJBsVYMa6QzoZEWeZJ/0onmt1B64A+G26SNTa +qlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dialogsemiconductor.onmicrosoft.com header.s=selector1-diasemi-com header.b=VUnlKlS9; 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 c10si11149513pgj.416.2018.12.17.06.47.08; Mon, 17 Dec 2018 06:47:24 -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=VUnlKlS9; 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 S1732875AbeLQOow (ORCPT + 99 others); Mon, 17 Dec 2018 09:44:52 -0500 Received: from mail1.bemta25.messagelabs.com ([195.245.230.1]:10266 "EHLO mail1.bemta25.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727453AbeLQOov (ORCPT ); Mon, 17 Dec 2018 09:44:51 -0500 Received: from [46.226.52.98] (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256 bits)) by server-1.bemta.az-a.eu-west-1.aws.symcld.net id D7/9B-09202-D56B71C5; Mon, 17 Dec 2018 14:44:45 +0000 X-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rfxpkPJjLE3DwcEnfOp59/ 2SeHmHkEzB9HehrO8XWy2mb77SQdAPrM1u8rlb3HFlzZOGGvRyR4uU3Z3QnKbEUZyQaajEXFS cCABgnRlvwAwAA X-Env-Sender: Adam.Thomson.Opensource@diasemi.com X-Msg-Ref: server-27.tower-262.messagelabs.com!1545057884!109847!1 X-Originating-IP: [104.47.2.50] X-SYMC-ESS-Client-Auth: mailfrom-relay-check=pass X-StarScan-Received: X-StarScan-Version: 9.31.5; banners=-,-,- X-VirusChecked: Checked Received: (qmail 20735 invoked from network); 17 Dec 2018 14:44:45 -0000 Received: from mail-db5eur01lp2050.outbound.protection.outlook.com (HELO EUR01-DB5-obe.outbound.protection.outlook.com) (104.47.2.50) by server-27.tower-262.messagelabs.com with AES256-SHA256 encrypted SMTP; 17 Dec 2018 14:44:45 -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=5XGWA9H/z2wH6DjHFTy+bnCrn/g0BPYSaFxJks9AIZM=; b=VUnlKlS9g9Rpi6Pd1bJ1jFUqIN27iRL4JARpYIgpmGh3BfY9eZr5wDyjPefmtE9Qi6RXHkgNfxqa5KnD4+uaxemv5+trptRLwBjIhlUlACRYXABdvfwGwFgQdhc7BLWrMVrSn5uwdrokt+5dZkWUoQzYftwxAfYqV9CkKdop7Ug= Received: from HE1PR1001MB1002.EURPRD10.PROD.OUTLOOK.COM (10.168.129.142) by HE1PR1001MB0876.EURPRD10.PROD.OUTLOOK.COM (10.167.193.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1425.22; Mon, 17 Dec 2018 14:44:34 +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 14:44:33 +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 v3] usb: typec: tcpm: Extend the matching rules on PPS APDO selection Thread-Topic: [PATCH v3] usb: typec: tcpm: Extend the matching rules on PPS APDO selection Thread-Index: AQHUlguPO0aeV5rVZ06xgwLCc/KUsqWC90iA Date: Mon, 17 Dec 2018 14:44:33 +0000 Message-ID: References: <20181217132213.91566-1-kyletso@google.com> In-Reply-To: <20181217132213.91566-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;HE1PR1001MB0876;6:ErNwi7Kx7pgijT0akNqF5scDUKTv6/LYK7MlKDjPLB50J4m/1S1fA09i41rroi9PusGgm3uGJFeI4OIut/MR63JgNrGxu9cSiKPIrSjDFG8vEOycJSOmIX6jf9W7jxwp+TajqxPGqTg2ZWoCyFgNgLkDFOB46jMZAiOMhwqzWb6nasyQJ9t+Y/dndtt6L1Ahp8glGFvsdColPx+6pYDkvQptx8MXX/JVIceixGjgpd1ITzWdgxQEYS6SCiIHgGfcInFloBUvHwqyuZaGVidTFS4TDMG00i1CNUrfk2ISFe/1e4/PX67994AnZLu+e1UYKeeOQdsDonrN2BZXFzT0fb6v9j+h5IcsfbZkPLrWoKHcVbMkMPFhWeAsEzVL4biQsdW46MqtUXOuNmVkp/KNGNUSbbskfIyj77r9MoKD38qbWkH4swmOx8Id7LPhWUiuJ1GK9F5EVWLNJqYQCbHxBw==;5:roMrWX9mRsNcDyrTNl6yit+46oTWMyBRZZY/G6tZ0b7XXYlqjtJFoFKO1ro3y8x0LATDCKAvylhvKsGDIrFW6GRIqNHVaGii1oKHK744ZbSf+YQrSI8LhSn0YsvoIraJnq3izIx4/v6rNDjAyniIeYnsc+jABhov9DHcahspIQ4=;7:pgsHolU8kUrWCbTfJtl7CY9Xmn8q1A67uOoa/E6WN4225XGqC+ueZOxMBCIYxD6Lsd2SNXhrvU89/4hHwiuAW1MaaBPgZjGA85nAXNLQCI+qbLes8ULnSfrgeI5QPC/fDZXBW+lezeZ5ScwZQxVf5A== x-ms-office365-filtering-correlation-id: e19ae825-6dd9-4c5c-ac87-08d6642e2912 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020);SRVR:HE1PR1001MB0876; x-ms-traffictypediagnostic: HE1PR1001MB0876: 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)(3002001)(10201501046)(3231475)(944501520)(52105112)(93006095)(93001095)(148016)(149066)(150057)(6041310)(20161123564045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(201708071742011)(7699051)(76991095);SRVR:HE1PR1001MB0876;BCL:0;PCL:0;RULEID:;SRVR:HE1PR1001MB0876; x-forefront-prvs: 08897B549D x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(376002)(396003)(39850400004)(366004)(136003)(54534003)(189003)(199004)(25786009)(55016002)(6436002)(33656002)(7736002)(66066001)(256004)(3846002)(74316002)(72206003)(99286004)(478600001)(14454004)(8936002)(217873002)(2906002)(97736004)(6116002)(486006)(68736007)(81166006)(316002)(110136005)(54906003)(305945005)(8676002)(446003)(76176011)(26005)(4326008)(53546011)(106356001)(476003)(81156014)(11346002)(102836004)(53936002)(7696005)(71190400001)(71200400001)(229853002)(2501003)(105586002)(5660300001)(55236004)(2201001)(186003)(9686003)(6246003)(6506007)(86362001);DIR:OUT;SFP:1101;SCL:1;SRVR:HE1PR1001MB0876;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: Gkk3CwzsydgfhIh3vDKdyEAli8kdSZPotx6hhYuDDo+IRk2x8+qvR+qBEhZ/wuUEno+5GFnFzLV5S4LP4wef31hFKNm6aGnfCbD/q0VQSGXmOqC34c4kpCmIxwN1GuQtNfh4PVvZsLgcJ1JkIJUCABFhIFspnP29ATwQuNvsereyrtHzPRYNcZnySX8YZNYajx0woK+0FTyxcI4x2nkclSFqDk0A7ghmqH8gyPHkLl43G044c4bJwAUQUVXKROpQH30ln5nDXw0QyLBsRT3GYP038TKy3LSjXOyj6XCNeZS5zZvxKq0mL6jAYqGImIyd 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: e19ae825-6dd9-4c5c-ac87-08d6642e2912 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Dec 2018 14:44:33.8385 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 511e3c0e-ee96-486e-a2ec-e272ffa37b7c X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR1001MB0876 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gMTcgRGVjZW1iZXIgMjAxOCAxMzoyMiwgS3lsZSBUc28gd3JvdGU6DQoNCj4gQ3VycmVudCBt YXRjaGluZyByd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