All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mmc: zynq: Fix default value for xlnx,mio-bank
@ 2020-07-24  7:03 Michal Simek
  2020-07-27  1:22 ` Peng Fan
  2020-08-20  7:53 ` Michal Simek
  0 siblings, 2 replies; 3+ messages in thread
From: Michal Simek @ 2020-07-24  7:03 UTC (permalink / raw)
  To: u-boot

DT binding is saying that default value is 0 not -1 that's why fix it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

Depends on https://lists.denx.de/pipermail/u-boot/2020-July/421231.html
---
 drivers/mmc/zynq_sdhci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mmc/zynq_sdhci.c b/drivers/mmc/zynq_sdhci.c
index 6505527616d1..e9381b949307 100644
--- a/drivers/mmc/zynq_sdhci.c
+++ b/drivers/mmc/zynq_sdhci.c
@@ -276,7 +276,7 @@ static int arasan_sdhci_ofdata_to_platdata(struct udevice *dev)
 		return PTR_ERR(priv->host->ioaddr);
 
 	priv->deviceid = dev_read_u32_default(dev, "xlnx,device_id", -1);
-	priv->bank = dev_read_u32_default(dev, "xlnx,mio-bank", -1);
+	priv->bank = dev_read_u32_default(dev, "xlnx,mio-bank", 0);
 
 	return 0;
 }
-- 
2.27.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] mmc: zynq: Fix default value for xlnx,mio-bank
  2020-07-24  7:03 [PATCH] mmc: zynq: Fix default value for xlnx,mio-bank Michal Simek
@ 2020-07-27  1:22 ` Peng Fan
  2020-08-20  7:53 ` Michal Simek
  1 sibling, 0 replies; 3+ messages in thread
From: Peng Fan @ 2020-07-27  1:22 UTC (permalink / raw)
  To: u-boot

> Subject: [PATCH] mmc: zynq: Fix default value for xlnx,mio-bank
> 
> DT binding is saying that default value is 0 not -1 that's why fix it.
> 
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
> ---
> 
> Depends on
> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.d
> enx.de%2Fpipermail%2Fu-boot%2F2020-July%2F421231.html&amp;data=02
> %7C01%7Cpeng.fan%40nxp.com%7C7821c83ee3c44335e47508d82f9fabfb%
> 7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C6373117101129704
> 44&amp;sdata=Lx18aSVId02FV1fD7FxbGe8gL%2F81BNnViUcAQiG9oPY%3D&
> amp;reserved=0
> ---
>  drivers/mmc/zynq_sdhci.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/mmc/zynq_sdhci.c b/drivers/mmc/zynq_sdhci.c index
> 6505527616d1..e9381b949307 100644
> --- a/drivers/mmc/zynq_sdhci.c
> +++ b/drivers/mmc/zynq_sdhci.c
> @@ -276,7 +276,7 @@ static int arasan_sdhci_ofdata_to_platdata(struct
> udevice *dev)
>  		return PTR_ERR(priv->host->ioaddr);
> 
>  	priv->deviceid = dev_read_u32_default(dev, "xlnx,device_id", -1);
> -	priv->bank = dev_read_u32_default(dev, "xlnx,mio-bank", -1);
> +	priv->bank = dev_read_u32_default(dev, "xlnx,mio-bank", 0);
> 
>  	return 0;
>  }
> --

Acked-by: Peng Fan <peng.fan@nxp.com>

> 2.27.0

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] mmc: zynq: Fix default value for xlnx,mio-bank
  2020-07-24  7:03 [PATCH] mmc: zynq: Fix default value for xlnx,mio-bank Michal Simek
  2020-07-27  1:22 ` Peng Fan
@ 2020-08-20  7:53 ` Michal Simek
  1 sibling, 0 replies; 3+ messages in thread
From: Michal Simek @ 2020-08-20  7:53 UTC (permalink / raw)
  To: u-boot

p? 24. 7. 2020 v 9:03 odes?latel Michal Simek <michal.simek@xilinx.com> napsal:
>
> DT binding is saying that default value is 0 not -1 that's why fix it.
>
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
> ---
>
> Depends on https://lists.denx.de/pipermail/u-boot/2020-July/421231.html
> ---
>  drivers/mmc/zynq_sdhci.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mmc/zynq_sdhci.c b/drivers/mmc/zynq_sdhci.c
> index 6505527616d1..e9381b949307 100644
> --- a/drivers/mmc/zynq_sdhci.c
> +++ b/drivers/mmc/zynq_sdhci.c
> @@ -276,7 +276,7 @@ static int arasan_sdhci_ofdata_to_platdata(struct udevice *dev)
>                 return PTR_ERR(priv->host->ioaddr);
>
>         priv->deviceid = dev_read_u32_default(dev, "xlnx,device_id", -1);
> -       priv->bank = dev_read_u32_default(dev, "xlnx,mio-bank", -1);
> +       priv->bank = dev_read_u32_default(dev, "xlnx,mio-bank", 0);
>
>         return 0;
>  }
> --
> 2.27.0
>

Applied.
M

-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-08-20  7:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-24  7:03 [PATCH] mmc: zynq: Fix default value for xlnx,mio-bank Michal Simek
2020-07-27  1:22 ` Peng Fan
2020-08-20  7:53 ` Michal Simek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.