[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201104205431.3795207-2-saravanak@google.com>
Date: Wed, 4 Nov 2020 12:54:31 -0800
From: Saravana Kannan <saravanak@...gle.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"Rafael J. Wysocki" <rafael@...nel.org>,
Matthias Brugger <matthias.bgg@...il.com>,
Nathan Chancellor <natechancellor@...il.com>,
Nick Desaulniers <ndesaulniers@...gle.com>,
Mark Brown <broonie@...nel.org>
Cc: Saravana Kannan <saravanak@...gle.com>,
Cheng-Jui.Wang@...iatek.com, kernel-team@...roid.com,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org,
clang-built-linux@...glegroups.com,
Daniel Mentz <danielmentz@...gle.com>,
linux-spi@...r.kernel.org
Subject: [PATCH v1 2/2] spi: Populate fwnode in of_register_spi_device()
From: Daniel Mentz <danielmentz@...gle.com>
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 <danielmentz@...gle.com>
[saravanak: Minor commit text cleanup]
Signed-off-by: Saravana Kannan <saravanak@...gle.com>
---
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
Powered by blists - more mailing lists