aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorPierre-Louis Bossart <[email protected]>2020-09-24 14:44:30 -0500
committerVinod Koul <[email protected]>2020-09-28 11:17:43 +0530
commit0173f525b2c1b02a51784e2119d434593235aed1 (patch)
treebe7fd015e55158bb0ce939863460626788948415 /tools/perf/scripts/python/bin/stackcollapse-report
parentfcb9d730be1d3010e0c8fdc5aaff62836d7a942c (diff)
soundwire: sysfs: add slave status and device number before probe
The MIPI DisCo device properties that are read by the driver from platform firmware, or hard-coded in the driver, should only be provided as sysfs entries when a driver probes successfully. However the device status and device number is updated even when there is no driver present, and hence can be updated when a Slave device is detected on the bus without being described in platform firmware and without any driver registered/probed. As suggested by GregKH, the attribute group for Slave status and device number is is added by default upon device registration. Credits to Vinod Koul for the status_show() function, shared in a separate patch and used as is here. The status table was modified to remove an unnecessary enum and status_show() is handled in a different group attribute than what was suggested by Vinod. Tested-by: Srinivas Kandgatla <[email protected]> Signed-off-by: Pierre-Louis Bossart <[email protected]> Co-developed-by: Vinod Koul <[email protected]> Reviewed-by: Greg Kroah-Hartman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions