From: Daniel Mentz <[email protected]> This allows the fw_devlink feature to work for spi devices too. This avoids unnecessary probe deferrals related to spi devices and improves suspend/resume ordering for spi devices when fw_devlink=on.
Signed-off-by: Daniel Mentz <[email protected]> [saravanak: Minor commit text cleanup] Signed-off-by: Saravana Kannan <[email protected]> --- drivers/spi/spi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 0cab239d8e7f..d533aa939cca 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -2037,6 +2037,7 @@ of_register_spi_device(struct spi_controller *ctlr, struct device_node *nc) /* Store a pointer to the node in the device structure */ of_node_get(nc); spi->dev.of_node = nc; + spi->dev.fwnode = of_fwnode_handle(nc); /* Register the new device */ rc = spi_add_device(spi); -- 2.29.1.341.ge80a0c044ae-goog

