kernel: nvmem: correctly assign fwnode to MMC block device
authorDaniel Golle <daniel@makrotopia.org>
Sun, 18 Feb 2024 01:02:46 +0000 (01:02 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 18 Feb 2024 03:25:39 +0000 (03:25 +0000)
commit3c34a5bf99d46a00f6db5b3c23e9a3b78587a3a4
treee58ce6cb19d941f734b911b1f770593f289f4c4b
parent3eb8782b495e548ad0b116fdd5b2e80607dcb4f8
kernel: nvmem: correctly assign fwnode to MMC block device

Use device_set_node to make sure OF node gets assigned on block
devices to be used as NVMEM providers. While block partitions were
already working fine as NVMEM providers, bare block devices such as
mmcblk0boot1 will not work without this change.

Fixes: fc153aa8d9 ("kernel: import pending patches adding support for NVMEM on UBI and MMC")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/bcm27xx/patches-6.1/950-0111-MMC-added-alternative-MMC-driver.patch
target/linux/generic/pending-6.1/450-14-mmc-block-set-fwnode-of-disk-devices.patch