linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH v4 0/8] usb: typec: Support for Alternate Modes
@ 2018-06-08 11:29 Heikki Krogerus
  2018-06-08 11:29 ` [RFC PATCH v4 1/8] usb: pd: include kernel.h Heikki Krogerus
                   ` (7 more replies)
  0 siblings, 8 replies; 16+ messages in thread
From: Heikki Krogerus @ 2018-06-08 11:29 UTC (permalink / raw)
  To: Guenter Roeck, Hans de Goede
  Cc: Greg Kroah-Hartman, Jun Li, Mats Karrman, linux-usb, linux-kernel

Hi,

This is the fourth (and hopefully last RFC) of my proposal for more
complete alternate mode support. In this version the main difference
compared to the previous versions is the displayport alt mode driver.

For those who have no idea what is this about, the idea is to add a
bus type for the USB-C alternate modes. All alternate modes, for
example DisplayPort, require specific communication, so we will need
separate driver for every alternate mode. For more details please read
the cover letter of the previous version here:

https://lkml.org/lkml/2018/5/11/323

It took some time for me to get permission to publish the displayport
alt mode driver. Sorry for the delay. I was actually hoping that I
could include changes also to the drm subsystem already now, but it
ended up being more complicated than I first though, and I quite
simply don't have time for that, so let's just start with these.


Heikki Krogerus (8):
  usb: pd: include kernel.h
  usb: typec: helper for checking cable plug orientation
  usb: typec: mux: Get the mux identifier from function parameter
  usb: typec: Register a device for every mode
  usb: typec: Bus type for alternate modes
  usb: typec: Add driver for DisplayPort alternate mode
  usb: typec: pi3usb30532: Start using generic state values
  usb: typec: tcpm: Support for Alternate Modes

 Documentation/ABI/obsolete/sysfs-class-typec  |  48 ++
 Documentation/ABI/testing/sysfs-bus-typec     |  51 ++
 Documentation/ABI/testing/sysfs-class-typec   |  62 +-
 .../testing/sysfs-driver-typec-displayport    |  49 ++
 Documentation/driver-api/usb/typec_bus.rst    | 136 +++++
 MAINTAINERS                                   |  13 +-
 drivers/usb/typec/Kconfig                     |   2 +
 drivers/usb/typec/Makefile                    |   3 +-
 drivers/usb/typec/altmodes/Kconfig            |  14 +
 drivers/usb/typec/altmodes/Makefile           |   2 +
 drivers/usb/typec/altmodes/displayport.c      | 543 ++++++++++++++++++
 drivers/usb/typec/bus.c                       | 401 +++++++++++++
 drivers/usb/typec/bus.h                       |  38 ++
 drivers/usb/typec/class.c                     | 485 ++++++++++------
 drivers/usb/typec/mux.c                       |   6 +-
 drivers/usb/typec/mux/pi3usb30532.c           |  15 +-
 drivers/usb/typec/tcpm.c                      | 184 ++++--
 include/linux/mod_devicetable.h               |  15 +
 include/linux/usb/pd.h                        |   1 +
 include/linux/usb/tcpm.h                      |   9 -
 include/linux/usb/typec.h                     |  52 +-
 include/linux/usb/typec_altmode.h             | 160 ++++++
 include/linux/usb/typec_dp.h                  |  70 +++
 include/linux/usb/typec_mux.h                 |   2 +-
 scripts/mod/devicetable-offsets.c             |   4 +
 scripts/mod/file2alias.c                      |  13 +
 26 files changed, 2053 insertions(+), 325 deletions(-)
 create mode 100644 Documentation/ABI/obsolete/sysfs-class-typec
 create mode 100644 Documentation/ABI/testing/sysfs-bus-typec
 create mode 100644 Documentation/ABI/testing/sysfs-driver-typec-displayport
 create mode 100644 Documentation/driver-api/usb/typec_bus.rst
 create mode 100644 drivers/usb/typec/altmodes/Kconfig
 create mode 100644 drivers/usb/typec/altmodes/Makefile
 create mode 100644 drivers/usb/typec/altmodes/displayport.c
 create mode 100644 drivers/usb/typec/bus.c
 create mode 100644 drivers/usb/typec/bus.h
 create mode 100644 include/linux/usb/typec_altmode.h
 create mode 100644 include/linux/usb/typec_dp.h

-- 
2.17.1

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2018-06-13 12:33 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-08 11:29 [RFC PATCH v4 0/8] usb: typec: Support for Alternate Modes Heikki Krogerus
2018-06-08 11:29 ` [RFC PATCH v4 1/8] usb: pd: include kernel.h Heikki Krogerus
2018-06-11  7:08   ` Greg Kroah-Hartman
2018-06-11  8:51     ` Heikki Krogerus
2018-06-08 11:29 ` [RFC PATCH v4 2/8] usb: typec: helper for checking cable plug orientation Heikki Krogerus
2018-06-12 18:56   ` Mats Karrman
2018-06-12 22:18     ` Guenter Roeck
2018-06-13 12:33       ` Heikki Krogerus
2018-06-08 11:29 ` [RFC PATCH v4 3/8] usb: typec: mux: Get the mux identifier from function parameter Heikki Krogerus
2018-06-08 11:29 ` [RFC PATCH v4 4/8] usb: typec: Register a device for every mode Heikki Krogerus
2018-06-08 11:29 ` [RFC PATCH v4 5/8] usb: typec: Bus type for alternate modes Heikki Krogerus
2018-06-08 11:29 ` [RFC PATCH v4 6/8] usb: typec: Add driver for DisplayPort alternate mode Heikki Krogerus
2018-06-08 14:04   ` Heikki Krogerus
2018-06-08 11:29 ` [RFC PATCH v4 7/8] usb: typec: pi3usb30532: Start using generic state values Heikki Krogerus
2018-06-08 17:51   ` Sergei Shtylyov
2018-06-08 11:29 ` [RFC PATCH v4 8/8] usb: typec: tcpm: Support for Alternate Modes Heikki Krogerus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).