Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If two drivers are probing devices at the same time, both will write their match table result to the dev->of_match cache at the same time. Only write the result if the device matches. In a thread titled "SBus devices sometimes detected, sometimes not", Meelis reported his SBus hme was not detected about 50% of the time. From the debug suggested by Grant it was obvious another driver matched some devices between the call to match the hme and the hme discovery failling. Reported-by: Meelis Roos <[email protected]> Signed-off-by: Milton Miller <[email protected]> [grant.likely: modified to only call of_match_device() once] Signed-off-by: Grant Likely <[email protected]>
- Loading branch information