configs: sunxi: enable BLK, DM_MMC for Bananapi
PATCH 1/1 configs: sunxi: enable BLK, DM_MMC for Bananapi
doc/driver-model/MIGRATION.txt requires to move block drivers to the the driver model by v2018.05
So make the switch for the Bananapi block drivers.
---
This patch depends on
mmc: sunxi: support cd-inverted
https://lists.denx.de/pipermail/u-boot/2018-February/319309.html
which has been applied to u-boot-sunxi/master.
--- configs/Bananapi_defconfig | 2 ++ 1 file changed, 2 insertions(+)
configs/Bananapi_defconfig +2 -0
@@ -17,6 +17,8 @@ CONFIG_SPL_I2C_SUPPORT=y # CONFIG_SPL_EFI_PARTITION is not set CONFIG_NETCONSOLE=y CONFIG_SCSI_AHCI=y +CONFIG_BLK=y +CONFIG_DM_MMC=y CONFIG_ETH_DESIGNWARE=y CONFIG_RGMII=y CONFIG_SUN7I_GMAC=y
Signature · 1 line
2.11.0
PATCH 1/1 configs: sunxi: enable BLK, DM_MMC for Bananapi
Hi,
Quoted 20 lines · Heinrich Schuchardt
doc/driver-model/MIGRATION.txtrequires to move block drivers to the the driver model by v2018.05So make the switch for the Bananapi block drivers.
Signed-off-by Heinrich Schuchardt <[email protected]>---
This patch depends on
mmc: sunxi: support cd-inverted
https://lists.denx.de/pipermail/u-boot/2018-February/319309.html
which has been applied to u-boot-sunxi/master.--- configs/Bananapi_defconfig | 2 ++ 1 file changed, 2 insertions(+)configs/Bananapi_defconfig +0
-0
configs/Bananapi_defconfig CONFIG_SPL_I2C_SUPPORT=y · line 21
Quoted 5 lines
configs/Bananapi_defconfig +2
-0@@ -17,6 +17,8 @@ CONFIG_SPL_I2C_SUPPORT=y # CONFIG_SPL_EFI_PARTITION is not set CONFIG_NETCONSOLE=y CONFIG_SCSI_AHCI=y +CONFIG_BLK=y +CONFIG_DM_MMC=y
Please switch all the Allwinner boards at once.
Thanks!
Maxime
Signature · 10 lines
Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180313/bbf0a9bb/attachment.sig>
PATCH 1/1 configs: sunxi: enable BLK, DM_MMC for Bananapi
Quoted 18 lines · Maxime Ripard
Hi,
Quoted 15 lines · Heinrich Schuchardt
doc/driver-model/MIGRATION.txtrequires to move block drivers to the the driver model by v2018.05So make the switch for the Bananapi block drivers.
Signed-off-by Heinrich Schuchardt <[email protected]>---
This patch depends on
mmc: sunxi: support cd-inverted
https://lists.denx.de/pipermail/u-boot/2018-February/319309.html
which has been applied to u-boot-sunxi/master.--- configs/Bananapi_defconfig | 2 ++ 1 file changed, 2 insertions(+)
Quoted 12 lines
configs/Bananapi_defconfig CONFIG_SPL_I2C_SUPPORT=y · line 21
Quoted 10 lines
configs/Bananapi_defconfig +2
-0@@ -17,6 +17,8 @@ CONFIG_SPL_I2C_SUPPORT=y # CONFIG_SPL_EFI_PARTITION is not set CONFIG_NETCONSOLE=y CONFIG_SCSI_AHCI=y +CONFIG_BLK=y +CONFIG_DM_MMC=yPlease switch all the Allwinner boards at once.
Hello Maxime,
this is the board I possess and have tested. Who would do the testing if I switch all 127 boards?
I guess the best way to switch all SUNXI boards would be to make CONFIG_SUNXI select CONFIG_DM, CONFIG_BLK, and CONFIG_DM_MMC.
@Simon
Looking at doc/driver-model/MIGRATION.txt would it make sense to set:CONFIG_DM_MMC default yes, depends on CONFIG_MMC. CONFIG_DM_SCSI default yes, depends on CONFIG_SCSI.
...CONFIG_BLK selected by CONFIG_DM_MMC | CONFIG_DM_SCSI | .... CONFIG_DM selected by CONFIG_BLK
Best regards
Heinrich
PATCH 1/1 configs: sunxi: enable BLK, DM_MMC for Bananapi
Quoted 32 lines · Heinrich Schuchardt
Quoted 18 lines · Maxime Ripard
Hi,
Quoted 15 lines · Heinrich Schuchardt
doc/driver-model/MIGRATION.txtrequires to move block drivers to the the driver model by v2018.05So make the switch for the Bananapi block drivers.
Signed-off-by Heinrich Schuchardt <[email protected]>---
This patch depends on
mmc: sunxi: support cd-inverted
https://lists.denx.de/pipermail/u-boot/2018-February/319309.html
which has been applied to u-boot-sunxi/master.--- configs/Bananapi_defconfig | 2 ++ 1 file changed, 2 insertions(+)Quoted 12 lines
configs/Bananapi_defconfig CONFIG_SPL_I2C_SUPPORT=y · line 21
Quoted 10 lines
configs/Bananapi_defconfig +2
-0@@ -17,6 +17,8 @@ CONFIG_SPL_I2C_SUPPORT=y # CONFIG_SPL_EFI_PARTITION is not set CONFIG_NETCONSOLE=y CONFIG_SCSI_AHCI=y +CONFIG_BLK=y +CONFIG_DM_MMC=yPlease switch all the Allwinner boards at once.
Quoted 2 lines
this is the board I possess and have tested. Who would do the testing if I switch all 127 boards?
The alternative you suggest is that you break 126 boards in the next release.
This is core changes, and it should have a minimal impact on the boards if one work.
Quoted 2 lines
I guess the best way to switch all SUNXI boards would be to make
CONFIG_SUNXIselectCONFIG_DM,CONFIG_BLK, andCONFIG_DM_MMC.
Imply it at least, yeah.
Maxime
Signature · 10 lines
Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180314/a066e985/attachment.sig>
PATCH 1/1 configs: sunxi: enable BLK, DM_MMC, DM_SCSI
doc/driver-model/MIGRATION.txt requires to move block drivers to the the driver model by v2018.05
So make the switch for the SUNXI block drivers.
Select BLK, DM_MMC, and DM_SCSI.
DM_USB dpends on USB but there is no necessity to make it depend on DISTRO_DEFAULTS.
--- arch/arm/Kconfig | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
arch/arm/Kconfig +5 -2
@@ -715,13 +715,16 @@ config ARCH_SUNXI select BINMAN select CMD_GPIO select CMD_MMC if MMC - select CMD_USB if DISTRO_DEFAULTS + select CMD_USB if USB select DM + select BLK select DM_ETH select DM_GPIO select DM_KEYBOARD + select DM_MMC + select DM_SCSI select DM_SERIAL - select DM_USB if DISTRO_DEFAULTS + select DM_USB if USB select OF_BOARD_SETUP select OF_CONTROL select OF_SEPARATE
Signature · 1 line
2.16.2
PATCH 1/1 configs: sunxi: enable BLK, DM_MMC, DM_SCSI
Hi,
Quoted 9 lines · Heinrich Schuchardt
doc/driver-model/MIGRATION.txtrequires to move block drivers to the the driver model by v2018.05So make the switch for the SUNXI block drivers.
Select BLK,
DM_MMC, andDM_SCSI.
DM_USBdpends on USB but there is no necessity to make it depend onDISTRO_DEFAULTS.
That should be a separate patch.
Quoted 10 lines
Signed-off-by Heinrich Schuchardt <[email protected]>--- arch/arm/Kconfig | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)arch/arm/Kconfig +0
-0
arch/arm/Kconfig config ARCH_SUNXI · line 720
Quoted 7 lines
arch/arm/Kconfig +2
-1@@ -715,13 +715,16 @@ config ARCH_SUNXI select BINMAN select CMD_GPIO select CMD_MMC if MMC - select CMD_USB if DISTRO_DEFAULTS + select CMD_USB if USB select DM + select BLK
You assume here that you always have a block device, which might not be the case (for example if you only have a NAND chip on your board).
arch/arm/Kconfig config ARCH_SUNXI · line 724
Quoted 4 lines
arch/arm/Kconfig +1
-0select DM_ETH select DM_GPIO select DM_KEYBOARD + select DM_MMC
Ditto.
arch/arm/Kconfig config ARCH_SUNXI · line 725
Quoted 1 line
arch/arm/Kconfig +1
-0+ select DM_SCSI
Ditto, with SATA.
Thanks!
Maxime
Signature · 10 lines
Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180318/23ba7ceb/attachment.sig>
PATCH 1/1 configs: sunxi: enable BLK, DM_MMC, DM_SCSI
Quoted 20 lines · Maxime Ripard
Hi,
Quoted 9 lines · Heinrich Schuchardt
doc/driver-model/MIGRATION.txtrequires to move block drivers to the the driver model by v2018.05So make the switch for the SUNXI block drivers.
Select BLK,
DM_MMC, andDM_SCSI.
DM_USBdpends on USB but there is no necessity to make it depend onDISTRO_DEFAULTS.That should be a separate patch.
Quoted 5 lines
Signed-off-by Heinrich Schuchardt <[email protected]>--- arch/arm/Kconfig | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
Quoted 15 lines
arch/arm/Kconfig config ARCH_SUNXI · line 720
Quoted 12 lines
arch/arm/Kconfig +2
-1@@ -715,13 +715,16 @@ config ARCH_SUNXI select BINMAN select CMD_GPIO select CMD_MMC if MMC - select CMD_USB if DISTRO_DEFAULTS + select CMD_USB if USB select DM + select BLKYou assume here that you always have a block device, which might not be the case (for example if you only have a NAND chip on your board).
I ran a full Travis test for Sunxi boards and could not see any compile error only a time out for one group of boards.
BLK is used by #ifdefs in code handling block devices. It has no effect if the block device code is not built.
Quoted 2 lines
arch/arm/Kconfig config ARCH_SUNXI · line 721
Quoted 2 lines
arch/arm/Kconfig +0
-0select DM_ETH
Here you already select DM_ETH without requiring network. It simply has not effect if there is not network driver built.
Quoted 5 lines
arch/arm/Kconfig config ARCH_SUNXI · line 724
Quoted 3 lines
arch/arm/Kconfig +1
-0select DM_GPIO select DM_KEYBOARD + select DM_MMCDitto.
DM_MMC only depends on DM not on MMC see drivers/mmc/Kconfig If you don't build MMC code it has no effect.
Quoted 5 lines
arch/arm/Kconfig config ARCH_SUNXI · line 725
Quoted 2 lines
arch/arm/Kconfig +1
-0+ select DM_SCSIDitto, with SATA.
If you don't build SCSI or ATA code the flag has no effect.
Regards
Heinrich
PATCH 1/1 configs: sunxi: enable BLK, DM_MMC, DM_SCSI
Quoted 36 lines · Heinrich Schuchardt
Quoted 20 lines · Maxime Ripard
Hi,
Quoted 9 lines · Heinrich Schuchardt
doc/driver-model/MIGRATION.txtrequires to move block drivers to the the driver model by v2018.05So make the switch for the SUNXI block drivers.
Select BLK,
DM_MMC, andDM_SCSI.
DM_USBdpends on USB but there is no necessity to make it depend onDISTRO_DEFAULTS.That should be a separate patch.
Quoted 5 lines
Signed-off-by Heinrich Schuchardt <[email protected]>--- arch/arm/Kconfig | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)Quoted 15 lines
arch/arm/Kconfig config ARCH_SUNXI · line 720
Quoted 12 lines
arch/arm/Kconfig +2
-1@@ -715,13 +715,16 @@ config ARCH_SUNXI select BINMAN select CMD_GPIO select CMD_MMC if MMC - select CMD_USB if DISTRO_DEFAULTS + select CMD_USB if USB select DM + select BLKYou assume here that you always have a block device, which might not be the case (for example if you only have a NAND chip on your board).
Quoted 5 lines
I ran a full Travis test for Sunxi boards and could not see any compile error only a time out for one group of boards.
BLK is used by #ifdefs in code handling block devices. It has no effect if the block device code is not built.
Still, you add some completely unnecessary code in such a case.
Quoted 5 lines
Quoted 2 lines
arch/arm/Kconfig config ARCH_SUNXI · line 721
Quoted 2 lines
arch/arm/Kconfig +0
-0select DM_ETHHere you already select
DM_ETHwithout requiring network. It simply has not effect if there is not network driver built.
You're right, it should probably be fixed as well.
Quoted 8 lines
Quoted 5 lines
arch/arm/Kconfig config ARCH_SUNXI · line 724
Quoted 3 lines
arch/arm/Kconfig +1
-0select DM_GPIO select DM_KEYBOARD + select DM_MMCDitto.
DM_MMConly depends on DM not on MMC seedrivers/mmc/KconfigIf you don't build MMC code it has no effect.
But then, you have some dead code.
Quoted 6 lines
Quoted 4 lines
arch/arm/Kconfig config ARCH_SUNXI · line 725
Quoted 1 line
arch/arm/Kconfig +1
-0+ select DM_SCSIDitto, with SATA.
If you don't build SCSI or ATA code the flag has no effect.
And same argument here.
Maxime
Signature · 3 lines
Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com
PATCH 1/1 configs: sunxi: enable BLK, DM_MMC, DM_SCSI
Quoted 37 lines · Maxime Ripard
Quoted 36 lines · Heinrich Schuchardt
Quoted 35 lines · Maxime Ripard
Hi,
Quoted 9 lines · Heinrich Schuchardt
doc/driver-model/MIGRATION.txtrequires to move block drivers to the the driver model by v2018.05So make the switch for the SUNXI block drivers.
Select BLK,
DM_MMC, andDM_SCSI.
DM_USBdpends on USB but there is no necessity to make it depend onDISTRO_DEFAULTS.That should be a separate patch.
Quoted 10 lines
Signed-off-by Heinrich Schuchardt <[email protected]>--- arch/arm/Kconfig | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)arch/arm/Kconfig +0
-0arch/arm/Kconfig config ARCH_SUNXI · line 720
Quoted 7 lines
arch/arm/Kconfig +2
-1@@ -715,13 +715,16 @@ config ARCH_SUNXI select BINMAN select CMD_GPIO select CMD_MMC if MMC - select CMD_USB if DISTRO_DEFAULTS + select CMD_USB if USB select DM + select BLKYou assume here that you always have a block device, which might not be the case (for example if you only have a NAND chip on your board).
Quoted 7 lines
Quoted 5 lines
I ran a full Travis test for Sunxi boards and could not see any compile error only a time out for one group of boards.
BLK is used by #ifdefs in code handling block devices. It has no effect if the block device code is not built.
Still, you add some completely unnecessary code in such a case.
Even if there is no block device I still want to be able to start iPXE via bootefi and to attach an iSCSI drive. This requires BLK.
Quoted 15 lines
Quoted 6 lines
Quoted 3 lines
arch/arm/Kconfig config ARCH_SUNXI · line 721
Quoted 3 lines
arch/arm/Kconfig +0
-0select DM_ETHHere you already select
DM_ETHwithout requiring network. It simply has not effect if there is not network driver built.You're right, it should probably be fixed as well.
Quoted 6 lines
Quoted 5 lines
arch/arm/Kconfig config ARCH_SUNXI · line 724
Quoted 3 lines
arch/arm/Kconfig +1
-0select DM_GPIO select DM_KEYBOARD + select DM_MMCDitto.
Quoted 4 lines
Quoted 2 lines
DM_MMConly depends on DM not on MMC seedrivers/mmc/KconfigIf you don't build MMC code it has no effect.But then, you have some dead code.
I could not find any. Please, indicate where.
Best regards
Heinrich
Quoted 12 lines
Quoted 7 lines
Quoted 5 lines
arch/arm/Kconfig config ARCH_SUNXI · line 725
Quoted 2 lines
arch/arm/Kconfig +1
-0+ select DM_SCSIDitto, with SATA.
If you don't build SCSI or ATA code the flag has no effect.
And same argument here.
Maxime