Skip to contentSkip to conversation

mmc: mv_sdhci: call mmc_of_parse()

PATCH New Marek Behún 4 participants 9 messages Feb 2, 2021 – Feb 8, 2021 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mmc: mv_sdhci: call mmc_of_parse()

This is needed to parse more capabilities such as non-removable.

Commit da18c62b6e6a ("mmc: sdhci: Implement SDHCI card detect") caused a regression on Turris Omnia, because mv_sdhci driver did not fill out host_caps from device-tree.

Fixes da18c62b6e6a ("mmc: sdhci: Implement SDHCI card detect")
Cc pali at kernel.org
Cc Baruch Siach <[email protected]>
Cc Stefan Roese <[email protected]>
---
 drivers/mmc/mv_sdhci.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/mmc/mv_sdhci.c +4 -0
index 556dd38046..4dc4a0d2be 100644
@@ -118,6 +118,10 @@ static int mv_sdhci_probe(struct udevice *dev)
 	host->mmc->dev = dev;
 	host->mmc->priv = host;
 
+	ret = mmc_of_parse(dev, &plat->cfg);
+	if (ret)
+		return ret;
+
 	ret = sdhci_setup_cfg(&plat->cfg, host, 0, 0);
 	if (ret)
 		return ret;
Signature · 1 line
2.26.2
#1 lore raw

PATCH 1/1 mmc: mv_sdhci: call mmc_of_parse()

Hi Marek,

Quoted 5 lines · Marek Beh?n

This is needed to parse more capabilities such as non-removable.

Commit da18c62b6e6a ("mmc: sdhci: Implement SDHCI card detect") caused a regression on Turris Omnia, because mv_sdhci driver did not fill out host_caps from device-tree.

I posted a similar patch earlier today:

https://patchwork.ozlabs.org/project/uboot/patch/7dcd24e8d0149618cf686c47cce6728a64dffe2b.1612248184.git.baruch at tkos.co.il/

Quoted 2 lines
Fixes da18c62b6e6a ("mmc: sdhci: Implement SDHCI card detect")

My patch is missing this tag, though.

baruch

Quoted 22 lines
Cc pali at kernel.org
Cc Baruch Siach <[email protected]>
Cc Stefan Roese <[email protected]>
---
 drivers/mmc/mv_sdhci.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/mmc/mv_sdhci.c +4 -0
index 556dd38046..4dc4a0d2be 100644
@@ -118,6 +118,10 @@ static int mv_sdhci_probe(struct udevice *dev)
 	host->mmc->dev = dev;
 	host->mmc->priv = host;
 
+	ret = mmc_of_parse(dev, &plat->cfg);
+	if (ret)
+		return ret;
+
 	ret = sdhci_setup_cfg(&plat->cfg, host, 0, 0);
 	if (ret)
 		return ret;
Signature · 3 lines
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
#2 lore raw

PATCH 1/1 mmc: mv_sdhci: call mmc_of_parse()

Quoted 5 lines

Hi Marek,
I posted a similar patch earlier today:

Quoted 1 line
Fixes da18c62b6e6a ("mmc: sdhci: Implement SDHCI card detect")

My patch is missing this tag, though.
baruch

OK, lets leave it on Stefan to decide which one to apply. Marek

#3 lore raw

PATCH 1/1 mmc: mv_sdhci: call mmc_of_parse()

In reply to Marek Behún
Quoted 8 lines · Marek Beh?n

This is needed to parse more capabilities such as non-removable.

Commit da18c62b6e6a ("mmc: sdhci: Implement SDHCI card detect") caused a regression on Turris Omnia, because mv_sdhci driver did not fill out host_caps from device-tree.

Fixes da18c62b6e6a ("mmc: sdhci: Implement SDHCI card detect")

I don't think that this patch is for fixing its commit.

Best Regards,
Jaehoon Chung

Quoted 23 lines
Cc pali at kernel.org
Cc Baruch Siach <[email protected]>
Cc Stefan Roese <[email protected]>
---
 drivers/mmc/mv_sdhci.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/mmc/mv_sdhci.c +4 -0
index 556dd38046..4dc4a0d2be 100644
@@ -118,6 +118,10 @@ static int mv_sdhci_probe(struct udevice *dev)
 	host->mmc->dev = dev;
 	host->mmc->priv = host;
 
+	ret = mmc_of_parse(dev, &plat->cfg);
+	if (ret)
+		return ret;
+
 	ret = sdhci_setup_cfg(&plat->cfg, host, 0, 0);
 	if (ret)
 		return ret;
#4 lore raw

PATCH 1/1 mmc: mv_sdhci: call mmc_of_parse()

Quoted 7 lines · On Wed, 3 Feb 2021 08:32:45 +0900 Jaehoon Chung <[email protected]> wrote:
Quoted 6 lines · Marek Beh?n

This is needed to parse more capabilities such as non-removable.

Commit da18c62b6e6a ("mmc: sdhci: Implement SDHCI card detect") caused a regression on Turris Omnia, because mv_sdhci driver did not fill out host_caps from device-tree.

Quoted 7 lines
Quoted 2 lines
Fixes da18c62b6e6a ("mmc: sdhci: Implement SDHCI card detect")

I don't think that this patch is for fixing its commit.

