Re: [U-Boot] [PATCH] i2c: remove SYS_ prefix from CONFIG options
Hello Masahiro, Am 19.10.2017 um 06:38 schrieb Heiko Schocher: Hello Masahiro, Am 17.10.2017 um 15:36 schrieb Masahiro Yamada: Historically, U-Boot added CONFIG_SYS_ prefix to user-unconfigurable options. Somehow, this rule was not observed in some places, and getting meaningless with Kconfig introduction where platforms can "select" to force options. Actually, I2C drivers are generally configurable. Convert the options in drivers/i2c/Kconfig. This commit was generated by the following command. find . -name .git -prune -o -type f -print | \ xargs sed -i -e ' s/SYS_I2C_AT91/I2C_AT91/g s/SYS_I2C_FSL/I2C_FSL/g s/SYS_I2C_CADENCE/I2C_CADENCE/g s/SYS_I2C_DW/I2C_DW/g s/SYS_I2C_DW_ENABLE_STATUS_UNSUPPORTED/I2C_DW_ENABLE_STATUS_UNSUPPORTED/g s/SYS_I2C_ASPEED/I2C_ASPEED/g s/SYS_I2C_INTEL/I2C_INTEL/g s/SYS_I2C_IMX_LPI2C/I2C_IMX_LPI2C/g s/SYS_I2C_MXC/I2C_MXC/g s/SYS_I2C_OMAP24XX/I2C_OMAP24XX/g s/SYS_I2C_ROCKCHIP/I2C_ROCKCHIP/g s/SYS_I2C_SANDBOX/I2C_SANDBOX/g s/SYS_I2C_S3C24X0/I2C_S3C24X0/g s/SYS_I2C_STM32F7/I2C_STM32F7/g s/SYS_I2C_UNIPHIER/I2C_UNIPHIER/g s/SYS_I2C_UNIPHIER_F/I2C_UNIPHIER_F/g s/SYS_I2C_MVTWSI/I2C_MVTWSI/g s/TEGRA186_BPMP_I2C/I2C_TEGRA186_BPMP/g s/SYS_I2C_BUS_MAX/I2C_BUS_MAX/g ' Signed-off-by: Masahiro YamadaThanks ... but why do you not convert all symbols? With your patch there are now CONFIG_I2C and CONFIG_SYS_I2C symbols mixed. Please send another patch where you convert the missing: SYS_I2C_ADI SYS_I2C SYS_I2C_DAVINCI SYS_I2C_FTI2C010 SYS_I2C_IHS SYS_I2C_KONA SYS_I2C_LPC32XX SYS_I2C_MXS SYS_I2C_RCAR SYS_I2C_SH SYS_I2C_SOFT SYS_I2C_TEGRA SYS_I2C_ZYNQ Beside of this I like this change. travis build fails, see: https://travis-ci.org/hsdenx/u-boot-i2c/builds/289801746 All sort of: Building current source for 11 boards (2 threads, 1 job per thread) arm: + imx31_phycore_eet +comm: file 2 is not in sorted order +Error: You must add new CONFIG options using Kconfig +The following new ad-hoc CONFIG options were detected: +CONFIG_I2C_MXC_I2C1 +CONFIG_I2C_MXC_I2C2 +CONFIG_I2C_MXC_I2C3 + +Please add these via Kconfig instead. Find a suitable Kconfig +file and add a 'config' or 'menuconfig' option. Seems you cannot easy find and replace ... bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: h...@denx.de ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Re: [U-Boot] [PATCH] i2c: remove SYS_ prefix from CONFIG options
Hi Heiko, 2017-10-19 13:38 GMT+09:00 Heiko Schocher: > Hello Masahiro, > > > Am 17.10.2017 um 15:36 schrieb Masahiro Yamada: >> >> Historically, U-Boot added CONFIG_SYS_ prefix to user-unconfigurable >> options. Somehow, this rule was not observed in some places, and >> getting meaningless with Kconfig introduction where platforms can >> "select" to force options. Actually, I2C drivers are generally >> configurable. >> >> Convert the options in drivers/i2c/Kconfig. >> >> This commit was generated by the following command. >> >> find . -name .git -prune -o -type f -print | \ >> xargs sed -i -e ' >> s/SYS_I2C_AT91/I2C_AT91/g >> s/SYS_I2C_FSL/I2C_FSL/g >> s/SYS_I2C_CADENCE/I2C_CADENCE/g >> s/SYS_I2C_DW/I2C_DW/g >> s/SYS_I2C_DW_ENABLE_STATUS_UNSUPPORTED/I2C_DW_ENABLE_STATUS_UNSUPPORTED/g >> s/SYS_I2C_ASPEED/I2C_ASPEED/g >> s/SYS_I2C_INTEL/I2C_INTEL/g >> s/SYS_I2C_IMX_LPI2C/I2C_IMX_LPI2C/g >> s/SYS_I2C_MXC/I2C_MXC/g >> s/SYS_I2C_OMAP24XX/I2C_OMAP24XX/g >> s/SYS_I2C_ROCKCHIP/I2C_ROCKCHIP/g >> s/SYS_I2C_SANDBOX/I2C_SANDBOX/g >> s/SYS_I2C_S3C24X0/I2C_S3C24X0/g >> s/SYS_I2C_STM32F7/I2C_STM32F7/g >> s/SYS_I2C_UNIPHIER/I2C_UNIPHIER/g >> s/SYS_I2C_UNIPHIER_F/I2C_UNIPHIER_F/g >> s/SYS_I2C_MVTWSI/I2C_MVTWSI/g >> s/TEGRA186_BPMP_I2C/I2C_TEGRA186_BPMP/g >> s/SYS_I2C_BUS_MAX/I2C_BUS_MAX/g >> ' >> >> Signed-off-by: Masahiro Yamada > > > > Thanks ... but why do you not convert all symbols? > Good question. I thought legacy options should be moved to Kconfig and renamed at the same time. I prefer one-time churn to twice. I sometimes do that. For example, commit 1d2c0506d31a9997e5ffc22e90942902f673b107 I assume your next question about Kconfig move. Yeah, if I find some time this week, I think I can do rename-and-move for the rest of options. -- Best Regards Masahiro Yamada ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Re: [U-Boot] [PATCH] i2c: remove SYS_ prefix from CONFIG options
Hello Masahiro, Am 17.10.2017 um 15:36 schrieb Masahiro Yamada: Historically, U-Boot added CONFIG_SYS_ prefix to user-unconfigurable options. Somehow, this rule was not observed in some places, and getting meaningless with Kconfig introduction where platforms can "select" to force options. Actually, I2C drivers are generally configurable. Convert the options in drivers/i2c/Kconfig. This commit was generated by the following command. find . -name .git -prune -o -type f -print | \ xargs sed -i -e ' s/SYS_I2C_AT91/I2C_AT91/g s/SYS_I2C_FSL/I2C_FSL/g s/SYS_I2C_CADENCE/I2C_CADENCE/g s/SYS_I2C_DW/I2C_DW/g s/SYS_I2C_DW_ENABLE_STATUS_UNSUPPORTED/I2C_DW_ENABLE_STATUS_UNSUPPORTED/g s/SYS_I2C_ASPEED/I2C_ASPEED/g s/SYS_I2C_INTEL/I2C_INTEL/g s/SYS_I2C_IMX_LPI2C/I2C_IMX_LPI2C/g s/SYS_I2C_MXC/I2C_MXC/g s/SYS_I2C_OMAP24XX/I2C_OMAP24XX/g s/SYS_I2C_ROCKCHIP/I2C_ROCKCHIP/g s/SYS_I2C_SANDBOX/I2C_SANDBOX/g s/SYS_I2C_S3C24X0/I2C_S3C24X0/g s/SYS_I2C_STM32F7/I2C_STM32F7/g s/SYS_I2C_UNIPHIER/I2C_UNIPHIER/g s/SYS_I2C_UNIPHIER_F/I2C_UNIPHIER_F/g s/SYS_I2C_MVTWSI/I2C_MVTWSI/g s/TEGRA186_BPMP_I2C/I2C_TEGRA186_BPMP/g s/SYS_I2C_BUS_MAX/I2C_BUS_MAX/g ' Signed-off-by: Masahiro YamadaThanks ... but why do you not convert all symbols? With your patch there are now CONFIG_I2C and CONFIG_SYS_I2C symbols mixed. Please send another patch where you convert the missing: SYS_I2C_ADI SYS_I2C SYS_I2C_DAVINCI SYS_I2C_FTI2C010 SYS_I2C_IHS SYS_I2C_KONA SYS_I2C_LPC32XX SYS_I2C_MXS SYS_I2C_RCAR SYS_I2C_SH SYS_I2C_SOFT SYS_I2C_TEGRA SYS_I2C_ZYNQ Beside of this I like this change. bye, Heiko bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: h...@denx.de ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot