Skip to contentSkip to conversation

sandbox: Migrate CONFIG_I2C_EEPROM

PATCH New Tom Rini 3 participants 10 messages Jul 25, 2016 – Jul 27, 2016 Arm/uniphier architecture

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/2 sandbox: Migrate CONFIG_I2C_EEPROM

Most users of CONFIG_I2C_EEPROM were migrated to defconfig a while ago, but sandbox was skipped. Leave it off for sandbox_spl where it does not build, but does not need to be either.

---
 configs/sandbox_defconfig | 1 +
 include/configs/sandbox.h | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)
configs/sandbox_defconfig +1 -0
index 6a1874a..89ebe92 100644
@@ -101,6 +101,7 @@ CONFIG_CROS_EC_SPI=y
 CONFIG_PWRSEQ=y
 CONFIG_SPL_PWRSEQ=y
 CONFIG_SYSRESET=y
+CONFIG_I2C_EEPROM=y
 CONFIG_DM_MMC_OPS=y
 CONFIG_SANDBOX_MMC=y
 CONFIG_SPI_FLASH_SANDBOX=y
include/configs/sandbox.h +0 -1
index 197d8bb8..94e024b 100644
@@ -85,7 +85,6 @@
 #define CONFIG_CMD_SF_TEST
 
 #define CONFIG_I2C_EDID
-#define CONFIG_I2C_EEPROM
 
 /* Memory things - we don't really want a memory test */
 #define CONFIG_SYS_LOAD_ADDR		0x00000000
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH 1/2 sandbox: Migrate CONFIG_I2C_EEPROM

Quoted 6 lines · Tom Rini

Most users of CONFIG_I2C_EEPROM were migrated to defconfig a while ago, but sandbox was skipped. Leave it off for sandbox_spl where it does not build, but does not need to be either.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160725/1e95a99f/attachment.sig>
author
#2 lore raw

PATCH 2/2 uniphier: Drop CONFIG_I2C_EEPROM

In reply to Tom Rini

This option was set in the main uniphier config file, but was not causing the driver to be built, so we just drop the line here.

Cc Masahiro Yamada <[email protected]>
---
 include/configs/uniphier.h | 1 -
 1 file changed, 1 deletion(-)
include/configs/uniphier.h +0 -1
index 169c197..e485583 100644
@@ -9,7 +9,6 @@
 #ifndef __CONFIG_UNIPHIER_COMMON_H__
 #define __CONFIG_UNIPHIER_COMMON_H__
 
-#define CONFIG_I2C_EEPROM
 #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10
 
 #define CONFIG_SMC911X
Signature · 1 line
1.9.1
#3 lore raw

PATCH 2/2 uniphier: Drop CONFIG_I2C_EEPROM

Hi Tom,

2016-07-26 7:21 GMT+09:00 Tom Rini <[email protected]>:

Quoted 3 lines

This option was set in the main uniphier config file, but was not causing the driver to be built, so we just drop the line here.

This option is actually causing drivers/misc/i2c_eeprom.o built, and I really need it.

yamada at beagle:~/workspace/u-boot$ make uniphier_pro4_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
#

# configuration written to .config
#
yamada at beagle:~/workspace/u-boot$ make CROSS_COMPILE=arm-linux-gnueabi-
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config.h
  UPD     include/config.h
   [snip]

CC drivers/misc/i2c_eeprom.o
LD drivers/misc/built-in.o

Could you move the config to Kconfig rather than removing it, please?

Signature · 2 lines
Best Regards
Masahiro Yamada
author
#4 lore raw

PATCH 2/2 uniphier: Drop CONFIG_I2C_EEPROM

Quoted 9 lines · Masahiro Yamada

Hi Tom,

2016-07-26 7:21 GMT+09:00 Tom Rini <[email protected]>:

Quoted 3 lines

This option was set in the main uniphier config file, but was not causing the driver to be built, so we just drop the line here.

This option is actually causing drivers/misc/i2c_eeprom.o built, and I really need it.

