mmc: mv_sdhci: call mmc_of_parse()
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.
--- drivers/mmc/mv_sdhci.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/mmc/mv_sdhci.c +4 -0
@@ -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
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, becausemv_sdhcidriver did not fill outhost_capsfrom 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
Signed-off-by Marek Beh?n <[email protected]>Fixes da18c62b6e6a ("mmc: sdhci: Implement SDHCI card detect")
My patch is missing this tag, though.
baruch
Quoted 22 lines
--- drivers/mmc/mv_sdhci.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/mmc/mv_sdhci.c +4
-0@@ -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 -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
PATCH 1/1 mmc: mv_sdhci: call mmc_of_parse()
In reply to Marek BehúnQuoted 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, becausemv_sdhcidriver did not fill outhost_capsfrom device-tree.Signed-off-by Marek Beh?n <[email protected]>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
--- drivers/mmc/mv_sdhci.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/mmc/mv_sdhci.c +4
-0@@ -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;
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, becausemv_sdhcidriver did not fill outhost_capsfrom device-tree.
Quoted 7 lines
Quoted 2 lines
Signed-off-by Marek Beh?n <[email protected]>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
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, becausemv_sdhcidriver did not fill outhost_capsfrom device-tree.Signed-off-by Marek Beh?n <[email protected]>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 ChungCommit
da18c62b6e6acauses 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
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
da18c62b6e6acauses 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. Justmv_sdhcidriver didn't usemmc_of_parse()before. (If someone set toMMC_NON_REMOVABLEcapabilities inhost->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
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
da18c62b6e6acauses 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. Justmv_sdhcidriver didn't usemmc_of_parse()before. (If someone set toMMC_NON_REMOVABLEcapabilities inhost->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
PATCH 1/1 mmc: mv_sdhci: call mmc_of_parse()
In reply to Marek BehúnQuoted 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
da18c62b6e6acauses 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. Justmv_sdhcidriver didn't usemmc_of_parse()before. (If someone set toMMC_NON_REMOVABLEcapabilities inhost->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