linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 00/15] Thunderbolt driver for Apple MacBooks
@ 2014-06-03 20:03 Andreas Noever
  2014-06-03 20:03 ` [PATCH v5 01/15] thunderbolt: Add initial cactus ridge NHI support Andreas Noever
                   ` (16 more replies)
  0 siblings, 17 replies; 23+ messages in thread
From: Andreas Noever @ 2014-06-03 20:03 UTC (permalink / raw)
  To: linux-kernel, Matthew Garrett, Greg KH, Bjorn Helgaas, linux-pci
  Cc: Andreas Noever

Hi,

Updated version of the driver. Includes changes by Matthew to make it work on
Falcon Ridge hardware (present in the newest Mac(Book)Pro). 

Changes since v4 (suggested by Matthew):
 - Changed the PCI quirks to check just for Apple hardware instead of checking
   against a list of machines. (The PCI id check already restricts this quirk
to the relevant Apple machines).
 - Added Falcon Ridge PCI id to the driver and to the "wait_for_thunderbolt"
   quirk (the "poweroff_thunderbolt" quirk is no longer necessary for Falcon
Ridge devices).
 - Fixed plug events for Falcon Ridge hardware.

@Matthew: I think that your patch was missing the Falcon Ridge PCI id within
the wait_for_thunderbolt quirk (I have added it). If you have time could you
verify that suspend/resume works on your MacPro?  Thanks!

As before Matthew's ACPI changes (latest version: [1]) are required for this to
work properly. Without them you need to boot with a coldplugged TB device to
prevent the firmware from disabling the controller.

Thanks,
Andreas

[1]: https://lkml.org/lkml/2014/6/1/165 


Andreas Noever (15):
  thunderbolt: Add initial cactus ridge NHI support
  thunderbolt: Add control channel interface
  thunderbolt: Setup control channel
  thunderbolt: Add tb_regs.h
  thunderbolt: Initialize root switch and ports
  thunderbolt: Add thunderbolt capability handling
  thunderbolt: Enable plug events
  thunderbolt: Scan for downstream switches
  thunderbolt: Handle hotplug events
  thunderbolt: Add path setup code.
  thunderbolt: Add support for simple pci tunnels
  PCI: Add pci_fixup_suspend_late quirk pass
  PCI: Suspend/resume quirks for Apple thunderbolt
  thunderbolt: Read switch uid from EEPROM
  thunderbolt: Add suspend/hibernate support

 drivers/Kconfig                   |   2 +
 drivers/Makefile                  |   1 +
 drivers/pci/pci-driver.c          |  18 +-
 drivers/pci/quirks.c              | 104 ++++++
 drivers/thunderbolt/Kconfig       |  12 +
 drivers/thunderbolt/Makefile      |   3 +
 drivers/thunderbolt/cap.c         | 116 ++++++
 drivers/thunderbolt/ctl.c         | 731 ++++++++++++++++++++++++++++++++++++++
 drivers/thunderbolt/ctl.h         |  75 ++++
 drivers/thunderbolt/eeprom.c      | 189 ++++++++++
 drivers/thunderbolt/nhi.c         | 677 +++++++++++++++++++++++++++++++++++
 drivers/thunderbolt/nhi.h         | 114 ++++++
 drivers/thunderbolt/nhi_regs.h    | 101 ++++++
 drivers/thunderbolt/path.c        | 215 +++++++++++
 drivers/thunderbolt/switch.c      | 498 ++++++++++++++++++++++++++
 drivers/thunderbolt/tb.c          | 431 ++++++++++++++++++++++
 drivers/thunderbolt/tb.h          | 266 ++++++++++++++
 drivers/thunderbolt/tb_regs.h     | 213 +++++++++++
 drivers/thunderbolt/tunnel_pci.c  | 232 ++++++++++++
 drivers/thunderbolt/tunnel_pci.h  |  30 ++
 include/asm-generic/vmlinux.lds.h |   3 +
 include/linux/pci.h               |  12 +-
 22 files changed, 4038 insertions(+), 5 deletions(-)
 create mode 100644 drivers/thunderbolt/Kconfig
 create mode 100644 drivers/thunderbolt/Makefile
 create mode 100644 drivers/thunderbolt/cap.c
 create mode 100644 drivers/thunderbolt/ctl.c
 create mode 100644 drivers/thunderbolt/ctl.h
 create mode 100644 drivers/thunderbolt/eeprom.c
 create mode 100644 drivers/thunderbolt/nhi.c
 create mode 100644 drivers/thunderbolt/nhi.h
 create mode 100644 drivers/thunderbolt/nhi_regs.h
 create mode 100644 drivers/thunderbolt/path.c
 create mode 100644 drivers/thunderbolt/switch.c
 create mode 100644 drivers/thunderbolt/tb.c
 create mode 100644 drivers/thunderbolt/tb.h
 create mode 100644 drivers/thunderbolt/tb_regs.h
 create mode 100644 drivers/thunderbolt/tunnel_pci.c
 create mode 100644 drivers/thunderbolt/tunnel_pci.h

-- 
2.0.0


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

end of thread, other threads:[~2014-06-30  9:17 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-03 20:03 [PATCH v5 00/15] Thunderbolt driver for Apple MacBooks Andreas Noever
2014-06-03 20:03 ` [PATCH v5 01/15] thunderbolt: Add initial cactus ridge NHI support Andreas Noever
2014-06-20  7:41   ` Paul Bolle
2014-06-20 16:34     ` Greg KH
2014-06-20 19:45     ` Andreas Noever
2014-06-20 20:28       ` Paul Bolle
2014-06-03 20:03 ` [PATCH v5 02/15] thunderbolt: Add control channel interface Andreas Noever
2014-06-03 20:04 ` [PATCH v5 03/15] thunderbolt: Setup control channel Andreas Noever
2014-06-03 20:04 ` [PATCH v5 04/15] thunderbolt: Add tb_regs.h Andreas Noever
2014-06-03 20:04 ` [PATCH v5 05/15] thunderbolt: Initialize root switch and ports Andreas Noever
2014-06-03 20:04 ` [PATCH v5 06/15] thunderbolt: Add thunderbolt capability handling Andreas Noever
2014-06-03 20:04 ` [PATCH v5 07/15] thunderbolt: Enable plug events Andreas Noever
2014-06-03 20:04 ` [PATCH v5 08/15] thunderbolt: Scan for downstream switches Andreas Noever
2014-06-03 20:04 ` [PATCH v5 09/15] thunderbolt: Handle hotplug events Andreas Noever
2014-06-03 20:04 ` [PATCH v5 10/15] thunderbolt: Add path setup code Andreas Noever
2014-06-03 20:04 ` [PATCH v5 11/15] thunderbolt: Add support for simple pci tunnels Andreas Noever
2014-06-03 20:04 ` [PATCH v5 12/15] PCI: Add pci_fixup_suspend_late quirk pass Andreas Noever
2014-06-03 20:04 ` [PATCH v5 13/15] PCI: Suspend/resume quirks for Apple thunderbolt Andreas Noever
2014-06-03 20:04 ` [PATCH v5 14/15] thunderbolt: Read switch uid from EEPROM Andreas Noever
2014-06-03 20:04 ` [PATCH v5 15/15] thunderbolt: Add suspend/hibernate support Andreas Noever
2014-06-03 20:33 ` [PATCH v5 00/15] Thunderbolt driver for Apple MacBooks Greg KH
2014-06-19 21:14 ` Greg KH
2014-06-30  9:17   ` Andreas Noever

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).