diff options
| author | Mike Leach <[email protected]> | 2020-09-28 10:35:06 -0600 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2020-09-28 19:47:41 +0200 |
| commit | cab280bf3533c72f95ebdb65ce534b5cdc4729dc (patch) | |
| tree | ee3be9a7730502e91da1b60a42aa0d9009fb9cee /tools/perf/scripts/python | |
| parent | 1cce921bce7dcf6fef9bdfa4dcc9406383274408 (diff) | |
coresight: cti: Fix bug clearing sysfs links on callback
During module unload, a coresight driver module will call back into
the CTI driver to remove any links between the two devices.
The current code has 2 issues:-
1) in the CTI driver the matching code is matching to the wrong device
so misses all the links.
2) The callback is called too late in the unload process resulting in a
crash.
This fixes both the issues.
Fixes: 177af8285b59 ("coresight: cti: Enable CTI associated with devices")
Reported-by: Tingwei Zhang <[email protected]>
Acked-by: Suzuki K Poulose <[email protected]>
Signed-off-by: Mike Leach <[email protected]>
Signed-off-by: Tingwei Zhang <[email protected]>
Signed-off-by: Mathieu Poirier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions