From patchwork Mon Apr 16 06:54:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Li X-Patchwork-Id: 10342305 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9B93860365 for ; Mon, 16 Apr 2018 07:10:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8490E2855D for ; Mon, 16 Apr 2018 07:10:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 830602850D; Mon, 16 Apr 2018 07:10:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5C2092859E for ; Mon, 16 Apr 2018 07:10:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753169AbeDPHKe (ORCPT ); Mon, 16 Apr 2018 03:10:34 -0400 Received: from mail-eopbgr10087.outbound.protection.outlook.com ([40.107.1.87]:19232 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752976AbeDPHKd (ORCPT ); Mon, 16 Apr 2018 03:10:33 -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=TkJ/j2E2xf1LIRkZM9Fmf9hKdYvJN2wdpARHpDkS2eY=; b=WhGxXxsf4SmeNpjvxl4nFYm2+ROPm8mrbB8LpdeZV/0dIR5FIItT6yfZFm6nk2YNxltXG7gpSrR4fuiXqKrsPVUerYYj6wFSQSeQoBFx1FRssf2vN8ux0IEbep6ugZIiIgCkczndh9Xr2AGbSw3sIF2nJblDURK88UAU9yEaWwE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=jun.li@nxp.com; Received: from b47624-OptiPlex-7040.ap.freescale.net (92.121.68.129) by AM0PR0402MB3907.eurprd04.prod.outlook.com (2603:10a6:208:f::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.675.9; Mon, 16 Apr 2018 07:10:26 +0000 From: Li Jun To: gregkh@linuxfoundation.org, robh+dt@kernel.org, heikki.krogerus@linux.intel.com, hdegoede@redhat.com Cc: linux@roeck-us.net, rmfrfs@gmail.com, yueyao.zhu@gmail.com, linux-usb@vger.kernel.org, linux-imx@nxp.com Subject: [PATCH v5 4/5] usb: typec: wcove: remove max_snk_* for sink config Date: Mon, 16 Apr 2018 14:54:36 +0800 Message-Id: <1523861677-16893-5-git-send-email-jun.li@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1523861677-16893-1-git-send-email-jun.li@nxp.com> References: <1523861677-16893-1-git-send-email-jun.li@nxp.com> MIME-Version: 1.0 X-Originating-IP: [92.121.68.129] X-ClientProxiedBy: HK2P15301CA0001.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::11) To AM0PR0402MB3907.eurprd04.prod.outlook.com (2603:10a6:208:f::27) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(2017052603328)(7153060)(7193020); SRVR:AM0PR0402MB3907; X-Microsoft-Exchange-Diagnostics: 1; AM0PR0402MB3907; 3:zyfJMbYOV9w6yX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u27SouHk0DMn9k7o9Gd9q7/RzMVwlf+IWNxVriDEthD9Eb3NR1f+TBt9LFbekAGRlgLTpuAMAmm/BB07xFjNWmZzvXDJ/qsQprr2l/2P4QsO5FCjf/ewaXjR7lKdC+8nWEL9z4l/jTpEc+SnhTLBnR3e7w49/nhSxVOobqd2ZYq+4Uxj8m2BohDLfIngNdYcl2iZVnG+c8QkuOZQ9z0POItb1aj1VASkYlKN6ntY1OFzZZG8N8OdtcMAaINzaLLBvAKDpiudeAHnPTGrq1Hqnkk7s+owCiHn40Jmk1qQ7Q/F/SJ+wQjXgE58bcLzZltec+II0P4; 4:k2KPITMSX2g0yo6wsdn3DX+seXRsLknHXQnPjILn3lDS6+zRJCBwzEz3R6oiHHuBTUxEF7Bfd5nvUdLEDtuNwriY9f04o6yFDM7TEvvF9ZwbJVMR7MdWZNj12SHt+eS4jFRGfeeq4mgGJ8M0Oo7zNS2ZfoB8kMREXclv6G9Je6kOLFYpUw2rrP4c90ejoX1pXZR5w+fi5yfAupg0sDkY0fYwO7zPe4bMktxyQKjwZPZIR9Jy8GTEhb8z92WWXNxXWwU9HlvXfJszL77ix96wIG9BZbbP0hI6DCK5cDFNQf3x/KxZxNBZixYPUxXzAyYh X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231232)(944501327)(52105095)(93006095)(93001095)(10201501046)(3002001)(6055026)(6041310)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123562045)(6072148)(201708071742011); SRVR:AM0PR0402MB3907; BCL:0; PCL:0; RULEID:; SRVR:AM0PR0402MB3907; X-Forefront-PRVS: 0644578634 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(376002)(346002)(39380400002)(366004)(396003)(199004)(189003)(52116002)(7736002)(11346002)(51416003)(316002)(305945005)(2906002)(478600001)(16586007)(26005)(76176011)(6666003)(86362001)(105586002)(6506007)(106356001)(25786009)(386003)(6486002)(97736004)(66066001)(47776003)(486006)(6116002)(16526019)(3846002)(6512007)(186003)(53936002)(5660300001)(36756003)(476003)(2616005)(50226002)(68736007)(48376002)(50466002)(446003)(4326008)(8936002)(81156014)(956004)(8676002)(81166006)(39060400002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR0402MB3907; H:b47624-OptiPlex-7040.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM0PR0402MB3907; 23:JSP1YBeDb0am6CmBuXlL4/IGHY+HXNd+AYOvIAW?= =?us-ascii?Q?0B+XWM+98UYeRJQzHycYvz0qPvMHgItXLHi6edjAfs+jNNNio1hzRDJyhSW6?= =?us-ascii?Q?xLz2w1UzsEx/flOI2qB4LelTWoFSmY/8f7Vc9QPglNHfLSDMazSirUrLCo5H?= =?us-ascii?Q?o3z9f12m7RA0bKQguwzYIY7d+UZMfRJEfVg7GcpiBp72BB30dNeOYVQlcTsF?= =?us-ascii?Q?B+17vuDsSa0s7pcHD77jUBbCOxNsGOIfzldobJaunnL7f8m3S4L82RZOcxHy?= =?us-ascii?Q?NeDOLYAT16S0Llzbae7UbI/9krrrmc9W9/XDTJIrwEippqbvP3eP/VgeUUYL?= =?us-ascii?Q?S+8D0Gf5J0/Opq4tDcJ7W14O7o/THgQsmT85x9VN5SNnqY0DGpjF5CKK5hUW?= =?us-ascii?Q?0rv8xtpVdB8Sfbo8qxppFQhFgEkCSt/6pRZqItmBXlMqBKvPHOb+VdaY5qw5?= =?us-ascii?Q?T1SbVFAKv1b7I9Hy5rM4LsKWWbX286ij1gT/hqhjIiEm5NX5grSrywBFx//q?= =?us-ascii?Q?NVPISfU3MO4jzcs4OoY14aMMIoCTHzktEjymds63M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7XP X-MS-Office365-Filtering-Correlation-Id: ad00edf5-b937-4cc3-74a9-08d5a3692337 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Apr 2018 07:10:26.4585 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ad00edf5-b937-4cc3-74a9-08d5a3692337 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0402MB3907 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Since max_snk_* is to be deprecated, so remove max_snk_* by adding a variable PDO for sink config. Reviewed-by: Hans de Goede Signed-off-by: Li Jun Acked-by: Heikki Krogerus --- drivers/usb/typec/typec_wcove.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/typec/typec_wcove.c b/drivers/usb/typec/typec_wcove.c index 19cca7f..39cff11 100644 --- a/drivers/usb/typec/typec_wcove.c +++ b/drivers/usb/typec/typec_wcove.c @@ -558,6 +558,7 @@ static const u32 src_pdo[] = { static const u32 snk_pdo[] = { PDO_FIXED(5000, 500, PDO_FIXED_DUAL_ROLE | PDO_FIXED_DATA_SWAP | PDO_FIXED_USB_COMM), + PDO_VAR(5000, 12000, 3000), }; static struct tcpc_config wcove_typec_config = { @@ -566,9 +567,6 @@ static struct tcpc_config wcove_typec_config = { .snk_pdo = snk_pdo, .nr_snk_pdo = ARRAY_SIZE(snk_pdo), - .max_snk_mv = 12000, - .max_snk_ma = 3000, - .max_snk_mw = 36000, .operating_snk_mw = 15000, .type = TYPEC_PORT_DRP,