Skip to content

ACPI serdev support

Frédéric Danis linux-acpi linux-bluetooth linux-serial 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest1 of 2 patches 16 repliesIn review
  2. v20 of 2 patches 0 repliesSuperseded
  3. v11 of 2 patches 13 repliesSuperseded

Changes in v3 from the cover letter

- Remove ctrl->serdev set to NULL in acpi_serdev_register_device() in favor of Johan's patch
- Fallback to ctrl->serdev check when acpi_walk_namespace() returns an error to prevent memory leak
- Remove a change in dev_dbg() call in serdev_controller_add(), this will be done in separate patch

1 of 2 patches is in this archive. The cover letter announces 2.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2serdev: Add ACPI supportdrivers/tty/serdev/core.c+95 -51 reply

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchRob HerringSebastian ReichelGreg Kroah-HartmanJohan HovoldRafael J. WysockiRonald TschalärPeter Y. Chuang
SeriesR-b A-b T-b T-b
1/2R-b R-b A-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 7 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/2] ACPI serdev support

Add ACPI support for serial attached devices.

Currently, serial devices are not set as enumerated during ACPI scan for SPI or i2c buses (but not for UART). This should also be done for UART serial devices.
I renamed *spi_i2c_slave* to *serial_bus_slave* to reflect this.

This needs Johan Hovold's "serdev: fix registration of second slave" patch.

Tested on T100TA with Broadcom BCM2E39.

Since v2:
- Remove ctrl->serdev set to NULL in acpi_serdev_register_device() in favor of Johan's patch
- Fallback to ctrl->serdev check when acpi_walk_namespace() returns an error to prevent memory leak
- Remove a change in dev_dbg() call in serdev_controller_add(), this will be done in separate patch
Since v1:
- Check if a serdev device as been allocated during acpi_walk_namespace() to prevent serdev controller registration instead of the tty-class device.
- Reword dev_dbg() strings replacing Serial by serdev
- Removing redundant "serdev%d" in dev_dbg() calls in serdev_controller_add()
Since RFC:
- Add or reword commit messages
- Rename *serial_slave* to *serial_bus_slave*
- Add specific check for Apple in acpi_is_serial_bus_slave(), thanks to Lukas Wunner
- Update comment in acpi_default_enumeration()
- Remove patch 3 "Bluetooth: hci_bcm: Add ACPI serdev support for BCM2E39" in favor of patches from Hans de Goede

Frédéric Danis (2):
serdev: Add ACPI support
ACPI / scan: Fix enumeration for special UART devices

 drivers/acpi/scan.c       |  37 ++++++++---------
 drivers/tty/serdev/core.c | 100 +++++++++++++++++++++++++++++++++++++++++++---
 include/acpi/acpi_bus.h   |   2 +-
 3 files changed, 113 insertions(+), 26 deletions(-)
Signature · 1 line
2.7.4