]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
typec: tcpm: Move out of staging
authorGuenter Roeck <linux@roeck-us.net>
Tue, 12 Sep 2017 03:32:07 +0000 (20:32 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Sep 2017 08:58:31 +0000 (10:58 +0200)
Move tcpm (USB Type-C Port Manager) out of staging.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
12 files changed:
drivers/staging/typec/Kconfig
drivers/staging/typec/Makefile
drivers/staging/typec/TODO
drivers/staging/typec/fusb302/fusb302.c
drivers/staging/typec/tcpci.c
drivers/usb/typec/Kconfig
drivers/usb/typec/Makefile
drivers/usb/typec/tcpm.c [moved from drivers/staging/typec/tcpm.c with 99% similarity]
include/linux/usb/pd.h [moved from drivers/staging/typec/pd.h with 100% similarity]
include/linux/usb/pd_bdo.h [moved from drivers/staging/typec/pd_bdo.h with 100% similarity]
include/linux/usb/pd_vdo.h [moved from drivers/staging/typec/pd_vdo.h with 100% similarity]
include/linux/usb/tcpm.h [moved from drivers/staging/typec/tcpm.h with 100% similarity]

index 37a0781b0d0cbf6d25d2a3fcc1da8fc616c50929..31fad23c2553a9e3ddc1e9d677b799900f0ff833 100644 (file)
@@ -1,13 +1,5 @@
 menu "USB Power Delivery and Type-C drivers"
 
-config TYPEC_TCPM
-       tristate "USB Type-C Port Controller Manager"
-       depends on USB
-       select TYPEC
-       help
-         The Type-C Port Controller Manager provides a USB PD and USB Type-C
-         state machine for use with Type-C Port Controllers.
-
 if TYPEC_TCPM
 
 config TYPEC_TCPCI
index 30a7e29cbc9e64b8a318d92abc4bfb5deb4f8114..e1df3f0fde1022e179186afecb9e45b9341ad416 100644 (file)
@@ -1,3 +1,2 @@
-obj-$(CONFIG_TYPEC_TCPM)       += tcpm.o
 obj-$(CONFIG_TYPEC_TCPCI)      += tcpci.o
 obj-y                          += fusb302/
index bc1f97a2d1bff7b149934fbd4486db42488d0f50..53fe2f726c88767c80bd499eeed004abb4d71a55 100644 (file)
@@ -1,13 +1,3 @@
-tcpm:
-- Add documentation (at the very least for the API to low level drivers)
-- Split PD code into separate file
-- Check if it makes sense to use tracepoints instead of debugfs for debug logs
-- Implement Alternate Mode handling
-- Address "#if 0" code if not addressed with the above
-- Validate all comments marked with "XXX"; either address or remove comments
-- Add support for USB PD 3.0. While not mandatory, at least fast role swap
-  as well as authentication support would be very desirable.
-
 tcpci:
 - Test with real hardware
 
index fc6a3cf74eb3a92e0fac4119d7edc22218e5e6ab..e790b67d4953b9744b83ef3fea963eae32e1e121 100644 (file)
 #include <linux/string.h>
 #include <linux/types.h>
 #include <linux/usb/typec.h>
+#include <linux/usb/tcpm.h>
+#include <linux/usb/pd.h>
 #include <linux/workqueue.h>
 
 #include "fusb302_reg.h"
-#include "../tcpm.h"
-#include "../pd.h"
 
 /*
  * When the device is SNK, BC_LVL interrupt is used to monitor cc pins
index df72d8b01e730d5b2a9de183dbf9d64f662226f6..4636804ea1a49c242fbadb7e0f67e20944350166 100644 (file)
 #include <linux/i2c.h>
 #include <linux/interrupt.h>
 #include <linux/regmap.h>
+#include <linux/usb/pd.h>
+#include <linux/usb/tcpm.h>
 #include <linux/usb/typec.h>
 
-#include "pd.h"
 #include "tcpci.h"
-#include "tcpm.h"
 
 #define PD_RETRY_COUNT 3
 
index bc1b7745f1d4f3e73fc74b80a475d2bf02bcded5..88860586009119d7a9d8c9c15999ea30bbef3aa5 100644 (file)
@@ -4,6 +4,14 @@ menu "USB Power Delivery and Type-C drivers"
 config TYPEC
        tristate
 
+config TYPEC_TCPM
+       tristate "USB Type-C Port Controller Manager"
+       depends on USB
+       select TYPEC
+       help
+         The Type-C Port Controller Manager provides a USB PD and USB Type-C
+         state machine for use with Type-C Port Controllers.
+
 config TYPEC_WCOVE
        tristate "Intel WhiskeyCove PMIC USB Type-C PHY driver"
        depends on ACPI
index bc214f15f1b5580111a93bbfb253143c6f2a15a8..eb883984724b6ea8d8e41b046b7d6d7a18429950 100644 (file)
@@ -1,3 +1,4 @@
 obj-$(CONFIG_TYPEC)            += typec.o
+obj-$(CONFIG_TYPEC_TCPM)       += tcpm.o
 obj-$(CONFIG_TYPEC_WCOVE)      += typec_wcove.o
 obj-$(CONFIG_TYPEC_UCSI)       += ucsi/
similarity index 99%
rename from drivers/staging/typec/tcpm.c
rename to drivers/usb/typec/tcpm.c
index cb25ec8334b0a1a575aa3021c724566604529fde..f557c479fdc20c6116f14976a10c5488a42a0a6d 100644 (file)
 #include <linux/seq_file.h>
 #include <linux/slab.h>
 #include <linux/spinlock.h>
+#include <linux/usb/pd.h>
+#include <linux/usb/pd_bdo.h>
+#include <linux/usb/pd_vdo.h>
+#include <linux/usb/tcpm.h>
 #include <linux/usb/typec.h>
 #include <linux/workqueue.h>
 
-#include "pd.h"
-#include "pd_vdo.h"
-#include "pd_bdo.h"
-#include "tcpm.h"
-
 #define FOREACH_STATE(S)                       \
        S(INVALID_STATE),                       \
        S(DRP_TOGGLING),                        \