94e0190082
Allow a wider audience to test this pending series. Use about to be submitted v3 which factors out block notification support. Apart from dropping the no longer needed (and problematic) fallback for for the 'partitions' node being present at the device parent there are no intended functional changes. As opening a block device as file is not supported yet in Kernel v6.6, use the previous method as backporting seems a bit too involving. Fixes: #15642 Signed-off-by: Daniel Golle <daniel@makrotopia.org>
24 lines
746 B
Diff
24 lines
746 B
Diff
From 043c4f88476cc0f29c9bf82a8a516f58d848e1cd Mon Sep 17 00:00:00 2001
|
|
From: Daniel Golle <daniel@makrotopia.org>
|
|
Date: Thu, 30 May 2024 03:15:25 +0100
|
|
Subject: [PATCH 7/9] mmc: core: set card fwnode_handle
|
|
|
|
Set 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(+)
|
|
|
|
--- a/drivers/mmc/core/bus.c
|
|
+++ b/drivers/mmc/core/bus.c
|
|
@@ -364,6 +364,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);
|
|
|