(06-13-2020, 04:50 AM)robt Wrote: I have to use fe310000.mmc instead of fe310000.dwmmc (mmc instead of dwmmc).
Sorry for the slow reply, my day job is in virology research and you can imagine that the past couple of months have been a tsunami of extra work.
I finally got time to check and: indeed, the name of the device has changed in some recent kernel update (didn't have time to track which):
Code:
$ ls -ld /sys/devices/platform/fe310*
drwxr-xr-x 4 root root 0 Jun 16 10:03 /sys/devices/platform/fe310000.mmc
$ journalctl | grep 'fe3100'
Jun 15 23:42:56 nereid kernel: dwmmc_rockchip fe310000.mmc: IDMAC supports 32-bit address mode.
Jun 15 23:42:56 nereid kernel: dwmmc_rockchip fe310000.mmc: Using internal DMA controller.
Jun 15 23:42:56 nereid kernel: dwmmc_rockchip fe310000.mmc: Version ID is 270a
Jun 15 23:42:56 nereid kernel: dwmmc_rockchip fe310000.mmc: DW MMC controller at irq 27,32 bit host data width,256 deep fifo
Jun 15 23:42:56 nereid kernel: dwmmc_rockchip fe310000.mmc: allocated mmc-pwrseq
Jun 15 23:42:56 nereid kernel: dwmmc_rockchip fe310000.mmc: Successfully tuned phase to 56
Jun 15 23:43:03 nereid NetworkManager[931]: <info> [1592257383.1179] rfkill0: found Wi-Fi radio killswitch (at /sys/devices/platform/fe310000.mmc/mmc_host/mmc0/mmc0:0001/mmc0:0001:1/ieee80211/phy0/rfkill0) (driver brcmfmac)
If one is not allergic to overly long one-line, it's automagically always findable with:
Code:
basename $(dirname $(dirname $(dirname $(dirname $(dirname /sys/devices/platform/*mmc/mmc_host/mmc*/mmc*/mmc*/ieee80211)))))
Code:
echo /sys/devices/platform/[0-9a-f]*mmc/mmc_host/mmc*/mmc*/mmc*/ieee80211|grep -oP '[0-9a-f]{8,}\.[^/]+'