Best Regards,
Jaehoon Chung

Commit da18c62b6e6a causes the regression. The Fixes tag, as I understand, should link to commit with which the regression first occured, so that if someone wanted to backport my patch to previous version of U-Boot, they would know that they only have to do it if their repository contains that commit.

Marek

#5 lore raw

PATCH 1/1 mmc: mv_sdhci: call mmc_of_parse()

Quoted 15 lines · Marek Behun
Quoted 12 lines · On Wed, 3 Feb 2021 08:32:45 +0900 Jaehoon Chung <[email protected]> wrote:
Quoted 8 lines · Marek Beh?n

This is needed to parse more capabilities such as non-removable.

Commit da18c62b6e6a ("mmc: sdhci: Implement SDHCI card detect") caused a regression on Turris Omnia, because mv_sdhci driver did not fill out host_caps from device-tree.

Fixes da18c62b6e6a ("mmc: sdhci: Implement SDHCI card detect")

I don't think that this patch is for fixing its commit.

Quoted 8 lines
Quoted 2 lines

Best Regards,
Jaehoon Chung

Commit da18c62b6e6a causes the regression. The Fixes tag, as I understand, should link to commit with which the regression first occured, so that if someone wanted to backport my patch to previous version of U-Boot, they would know that they only have to do it if their repository contains that commit.

Well, i don't think so. This patch is not a bug fix patch about commit da18c62b6e6a. Just mv_sdhci driver didn't use mmc_of_parse() before.
(If someone set to MMC_NON_REMOVABLE capabilities in host->cap, it should be working.)

Not need to add *Fixes*. Its commit is a generic callback function. And mmc_of_parse() is also generic function to use Driver-model.

Best Regards,
Jaehoon Chung

Quoted 3 lines

Marek

#6 lore raw

PATCH 1/1 mmc: mv_sdhci: call mmc_of_parse()

Quoted 6 lines · On Thu, 4 Feb 2021 07:18:23 +0900 Jaehoon Chung <[email protected]> wrote:
Quoted 5 lines

Commit da18c62b6e6a causes the regression. The Fixes tag, as I understand, should link to commit with which the regression first occured, so that if someone wanted to backport my patch to previous version of U-Boot, they would know that they only have to do it if their repository contains that commit.

Quoted 7 lines

Well, i don't think so. This patch is not a bug fix patch about commit da18c62b6e6a. Just mv_sdhci driver didn't use mmc_of_parse() before. (If someone set to MMC_NON_REMOVABLE capabilities in host->cap, it should be working.)

Not need to add *Fixes*. Its commit is a generic callback function. And mmc_of_parse() is also generic function to use Driver-model.

Lets apply Baruch's version. I don't really care if the Fixes tag is there or not...

Marek

#7 lore raw

PATCH 1/1 mmc: mv_sdhci: call mmc_of_parse()

Dear Marek,

Quoted 14 lines · Marek Beh?n
Quoted 11 lines · On Thu, 4 Feb 2021 07:18:23 +0900 Jaehoon Chung <[email protected]> wrote:
Quoted 5 lines

Commit da18c62b6e6a causes the regression. The Fixes tag, as I understand, should link to commit with which the regression first occured, so that if someone wanted to backport my patch to previous version of U-Boot, they would know that they only have to do it if their repository contains that commit.

Well, i don't think so. This patch is not a bug fix patch about commit da18c62b6e6a. Just mv_sdhci driver didn't use mmc_of_parse() before. (If someone set to MMC_NON_REMOVABLE capabilities in host->cap, it should be working.)

Quoted 5 lines
Quoted 2 lines

Not need to add *Fixes*. Its commit is a generic callback function. And mmc_of_parse() is also generic function to use Driver-model.

Lets apply Baruch's version. I don't really care if the Fixes tag is there or not...

I don't have any objection with your patch. It was just my opinion. But it needs to choose one of them. Yours and Baruch's patch are same.

If you want to add Fixes tags, i think that it has to add in Baruch's patch. Because his patch was firstly posted than yours.

Best Regards,
Jaehoon Chung

Quoted 3 lines

Marek

#8 lore raw

PATCH 1/1 mmc: mv_sdhci: call mmc_of_parse()

In reply to Marek Behún
Quoted 14 lines · Marek Beh?n
Quoted 11 lines · On Thu, 4 Feb 2021 07:18:23 +0900 Jaehoon Chung <[email protected]> wrote:
Quoted 5 lines

Commit da18c62b6e6a causes the regression. The Fixes tag, as I understand, should link to commit with which the regression first occured, so that if someone wanted to backport my patch to previous version of U-Boot, they would know that they only have to do it if their repository contains that commit.

Well, i don't think so. This patch is not a bug fix patch about commit da18c62b6e6a. Just mv_sdhci driver didn't use mmc_of_parse() before. (If someone set to MMC_NON_REMOVABLE capabilities in host->cap, it should be working.)

Quoted 5 lines
Quoted 2 lines

Not need to add *Fixes*. Its commit is a generic callback function. And mmc_of_parse() is also generic function to use Driver-model.

Lets apply Baruch's version. I don't really care if the Fixes tag is there or not...

I'll pull in Baruch's patch now.

Thanks,
Stefan