]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kselftest: devices: Add of-fullname-regex property
authorNĂ­colas F. R. A. Prado <nfraprado@collabora.com>
Thu, 13 Jun 2024 15:14:52 +0000 (11:14 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Jun 2024 17:39:10 +0000 (19:39 +0200)
commit819984a0dd3606b7c46fe156cd56a0dc0d604788
tree99a674ace7cca789c96cec0e16e7e2c75ba098f8
parentf871f9bacde8cdeaa7a1f6200ff39c79114c4ef6
kselftest: devices: Add of-fullname-regex property

Introduce a new 'of-fullname-regex' property that takes a regular
expression and matches against the OF_FULLNAME property. It allows
matching controllers that don't have a unique DT address across sibling
controllers, and thus dt-mmio can't be used.

One particular example of where this is needed is on MT8195 which has
multiple USB controllers described by two level deep nodes and using the
ranges property:

    ssusb2: usb@112a1000 {
        reg = <0 0x112a1000 0 0x2dff>, <0 0x112a3e00 0 0x0100>;
        ranges = <0 0 0 0x112a0000 0 0x3f00>;
        xhci2: usb@0 {

Signed-off-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com>
Link: https://lore.kernel.org/r/20240613-kselftest-discoverable-probe-mt8195-kci-v1-2-7b396a9b032d@collabora.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/devices/boards/google,spherion.yaml
tools/testing/selftests/devices/test_discoverable_devices.py