* [PATCH] mmc: core: set card fwnode_handle
@ 2023-07-13 3:52 Daniel Golle
2023-07-13 15:50 ` Greg Kroah-Hartman
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Golle @ 2023-07-13 3:52 UTC (permalink / raw)
To: linux-mmc, linux-kernel, Ulf Hansson, Ye Bin, Greg Kroah-Hartman,
Seunghui Lee
Also set card's device fwnode in case it isn't set yet and of_node is
present.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
---
drivers/mmc/core/bus.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/mmc/core/bus.c b/drivers/mmc/core/bus.c
index 2c3074a605fc4..ecf6e23e4c307 100644
--- a/drivers/mmc/core/bus.c
+++ b/drivers/mmc/core/bus.c
@@ -361,6 +361,8 @@ int mmc_add_card(struct mmc_card *card)
mmc_add_card_debugfs(card);
card->dev.of_node = mmc_of_find_child_device(card->host, 0);
+ if (card->dev.of_node && !card->dev.fwnode)
+ card->dev.fwnode = &card->dev.of_node->fwnode;
device_enable_async_suspend(&card->dev);
--
2.41.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-07-13 15:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-13 3:52 [PATCH] mmc: core: set card fwnode_handle Daniel Golle
2023-07-13 15:50 ` Greg Kroah-Hartman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox