From patchwork Thu May 3 00:24:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Li X-Patchwork-Id: 10376851 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 C37FC60384 for ; Thu, 3 May 2018 00:42:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B48A529150 for ; Thu, 3 May 2018 00:42:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A92AE29158; Thu, 3 May 2018 00:42:43 +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 21CFA29150 for ; Thu, 3 May 2018 00:42:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751894AbeECAml (ORCPT ); Wed, 2 May 2018 20:42:41 -0400 Received: from mail-eopbgr10062.outbound.protection.outlook.com ([40.107.1.62]:38784 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751708AbeECAmj (ORCPT ); Wed, 2 May 2018 20:42:39 -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=/ZROZF6zfkBveXKrdgIN3wzaVjlNN/vsftxf3Z59O64=; b=YC4S0FX1TEThkfI2BfF9nY+SqGDKSwpMbHWOZT4P+G760cVr6ykXgzxweHFTfZ+qQisdaOkVgk+xUqCRv94tTknA3LXqSYBYBCvekG3s3LCjVtK1YH9qcPuJyCZP0bP31E7M0nHTRUzblNPPF8KAYEXe/poZCKR0dMIt4EG3JHY= 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 DB3PR0402MB3914.eurprd04.prod.outlook.com (2603:10a6:8:f::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.715.24; Thu, 3 May 2018 00:42:30 +0000 From: Li Jun To: robh+dt@kernel.org, gregkh@linuxfoundation.org, heikki.krogerus@linux.intel.com, linux@roeck-us.net Cc: jun.li@nxp.com, a.hajda@samsung.com, cw00.choi@samsung.com, shufan_lee@richtek.com, peter.chen@nxp.com, gsomlo@gmail.com, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, linux-imx@nxp.com Subject: [PATCH v5 14/14] staging: typec: tcpci: move tcpci driver out of staging Date: Thu, 3 May 2018 08:24:54 +0800 Message-Id: <1525307094-27402-15-git-send-email-jun.li@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1525307094-27402-1-git-send-email-jun.li@nxp.com> References: <1525307094-27402-1-git-send-email-jun.li@nxp.com> MIME-Version: 1.0 X-Originating-IP: [92.121.68.129] X-ClientProxiedBy: OSAPR01CA0012.jpnprd01.prod.outlook.com (2603:1096:603:2a::24) To DB3PR0402MB3914.eurprd04.prod.outlook.com (2603:10a6:8:f::29) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:DB3PR0402MB3914; X-Microsoft-Exchange-Diagnostics: 1; DB3PR0402MB3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zyFJjYqgNhVyAihyR/Y9YcjgNr1c/cQsCffdTRV67tY8Uw6DAGCDaxtcE2MBlyH9t0P4DAldHniUXbItAx7VXNu1U8J4uKjAqHtk51TkAOHUct31tavFdoLnuNtxlnKXhb5j2ia2OvJFXkWQ9DCZytQPeElIVpBXmbqfB3T4BfI2154jWYij/IS5lXA4/LD9/gzHmaLc7Alnj/YNGPSR1Dk8LdnIkJY6wi5k8r4AggPKmOKnC/Qn/W2Shdn5LuwT0Eo35gfUVVwPmKN26OePvZqFAit242WUGMT0YnUHUbtqv3O/6wmvNBwsRf0NZWvh7RBc2353GORpc6mh3Bc3YOKdm+zCBpeoZzuQ; 4:nqt9k3eROuABq5M/xWfUmeqabp8JMqjGCsL50jp4Q9Q0S4rfmGQZRxUepNmn22QHZ5uOd+oRjzriw45iiJlyqgcZ/RCJs8Iyiz2cwmKFYbr8kgAOYVElowgW99dWAx1ejM5CB/A0WitVLnEPl0mvgvFqgkdznSliI8oSPYLIVU/ov0TYFqq8/zcU11Shbns2lq1OfLO+GeAvMduwbQh2HqqcMIDPoO1q5OTKAuLIt1BPxHAprA4VKxT/I3cpQ27HAEhpmtcgMcLsjBIkUD228/WTt7Y6qvzOoC5C5TUNjme9EJC3hmor/FwgFmsmxHWLYnRj0qw6c78InPH0fkpn1zqwmjQYR+BmweXLkbwb5ZM= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(3231254)(944501410)(52105095)(6055026)(6041310)(20161123562045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011); SRVR:DB3PR0402MB3914; BCL:0; PCL:0; RULEID:; SRVR:DB3PR0402MB3914; X-Forefront-PRVS: 066153096A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(39380400002)(376002)(39860400002)(346002)(366004)(189003)(199004)(7416002)(47776003)(7736002)(8936002)(66066001)(305945005)(106356001)(2906002)(5660300001)(6486002)(105586002)(6116002)(3846002)(6666003)(81166006)(8676002)(50226002)(68736007)(81156014)(36756003)(956004)(2616005)(386003)(16586007)(476003)(50466002)(6506007)(6512007)(97736004)(316002)(446003)(39060400002)(52116002)(26005)(76176011)(48376002)(4326008)(11346002)(486006)(16526019)(86362001)(51416003)(53936002)(186003)(478600001)(25786009); DIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR0402MB3914; H:b47624-OptiPlex-7040.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB3PR0402MB3914; 23:tj5L7myHoZ3pIgaMHybdSYe24xOOtn1d2KnMFnc?= =?us-ascii?Q?40Gs1+tXhK213RKW/JNSYKW7mFYwcZLgqBkiagLVhF8FniFb3l6UPIddC7sZ?= =?us-ascii?Q?fUnoJIR4+FtbGnpQaqD1+/ams8MzFKB8K1QzyPe7IrFZ95SlS06z7mgH0UVE?= =?us-ascii?Q?PgWJpnfQeEzafcrNpuKLXuZWqTe/32TTFB8luzscxG433sxgds+w4dRj+cbt?= =?us-ascii?Q?UBRZEcR7dsjgaCCRlO3q0guIFJtzunJMmCscsKXYJiNBTwbEBymXFzeEYxJ2?= =?us-ascii?Q?6hbNdJZeqwxqphbUKQyEePvqrfhcdf4SLvdSiDwQ92WoCC/aGjnrygiCuMA/?= =?us-ascii?Q?OcdQvYTtVzxEpNrvkMUXquj4DT2abnjCJAX6iIXHAHX7yhjo5vPPQKvCbBIt?= =?us-ascii?Q?rtbetFAQ8c3VPco8daCQwVgkB2l+5cG47GZRyr5k0EqTbK0A9HfmGQ/moKec?= =?us-ascii?Q?KB0N1+mNvqkeF8K7zJ3xpuQ1DiWj7208wFl6HHNK+Vhifjh0nmLpdxoztmS5?= =?us-ascii?Q?hFghEPTMxv28XuVBGOHl/Cx33tsBnUrVjbLc0/S/0GIEduLsvZSGOGnjU6Eu?= =?us-ascii?Q?U6D7qirNjUhwh40afIRaEic8Nfq8bzszvvr3t9xlw3HDBh3XYA4GkphU0W1H?= =?us-ascii?Q?nNlEsrUS0JW50/ojQsgBjgaR/GfiippSw5go50pbzVYUtwjz/l5EvxStJk3r?= =?us-ascii?Q?1aSvAguK+3m3qwLbJYNeaYmDB3lvwIijzlDwuP3JLkOwYIWkgfcY9UWoHje5?= =?us-ascii?Q?+CPNCT7+89ZZ4PLkt9cFSV1Bhw/9c78mde35S9ld+3r6gtCeSsRlpVhWc+25?= =?us-ascii?Q?7M2jxOj2bOskkk5JQfrKpw8PH/gbBmU7SEVNZOOCW0nShXCSuEBXNcgW5U0I?= =?us-ascii?Q?Bu6hGcM3o2C0TAwV7r3iWBIgjaKc6RULAPKNtXYS0DEBujHIC+RAIMuzJJoO?= =?us-ascii?Q?wZLvYBvzdzuWsRlZkR5zrCt/jEgJx8rnlAZi418cw34NSEgjxG+2iKvmnj7M?= =?us-ascii?Q?YHha+ZXO0JWS1plrcDyZBV96MpSHl3jhrBpiOVKr/byuElIR/pi29+EhANyL?= =?us-ascii?Q?0z8vVN8NG2UoMg4ytv6Kqk4WN7Exd3AdTyEUCqctXj8+ta9Sy68lb31adR6I?= =?us-ascii?Q?gFYLdrTTB+0vLa5GpiZbJOGrUFoUyKxKK7Dp1zeBmArelEK3QFuMaJLO81Cs?= =?us-ascii?Q?+vh9EsObviXm63HqR/FHOtNQH9hm0ihHTdXpg?= X-Microsoft-Antispam-Message-Info: IKi1FdZc3pB/Kw5ETFLieSkdj7OCkz78lgMzUbDkHAfdaHKwYAgCqibysYBcVSfKLZ72x+JivxLgeheqQq4QFoCr7WLkiScOZSycXETNSLt8zcBs1d4HPGjboDrzG+vKJO76UVaDCfePX4varl6w25bKybuHW1+aaICoBCqvCZQymtOjWN8w9mQ4USaMRtD2 X-Microsoft-Exchange-Diagnostics: 1; DB3PR0402MB3914; 6:Wx7Sd/YGXd9S6QZSe8Z3EOJnq5eF1TmWcgATZ1UCfjYLz5k4Lqr6thFi10IJtkJgwzatmEa5dNXecIYtGbZcf68b+uNVsENnTvS7DbQleM+nu7IOMuf5vXTP9j3FZx8jSiFby31M03JZlPiBVtu+FXhUrRH8NrVgMukuBZqWDfc1FI4MyoOBXxMa87D+M0XpfMMWw2CXnGHgCmmz7QV/k4kAuV+q7bnNh76gD9bOYrFRwUPSliJ87VL+OJHicBxf575S2CQq3zKVKIv3tfQCFtZxZQ8V/7Q9eyFTkOXvsOHPLe6XD/322O1nHsh8EiWA0m0O6uo2oHZLkj0ODd7oLj6K6X01c5faD8S/E40X3P53uN3sEVmLtfVMdepexWHfz9SsxD8FpGA5uIKPdclSeZq/3+yalyauSgrzAgv1zLbwaItMreQjIKGsM2wlnSJ28h7hpW3dCuWV/aSmSDmuZA==; 5:ndROScnR9Qo4ltCnmL3kEOzTTYPoxy/xaIrO0uVWmo7h/G9qgQi9yO7owFptf19u+ORzykDnbcO+kwHVcEunoKcKPsSK9n1oebGt3AASv4s4snOFy1iKS9hi1RqJ0vALfwUXBkZEC7DjjeqBGs3MLSbufn0ctLaTC08bTc/mmds=; 24:+VJ/wVJS+Koy1xPyfy3eZ5zDRm7CG6oKhmTMEdQhky+MMli1g5wJZNwQB2rZCeoT75/AhClUI4/dAt+mKzJTk8aadKYcxMxWiLKjl3ztsho= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB3PR0402MB3914; 7:hjXpHJEFA55EJCnmAntaLlyWrP1zbiV9zlr1EC4VVhsqcAx+tL5yYv5E3h17XHnNcH9rbKS+fYBl/+6b3bT0tQ6CI37JEtS85WtPxERAhnJ5qkLL6dUkfdzoyyChnHiYPZGGkjBYShgidz5jDqAPZySURf6FVU1NgAQU6hsT48EP35yulO6YbR4jXlJF+qdv4Wi2KfQosl7NlpdEglvKDaaREbFJFM5GhGXwI6rrC+4Vi1UQjhpY+N45+2XBOHba X-MS-Office365-Filtering-Correlation-Id: 5805310d-ce12-4815-bd34-08d5b08ec411 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 May 2018 00:42:30.8508 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5805310d-ce12-4815-bd34-08d5b08ec411 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3914 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 Move TCPCI(Typec port controller interface) driver out of staging. Signed-off-by: Li Jun --- drivers/staging/Kconfig | 2 -- drivers/staging/Makefile | 1 - drivers/staging/typec/TODO | 5 ----- drivers/usb/typec/Kconfig | 7 +++++++ drivers/usb/typec/Makefile | 1 + drivers/{staging => usb}/typec/tcpci.c | 0 drivers/{staging => usb}/typec/tcpci.h | 0 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/Kconfig b/drivers/staging/Kconfig index d5926f0..d83ff66 100644 --- a/drivers/staging/Kconfig +++ b/drivers/staging/Kconfig @@ -112,8 +112,6 @@ source "drivers/staging/greybus/Kconfig" source "drivers/staging/vc04_services/Kconfig" -source "drivers/staging/typec/Kconfig" - source "drivers/staging/vboxvideo/Kconfig" source "drivers/staging/pi433/Kconfig" diff --git a/drivers/staging/Makefile b/drivers/staging/Makefile index 919753c..a71ec1f 100644 --- a/drivers/staging/Makefile +++ b/drivers/staging/Makefile @@ -2,7 +2,6 @@ # Makefile for staging directory obj-y += media/ -obj-y += typec/ obj-$(CONFIG_IPX) += ipx/ obj-$(CONFIG_NCP_FS) += ncpfs/ obj-$(CONFIG_PRISM2_USB) += wlan-ng/ diff --git a/drivers/staging/typec/TODO b/drivers/staging/typec/TODO deleted file mode 100644 index 53fe2f7..0000000 --- a/drivers/staging/typec/TODO +++ /dev/null @@ -1,5 +0,0 @@ -tcpci: -- Test with real hardware - -Please send patches to Guenter Roeck and copy -Heikki Krogerus . diff --git a/drivers/usb/typec/Kconfig b/drivers/usb/typec/Kconfig index 2c8eab1..0a862fc 100644 --- a/drivers/usb/typec/Kconfig +++ b/drivers/usb/typec/Kconfig @@ -56,6 +56,13 @@ config TYPEC_TCPM if TYPEC_TCPM +config TYPEC_TCPCI + tristate "Type-C Port Controller Interface driver" + depends on I2C + select REGMAP_I2C + help + Type-C Port Controller driver for TCPCI-compliant controller. + source "drivers/usb/typec/fusb302/Kconfig" config TYPEC_WCOVE diff --git a/drivers/usb/typec/Makefile b/drivers/usb/typec/Makefile index 1f599a6..02758a1 100644 --- a/drivers/usb/typec/Makefile +++ b/drivers/usb/typec/Makefile @@ -7,3 +7,4 @@ obj-$(CONFIG_TYPEC_WCOVE) += typec_wcove.o obj-$(CONFIG_TYPEC_UCSI) += ucsi/ obj-$(CONFIG_TYPEC_TPS6598X) += tps6598x.o obj-$(CONFIG_TYPEC) += mux/ +obj-$(CONFIG_TYPEC_TCPCI) += tcpci.o diff --git a/drivers/staging/typec/tcpci.c b/drivers/usb/typec/tcpci.c similarity index 100% rename from drivers/staging/typec/tcpci.c rename to drivers/usb/typec/tcpci.c diff --git a/drivers/staging/typec/tcpci.h b/drivers/usb/typec/tcpci.h similarity index 100% rename from drivers/staging/typec/tcpci.h rename to drivers/usb/typec/tcpci.h