linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 00/10] Bluetooth on 2015+ MacBook (Pro)
@ 2018-01-02 19:08 Lukas Wunner
  2018-01-02 19:08 ` [PATCH v2 01/10] Bluetooth: Depend on rather than select GPIOLIB Lukas Wunner
                   ` (9 more replies)
  0 siblings, 10 replies; 31+ messages in thread
From: Lukas Wunner @ 2018-01-02 19:08 UTC (permalink / raw)
  To: Marcel Holtmann, Johan Hedberg
  Cc: Mika Westerberg, Andy Shevchenko, Frederic Danis, Loic Poulain,
	Hans de Goede, Max Shavrick, Leif Liddy, Daniel Roschka,
	Ronald Tschalaer, Peter Y. Chuang, linux-bluetooth, Linus Walleij,
	Uwe Kleine-Koenig

Enable UART-attached Bluetooth on 2015+ MacBook (Pro), v2.

Changes since v1:

- New patch [1/10] to make Bluetooth drivers depend on rather than select
  GPIOLIB. (Andy, Linus)

- New patch [2/10] to enforce presence of shutdown and device wake GPIO.
  (Andy, Linus, Loic)

- Split off hunks:
  to enable runtime PM despite absence of IRQ into patch [3/10],
  to validate the IRQ before using it into patch [4/10],
  to add a helper to toggle device wake GPIO into patch [5/10]. (Marcel)

- In patch [5/10], I had previously forgotten to toggle the device wake
  GPIO in bcm_gpio_set_power() on Macs, this is now fixed.

- New patch [6/10] to silence an irritating IRQ printk.

- New patch [7/10] to clean up an unnecessary #ifdef.

- New patch [8/10] to add kerneldoc for struct bcm_device.

- New patch [9/10] to add proper error handling to the driver.

- In patch [10/10]:
  add DSDT excerpt to the commit message,
  drop ternary operators for readability,
  return -EIO instead of -EFAULT if ACPI method calls fail,
  return -EOPNOTSUPP in inline stubs,
  use network subsystem comment style. (Marcel, Hans, Andy)
  Also, to accommodate to mandatory presence of the two GPIOs as per
  patch [2/10], rename bcm_apple_probe() to bcm_apple_get_resources()
  and call it from bcm_get_resources() instead of bcm_acpi_probe().

Link to v1:

https://www.spinics.net/lists/linux-bluetooth/msg73527.html

Thanks,

Lukas


Lukas Wunner (9):
  Bluetooth: Depend on rather than select GPIOLIB
  Bluetooth: hci_bcm: Mandate presence of shutdown and device wake GPIO
  Bluetooth: hci_bcm: Enable runtime PM despite absence of IRQ
  Bluetooth: hci_bcm: Add helper to toggle device wake GPIO
  Bluetooth: hci_bcm: Silence IRQ printk
  Bluetooth: hci_bcm: Clean up unnecessary #ifdef
  Bluetooth: hci_bcm: Document struct bcm_device
  Bluetooth: hci_bcm: Handle errors properly
  Bluetooth: hci_bcm: Support Apple GPIO handling

Ronald Tschalär (1):
  Bluetooth: hci_bcm: Validate IRQ before using it

 drivers/bluetooth/Kconfig   |   6 +-
 drivers/bluetooth/hci_bcm.c | 230 ++++++++++++++++++++++++++++++++++++--------
 2 files changed, 192 insertions(+), 44 deletions(-)

-- 
2.15.1

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

end of thread, other threads:[~2018-01-05 18:27 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-02 19:08 [PATCH v2 00/10] Bluetooth on 2015+ MacBook (Pro) Lukas Wunner
2018-01-02 19:08 ` [PATCH v2 01/10] Bluetooth: Depend on rather than select GPIOLIB Lukas Wunner
2018-01-03  7:52   ` Linus Walleij
2018-01-05 18:27   ` Marcel Holtmann
2018-01-02 19:08 ` [PATCH v2 05/10] Bluetooth: hci_bcm: Add helper to toggle device wake GPIO Lukas Wunner
2018-01-03 13:06   ` Andy Shevchenko
2018-01-02 19:08 ` [PATCH v2 09/10] Bluetooth: hci_bcm: Handle errors properly Lukas Wunner
2018-01-03 16:08   ` Andy Shevchenko
2018-01-03 18:54     ` Lukas Wunner
2018-01-03 19:08       ` Andy Shevchenko
2018-01-02 19:08 ` [PATCH v2 02/10] Bluetooth: hci_bcm: Mandate presence of shutdown and device wake GPIO Lukas Wunner
2018-01-03 12:55   ` Marcel Holtmann
2018-01-02 19:08 ` [PATCH v2 08/10] Bluetooth: hci_bcm: Document struct bcm_device Lukas Wunner
2018-01-02 19:08 ` [PATCH v2 10/10] Bluetooth: hci_bcm: Support Apple GPIO handling Lukas Wunner
2018-01-03 12:55   ` Marcel Holtmann
2018-01-03 16:12   ` Andy Shevchenko
2018-01-02 19:08 ` [PATCH v2 03/10] Bluetooth: hci_bcm: Enable runtime PM despite absence of IRQ Lukas Wunner
2018-01-02 19:17   ` Hans de Goede
2018-01-02 23:36     ` Lukas Wunner
2018-01-03  8:07       ` Hans de Goede
2018-01-03 13:34         ` Lukas Wunner
2018-01-03 12:34       ` Marcel Holtmann
2018-01-03 13:22         ` Lukas Wunner
2018-01-03 13:29           ` Marcel Holtmann
2018-01-03 13:34             ` Lukas Wunner
2018-01-02 19:08 ` [PATCH v2 06/10] Bluetooth: hci_bcm: Silence IRQ printk Lukas Wunner
2018-01-03 13:08   ` Andy Shevchenko
2018-01-03 13:56     ` Lukas Wunner
2018-01-03 16:05       ` Andy Shevchenko
2018-01-02 19:08 ` [PATCH v2 07/10] Bluetooth: hci_bcm: Clean up unnecessary #ifdef Lukas Wunner
2018-01-02 19:08 ` [PATCH v2 04/10] Bluetooth: hci_bcm: Validate IRQ before using it Lukas Wunner

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