Interesting. I tried uniphier_ld4_sld8 and it was not. And moveconfig.py also didn't see it needed.

[snip]

Quoted 1 line

Could you move the config to Kconfig rather than removing it, please?

I'll drop this patch and now that you're aware of it, let you handle it. Especially since moveconfig.py isn't seeing it :) Thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160725/b9974ca2/attachment.sig>
#5 lore raw

PATCH 2/2 uniphier: Drop CONFIG_I2C_EEPROM

Hi Tom,

2016-07-26 11:23 GMT+09:00 Tom Rini <[email protected]>:

Quoted 12 lines · Masahiro Yamada
Quoted 9 lines

Hi Tom,

2016-07-26 7:21 GMT+09:00 Tom Rini <[email protected]>:

Quoted 3 lines

This option was set in the main uniphier config file, but was not causing the driver to be built, so we just drop the line here.

This option is actually causing drivers/misc/i2c_eeprom.o built, and I really need it.

Interesting. I tried uniphier_ld4_sld8 and it was not.

It is.

masahiro at grover:~/workspace/u-boot$ make mrproper masahiro at grover:~/workspace/u-boot$ git describe v2016.09-rc1
masahiro at grover:~/workspace/u-boot$ make uniphier_ld4_sld8_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
#

# configuration written to .config
#
masahiro at grover:~/workspace/u-boot$ make CROSS_COMPILE=arm-linux-gnueabi-
scripts/kconfig/conf  --silentoldconfig Kconfig
  [ snip ]
  LD      drivers/memory/built-in.o
  CC      drivers/misc/i2c_eeprom.o
  LD      drivers/misc/built-in.o
Quoted 2 lines

And
moveconfig.py also didn't see it needed.

This is correct behavior.

config I2C_EEPROM
bool "Enable driver for generic I2C-attached EEPROMs" depends on MISC

This option depends on "MISC".
So, it is invisible unless MISC is defined.

Quoted 5 lines

[snip]

Quoted 1 line

Could you move the config to Kconfig rather than removing it, please?

I'll drop this patch and now that you're aware of it, let you handle it. Especially since moveconfig.py isn't seeing it :) Thanks!

I handled it.
http://patchwork.ozlabs.org/patch/652880/

It is a trivial move,
could you pick it up directly to u-boot/master?

Signature · 2 lines
Best Regards
Masahiro Yamada
author
#6 lore raw

PATCH 2/2 uniphier: Drop CONFIG_I2C_EEPROM

Quoted 32 lines · Masahiro Yamada

Hi Tom,

2016-07-26 11:23 GMT+09:00 Tom Rini <[email protected]>:

Quoted 12 lines · Masahiro Yamada
Quoted 9 lines

Hi Tom,

2016-07-26 7:21 GMT+09:00 Tom Rini <[email protected]>:

Quoted 3 lines

This option was set in the main uniphier config file, but was not causing the driver to be built, so we just drop the line here.

This option is actually causing drivers/misc/i2c_eeprom.o built, and I really need it.

Interesting. I tried uniphier_ld4_sld8 and it was not.

It is.

masahiro at grover:~/workspace/u-boot$ make mrproper masahiro at grover:~/workspace/u-boot$ git describe v2016.09-rc1
masahiro at grover:~/workspace/u-boot$ make uniphier_ld4_sld8_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
#

Quoted 8 lines
# configuration written to .config
#
masahiro at grover:~/workspace/u-boot$ make CROSS_COMPILE=arm-linux-gnueabi-
scripts/kconfig/conf  --silentoldconfig Kconfig
  [ snip ]
  LD      drivers/memory/built-in.o
  CC      drivers/misc/i2c_eeprom.o
  LD      drivers/misc/built-in.o

I'm confused because I both can't replicate my problem but know I checked in drivers/misc for output (I use O= always).

Quoted 6 lines
Quoted 2 lines

And
moveconfig.py also didn't see it needed.

This is correct behavior.

Quoted 7 lines

