Skip to content

Commit

Permalink
Also search for ucm2/conf.d/[${CardDriver}|${KernelDriver}]/${CardNam…
Browse files Browse the repository at this point in the history
…e}.conf

The CardLongName may be derived from various DMI properties of the system, that have little to do with the card itself.
Sometimes, that may be a good thing, but sometimes, it may contain the completely generic "Unknown-UnknownProduct-",
see https://gitlab.com/postmarketOS/pmaports/-/issues/1498#note_1716959721 for example. At least for devices using
device tree and simple-card, the name of the card (CardName), which then comes from the device tree, which can be provided
by the kernel too, may be a lot more relevant, and does actually identify the device.
  • Loading branch information
Daniel-Abrecht committed Jan 6, 2024
1 parent 23adf5a commit 9e3d6bb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ucm2/ucm.conf
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ If.driver {
# The probed path when hw-card is found:
#
# ucm2/conf.d/[${CardDriver}|${KernelDriver}]/${CardLongName}.conf
# ucm2/conf.d/[${CardDriver}|${KernelDriver}]/${CardName}.conf
# ucm2/conf.d/[${CardDriver}|${KernelDriver}]/[${CardDriver}|${KernelDriver}].conf
# ucm2/${KernelModule}/${KernelModule}.conf (obsolete)
# ucm2/${CardDriver}/${CardLongName}.conf (obsolete)
Expand Down Expand Up @@ -77,6 +78,10 @@ If.driver {
File "${CardLongName}.conf"
}
UseCasePath.confd2 {
Directory "conf.d/${var:Driver}"
File "${CardName}.conf"
}
UseCasePath.confd3 {
Directory "conf.d/${var:Driver}"
File "${var:Driver}.conf"
}
Expand Down

0 comments on commit 9e3d6bb

Please sign in to comment.