diff mbox

[U-Boot,v2,13/13] dm: blk: Enable CONFIG_BLK if DM_MMC is enabled

Message ID 1467760220-8615-14-git-send-email-sjg@chromium.org
State Superseded
Delegated to: Simon Glass
Headers show

Commit Message

Simon Glass July 5, 2016, 11:10 p.m. UTC
To speed up conversion to CONFIG_BLK, enable it by default when DM_MMC is
enabled.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

Changes in v2:
- Add new dm_scan_fdt_dev() function and convert the code
- Drop patches previously applied to u-boot-dm/next

 drivers/block/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Simon Glass July 17, 2016, 9 p.m. UTC | #1
On 5 July 2016 at 17:10, Simon Glass <sjg@chromium.org> wrote:
> To speed up conversion to CONFIG_BLK, enable it by default when DM_MMC is
> enabled.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>
> Changes in v2:
> - Add new dm_scan_fdt_dev() function and convert the code
> - Drop patches previously applied to u-boot-dm/next
>
>  drivers/block/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig
> index 80eea84..fe5aa07 100644
> --- a/drivers/block/Kconfig
> +++ b/drivers/block/Kconfig
> @@ -1,6 +1,7 @@
>  config BLK
>         bool "Support block devices"
>         depends on DM
> +       default y if DM_MMC
>         help
>           Enable support for block devices, such as SCSI, MMC and USB
>           flash sticks. These provide a block-level interface which permits
> --
> 2.8.0.rc3.226.g39d4020
>

Applied to u-boot-dm.

I'm concerned that this patch might break some boards, but have had
not comments. I'm pretty sure we should get a build error if it is
wrong, and I have build-tested it. Hopefully it will get more testing
once applied.

Regards,
Simon
Simon Glass Aug. 6, 2016, 11:23 p.m. UTC | #2
On 17 July 2016 at 15:00, Simon Glass <sjg@chromium.org> wrote:
> On 5 July 2016 at 17:10, Simon Glass <sjg@chromium.org> wrote:
>> To speed up conversion to CONFIG_BLK, enable it by default when DM_MMC is
>> enabled.
>>
>> Signed-off-by: Simon Glass <sjg@chromium.org>
>> ---
>>
>> Changes in v2:
>> - Add new dm_scan_fdt_dev() function and convert the code
>> - Drop patches previously applied to u-boot-dm/next
>>
>>  drivers/block/Kconfig | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig
>> index 80eea84..fe5aa07 100644
>> --- a/drivers/block/Kconfig
>> +++ b/drivers/block/Kconfig
>> @@ -1,6 +1,7 @@
>>  config BLK
>>         bool "Support block devices"
>>         depends on DM
>> +       default y if DM_MMC
>>         help
>>           Enable support for block devices, such as SCSI, MMC and USB
>>           flash sticks. These provide a block-level interface which permits
>> --
>> 2.8.0.rc3.226.g39d4020
>>
>
> Applied to u-boot-dm.
>
> I'm concerned that this patch might break some boards, but have had
> not comments. I'm pretty sure we should get a build error if it is
> wrong, and I have build-tested it. Hopefully it will get more testing
> once applied.
>
> Regards,
> Simon

I had to drop this due to a build error. Now that the MMC stuff is in
I've applied it again.

- Simon
diff mbox

Patch

diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig
index 80eea84..fe5aa07 100644
--- a/drivers/block/Kconfig
+++ b/drivers/block/Kconfig
@@ -1,6 +1,7 @@ 
 config BLK
 	bool "Support block devices"
 	depends on DM
+	default y if DM_MMC
 	help
 	  Enable support for block devices, such as SCSI, MMC and USB
 	  flash sticks. These provide a block-level interface which permits