config I2C_EEPROM
bool "Enable driver for generic I2C-attached EEPROMs" depends on MISC

This option depends on "MISC".
So, it is invisible unless MISC is defined.

Ah, but I was expecting some sort of failure message from moveconfig.py as the option didn't get moved. I don't know how expensive it would be, if possible, to detect this kind of failure however.

Quoted 6 lines
Quoted 5 lines

[snip]

Quoted 1 line

Could you move the config to Kconfig rather than removing it, please?

I'll drop this patch and now that you're aware of it, let you handle it. Especially since moveconfig.py isn't seeing it :) Thanks!

Quoted 6 lines

I handled it.
http://patchwork.ozlabs.org/patch/652880/

It is a trivial move,
could you pick it up directly to u-boot/master?

OK, will do.

Quoted 5 lines
Signature · 3 lines
-- 
Best Regards
Masahiro Yamada
Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160726/ab912252/attachment.sig>
#7 lore raw

PATCH 2/2 uniphier: Drop CONFIG_I2C_EEPROM

Hi Tom,

Quoted 3 lines

I'm confused because I both can't replicate my problem but know I checked in drivers/misc for output (I use O= always).

I have no idea.

I tried with O=
and drivers/misc/i2c_eeprom.o was built as well.

Quoted 11 lines
Quoted 11 lines
Quoted 2 lines

And
moveconfig.py also didn't see it needed.

This is correct behavior.

config I2C_EEPROM
bool "Enable driver for generic I2C-attached EEPROMs" depends on MISC

Quoted 6 lines
Quoted 2 lines

This option depends on "MISC".
So, it is invisible unless MISC is defined.

Ah, but I was expecting some sort of failure message from moveconfig.py as the option didn't get moved. I don't know how expensive it would be, if possible, to detect this kind of failure however.

The tool will show as follows:

uniphier_ld4_sld8_defconfig
CONFIG_I2C_EEPROM is not defined in Kconfig. Do nothing.

This is the message.

- CONFIG_... is not defined in Kconfig. Do nothing. The entry for this CONFIG was not found in Kconfig. There are two common cases:
- You forgot to create an entry for the CONFIG before running this tool, or made a typo in a CONFIG passed to this tool.
- The entry was hidden due to unmet 'depends on'. This is correct behavior.

As the document says, moveconfig.py cannot know whether it was hidden by unmet "depends on" or it had really no entry.

Signature · 2 lines
Best Regards
Masahiro Yamada
author
#8 lore raw

PATCH 2/2 uniphier: Drop CONFIG_I2C_EEPROM

On Wed, Jul 27, 2016 at 03:42:40PM +0900, Masahiro Yamada wrote:

[snip]

Quoted 19 lines

The tool will show as follows:

uniphier_ld4_sld8_defconfig
CONFIG_I2C_EEPROM is not defined in Kconfig. Do nothing.

This is the message.

- CONFIG_... is not defined in Kconfig. Do nothing. The entry for this CONFIG was not found in Kconfig. There are two common cases:
- You forgot to create an entry for the CONFIG before running this tool, or made a typo in a CONFIG passed to this tool.
- The entry was hidden due to unmet 'depends on'. This is correct behavior.

Quoted 3 lines

As the document says, moveconfig.py cannot know
whether it was hidden by unmet "depends on"
or it had really no entry.

OK, I think we should make this a much louder and fatal type error. In both cases, the move did not happen as instructed. Is there some way to tell moveconfig that CONFIG_X depends on CONFIG_Y, or would that too start making things too complicated?

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160727/2e0383e9/attachment.sig>
#9 lore raw

PATCH 1/2 sandbox: Migrate CONFIG_I2C_EEPROM

In reply to Tom Rini
Quoted 11 lines · Tom Rini

Most users of CONFIG_I2C_EEPROM were migrated to defconfig a while ago, but sandbox was skipped. Leave it off for sandbox_spl where it does not build, but does not need to be either.

---
 configs/sandbox_defconfig | 1 +
 include/configs/sandbox.h | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)