diff options
author | NĂcolas F. R. A. Prado <[email protected]> | 2023-08-28 17:13:11 -0400 |
---|---|---|
committer | Rob Herring <[email protected]> | 2023-09-20 14:25:10 -0500 |
commit | 365ba0c7a73cce407bf40cdf9900b86b945d4acb (patch) | |
tree | 36862dd349aabe419eef0f709fcdb1a88d39ecd1 /scripts/generate_rust_analyzer.py | |
parent | eb2139fc0da63b89a2ad565ecd8133a37e8b7c4f (diff) |
dt: dt-extract-compatibles: Add flag for driver matching compatibles
Add a new flag, '--driver-match', to the dt-extract-compatibles script
that causes it to only print out compatibles that are expected to match
a driver. This output can then be used by tests to detect device probe
failures.
In order to filter the compatibles down to only ones that will match to
a driver, the following is considered:
- A compatible needs to show up in a driver's of_match_table for it to
be matched to a driver
- Compatibles that are used in both of_match_table and OF_DECLARE type
macros can't be expected to match to a driver and so are ignored.
One exception is CLK_OF_DECLARE_DRIVER, since it indicates that a
driver will also later probe, so compatibles in this macro are not
ignored.
Signed-off-by: NĂcolas F. R. A. Prado <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Rob Herring <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions