Skip to content

soundwire: sysfs: expose device number and status

Pierre-Louis Bossart alsa-devel 3 versions – Applied

Status from this message: Applied, thanks

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 2 repliesApplied
  2. v22 patches 9 repliesSuperseded
  3. v12 patches 3 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2soundwire: bus: add enumerated Slave device to device listdrivers/soundwire/bus.c drivers/soundwire/bus.h drivers/soundwire/bus_type.c +1 more+22 -20 replies
2/2soundwire: sysfs: add slave status and device number before probeDocumentation/ABI/testing/sysfs-bus-soundwire-slave drivers/soundwire/slave.c drivers/soundwire/sysfs_local.h +1 more+81 -11 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchSrinivas KandgatlaGreg Kroah-Hartman
1/2
2/2T-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] soundwire: sysfs: expose device number and status

This patchset combines three contributions:

Srinivas Kandagalta suggested creating a device even it's detected on the bus but not described in platform firmware. I suggested adding the device number and status to show the difference with 'ghost' devices, described in firmware but not physically present. Vinod suggested a simpler way to report the status.

I did not keep Vinod's patch separate since it was using the same group attribute as the other properties, which prevents status and device number from being reported if there is no firmware and no driver.

These patches were tested on Qualcomm and Intel platforms.

v3: add Co-developed-by tags and move 'status' and 'device_number' to device level instead of a dev-status directory.

v2: as suggested by GregKH, add attribute group by default by setting the groups pointer at the device level.

Pierre-Louis Bossart (1):
soundwire: sysfs: add slave status and device number before probe

Srinivas Kandagatla (1):
soundwire: bus: add enumerated Slave device to device list

 .../ABI/testing/sysfs-bus-soundwire-slave     | 18 ++++++
 drivers/soundwire/bus.c                       |  9 +++
 drivers/soundwire/bus.h                       |  2 +
 drivers/soundwire/bus_type.c                  |  9 +++
 drivers/soundwire/slave.c                     |  6 +-
 drivers/soundwire/sysfs_local.h               |  4 ++
 drivers/soundwire/sysfs_slave.c               | 58 ++++++++++++++++++-
 7 files changed, 103 insertions(+), 3 deletions(-)
Signature · 1 line
2.25.1