All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] board/freescale/common: fix a bug that failed to read/write eeprom on ls1021atsn
@ 2020-10-26  7:14 Biwen Li
  2020-10-26 10:33 ` Vladimir Oltean
  2020-12-11  8:10 ` Priyanka Jain
  0 siblings, 2 replies; 3+ messages in thread
From: Biwen Li @ 2020-10-26  7:14 UTC (permalink / raw)
  To: u-boot

From: Biwen Li <biwen.li@nxp.com>

Fix a bug that failed to read/write eeprom on ls1021atsn

Signed-off-by: Biwen Li <biwen.li@nxp.com>
---
 board/freescale/common/sys_eeprom.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/board/freescale/common/sys_eeprom.c b/board/freescale/common/sys_eeprom.c
index c487e3a515..f14602af20 100644
--- a/board/freescale/common/sys_eeprom.c
+++ b/board/freescale/common/sys_eeprom.c
@@ -173,9 +173,11 @@ static int read_eeprom(void)
 	struct udevice *dev;
 #ifdef CONFIG_SYS_EEPROM_BUS_NUM
 	ret = i2c_get_chip_for_busnum(CONFIG_SYS_EEPROM_BUS_NUM,
-				      CONFIG_SYS_I2C_EEPROM_ADDR, 1, &dev);
+				      CONFIG_SYS_I2C_EEPROM_ADDR,
+				      CONFIG_SYS_I2C_EEPROM_ADDR_LEN, &dev);
 #else
-	ret = i2c_get_chip_for_busnum(0, CONFIG_SYS_I2C_EEPROM_ADDR, 1, &dev);
+	ret = i2c_get_chip_for_busnum(0, CONFIG_SYS_I2C_EEPROM_ADDR,
+				      CONFIG_SYS_I2C_EEPROM_ADDR_LEN, &dev);
 #endif
 	if (!ret)
 		ret = dm_i2c_read(dev, 0, (void *)&e, sizeof(e));
-- 
2.17.1

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

* [PATCH] board/freescale/common: fix a bug that failed to read/write eeprom on ls1021atsn
  2020-10-26  7:14 [PATCH] board/freescale/common: fix a bug that failed to read/write eeprom on ls1021atsn Biwen Li
@ 2020-10-26 10:33 ` Vladimir Oltean
  2020-12-11  8:10 ` Priyanka Jain
  1 sibling, 0 replies; 3+ messages in thread
From: Vladimir Oltean @ 2020-10-26 10:33 UTC (permalink / raw)
  To: u-boot

On Mon, Oct 26, 2020 at 03:14:05PM +0800, Biwen Li wrote:
> From: Biwen Li <biwen.li@nxp.com>
> 
> Fix a bug that failed to read/write eeprom on ls1021atsn
> 
> Signed-off-by: Biwen Li <biwen.li@nxp.com>
> ---

Tested-by: Vladimir Oltean <vladimir.oltean@nxp.com>

>  board/freescale/common/sys_eeprom.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/board/freescale/common/sys_eeprom.c b/board/freescale/common/sys_eeprom.c
> index c487e3a515..f14602af20 100644
> --- a/board/freescale/common/sys_eeprom.c
> +++ b/board/freescale/common/sys_eeprom.c
> @@ -173,9 +173,11 @@ static int read_eeprom(void)
>  	struct udevice *dev;
>  #ifdef CONFIG_SYS_EEPROM_BUS_NUM
>  	ret = i2c_get_chip_for_busnum(CONFIG_SYS_EEPROM_BUS_NUM,
> -				      CONFIG_SYS_I2C_EEPROM_ADDR, 1, &dev);
> +				      CONFIG_SYS_I2C_EEPROM_ADDR,
> +				      CONFIG_SYS_I2C_EEPROM_ADDR_LEN, &dev);
>  #else
> -	ret = i2c_get_chip_for_busnum(0, CONFIG_SYS_I2C_EEPROM_ADDR, 1, &dev);
> +	ret = i2c_get_chip_for_busnum(0, CONFIG_SYS_I2C_EEPROM_ADDR,
> +				      CONFIG_SYS_I2C_EEPROM_ADDR_LEN, &dev);
>  #endif
>  	if (!ret)
>  		ret = dm_i2c_read(dev, 0, (void *)&e, sizeof(e));
> -- 
> 2.17.1
> 

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

* [PATCH] board/freescale/common: fix a bug that failed to read/write eeprom on ls1021atsn
  2020-10-26  7:14 [PATCH] board/freescale/common: fix a bug that failed to read/write eeprom on ls1021atsn Biwen Li
  2020-10-26 10:33 ` Vladimir Oltean
@ 2020-12-11  8:10 ` Priyanka Jain
  1 sibling, 0 replies; 3+ messages in thread
From: Priyanka Jain @ 2020-12-11  8:10 UTC (permalink / raw)
  To: u-boot

>-----Original Message-----
>From: Biwen Li <biwen.li@oss.nxp.com>
>Sent: Monday, October 26, 2020 12:44 PM
>To: Priyanka Jain <priyanka.jain@nxp.com>
>Cc: Jiafei Pan <jiafei.pan@nxp.com>; u-boot at lists.denx.de; Biwen Li
><biwen.li@nxp.com>
>Subject: [PATCH] board/freescale/common: fix a bug that failed to read/write
>eeprom on ls1021atsn
>
>From: Biwen Li <biwen.li@nxp.com>
>
>Fix a bug that failed to read/write eeprom on ls1021atsn
>
>Signed-off-by: Biwen Li <biwen.li@nxp.com>
>---
<snip>
Applied to fsl-qoriq. 
Awaiting upstream

Thanks
Priyanka

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

end of thread, other threads:[~2020-12-11  8:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-26  7:14 [PATCH] board/freescale/common: fix a bug that failed to read/write eeprom on ls1021atsn Biwen Li
2020-10-26 10:33 ` Vladimir Oltean
2020-12-11  8:10 ` Priyanka Jain

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.