Skip to contentSkip to conversation

Revert "mci: core: make mci_register -EPROBE_DEFER sensitive"

PATCH In review Sascha Hauer 2 participants 2 messages Dec 9, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Revert "mci: core: make mci_register -EPROBE_DEFER sensitive"

The patch does the right thing: When a regulator can't be found and -EPROBE_DEFER is returned we forward it. However, we have several boards in the tree which do not have any driver for the regulator, but still work because the regulator is enabled by default or by board code.

Revert this patch until a solution for these board is found.

This reverts commit 2e16c52ea277dd002235835a10f349233c31d965.

---
 drivers/mci/mci-core.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/mci/mci-core.c +0 -4
index 9e39cbbb55..67257bcd18 100644
@@ -1819,10 +1819,6 @@ int mci_register(struct mci_host *host)
 
 	host->supply = regulator_get(host->hw_dev, "vmmc");
 	if (IS_ERR(host->supply)) {
-		if (host->supply == ERR_PTR(-EPROBE_DEFER)) {
-			ret = -EPROBE_DEFER;
-			goto err_free;
-		}
 		dev_err(&mci->dev, "Failed to get 'vmmc' regulator.\n");
 		host->supply = NULL;
 	}
Signature · 7 lines
2.24.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Reviewed-by on v1 1/1
#1 lore raw

Hi Sascha,

Quoted 6 lines · Sascha Hauer

The patch does the right thing: When a regulator can't be found and -EPROBE_DEFER is returned we forward it. However, we have several boards in the tree which do not have any driver for the regulator, but still work because the regulator is enabled by default or by board code.

Revert this patch until a solution for these board is found.

Unfortunately those boards relying on a wrong default behaviour.

Quoted 1 line

This reverts commit 2e16c52ea277dd002235835a10f349233c31d965.

Anyway if it breaks to much we need to revert it. Should we add a comment to told future developers to don't add the check here again?

Regards,
Marco

Quoted 23 lines
---
 drivers/mci/mci-core.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/mci/mci-core.c +0 -4
index 9e39cbbb55..67257bcd18 100644
@@ -1819,10 +1819,6 @@ int mci_register(struct mci_host *host)
 
 	host->supply = regulator_get(host->hw_dev, "vmmc");
 	if (IS_ERR(host->supply)) {
-		if (host->supply == ERR_PTR(-EPROBE_DEFER)) {
-			ret = -EPROBE_DEFER;
-			goto err_free;
-		}
 		dev_err(&mci->dev, "Failed to get 'vmmc' regulator.\n");
 		host->supply = NULL;
 	}
Signature · 1 line
2.24.0
Signature · 9 lines
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox