Interface naming/numbering conventions - spiDevPattern

Hi all,

I am currently working with a device, where my spi node name is spidev32766.0. Problem now is that I cant get SPI to work, because http://162.213.34.128:8080/source/xref/snapd/interfaces/builtin/spi.go?a=true&r=ff216577#58 tells me, it has an invalid name. How should I proceed?

Cheers

I am currently developing with a workaround: hard linking it

sudo ln /dev/spidev32766.0 /dev/spidev9.9

this works but in my eyes, it’s no proper solution

the original regex pattern was developed by @zyg, perhaps he can take a look into updating it to allow multiple numbers before the dot

If @zyga-snapd doesn’t beat me to it, I’ll do this in the next round of interface updates.

4 Likes

FYI https://github.com/snapcore/snapd/pull/7019