diff mbox series

ubi: Depend on MTD

Message ID 20240411-mtd-v1-1-fe300f6ab657@jookia.org
State New
Delegated to: Dario Binacchi
Headers show
Series ubi: Depend on MTD | expand

Commit Message

John Watts April 11, 2024, 5:05 a.m. UTC
UBI required MTD to build correctly, add it as a Kconfig dependency.

Signed-off-by: John Watts <contact@jookia.org>
---
While working with UBI on my SPI NAND patch series I found it was
possible to enable it without enabling the MTD subsystem.
Add a Kconfig option to solve this.
---
 drivers/mtd/ubi/Kconfig | 1 +
 1 file changed, 1 insertion(+)


---
base-commit: 777c28460947371ada40868dc994dfe8537d7115
change-id: 20240411-mtd-d2e811e17cc8

Best regards,

Comments

Michael Nazzareno Trimarchi April 11, 2024, 6:09 a.m. UTC | #1
Hi

On Thu, Apr 11, 2024 at 7:06 AM John Watts <contact@jookia.org> wrote:
>
> UBI required MTD to build correctly, add it as a Kconfig dependency.
>
> Signed-off-by: John Watts <contact@jookia.org>
> ---
> While working with UBI on my SPI NAND patch series I found it was
> possible to enable it without enabling the MTD subsystem.
> Add a Kconfig option to solve this.
> ---
>  drivers/mtd/ubi/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/mtd/ubi/Kconfig b/drivers/mtd/ubi/Kconfig
> index 5783d36c04..fd446d6efb 100644
> --- a/drivers/mtd/ubi/Kconfig
> +++ b/drivers/mtd/ubi/Kconfig
> @@ -9,6 +9,7 @@ config UBI_SILENCE_MSG
>
>  config MTD_UBI
>         bool "Enable UBI - Unsorted block images"
> +       depends on MTD
>         select RBTREE
>         select MTD_PARTITIONS
>         help
>
> ---

Reviewed-by: Michael Trimarchi <michael@amarulasolutins.com>

> base-commit: 777c28460947371ada40868dc994dfe8537d7115
> change-id: 20240411-mtd-d2e811e17cc8
>


> Best regards,
> --
> John Watts <contact@jookia.org>
>
Heiko Schocher April 15, 2024, 5:55 a.m. UTC | #2
Hello John,

On 11.04.24 07:05, John Watts wrote:
> UBI required MTD to build correctly, add it as a Kconfig dependency.
> 
> Signed-off-by: John Watts <contact@jookia.org>
> ---
> While working with UBI on my SPI NAND patch series I found it was
> possible to enable it without enabling the MTD subsystem.
> Add a Kconfig option to solve this.
> ---
>   drivers/mtd/ubi/Kconfig | 1 +
>   1 file changed, 1 insertion(+)

Reviewed-by: Heiko Schocher <hs@denx.de>

Thanks!

bye,
Heiko
Heiko Schocher April 26, 2024, 5:18 a.m. UTC | #3
Hello Tom,

On 11.04.24 08:09, Michael Nazzareno Trimarchi wrote:
> Hi
> 
> On Thu, Apr 11, 2024 at 7:06 AM John Watts <contact@jookia.org> wrote:
>>
>> UBI required MTD to build correctly, add it as a Kconfig dependency.
>>
>> Signed-off-by: John Watts <contact@jookia.org>
>> ---
>> While working with UBI on my SPI NAND patch series I found it was
>> possible to enable it without enabling the MTD subsystem.
>> Add a Kconfig option to solve this.
>> ---
>>   drivers/mtd/ubi/Kconfig | 1 +
>>   1 file changed, 1 insertion(+)

Seems I am too dummy to find this patch in Patchwork, nor is it
applied in master ... can you pick it up, or should I do this and
send you a pull request?

Thanks!

bye,
Heiko
Tom Rini April 26, 2024, 3:52 p.m. UTC | #4
On Fri, Apr 26, 2024 at 07:18:18AM +0200, Heiko Schocher wrote:
> Hello Tom,
> 
> On 11.04.24 08:09, Michael Nazzareno Trimarchi wrote:
> > Hi
> > 
> > On Thu, Apr 11, 2024 at 7:06 AM John Watts <contact@jookia.org> wrote:
> > > 
> > > UBI required MTD to build correctly, add it as a Kconfig dependency.
> > > 
> > > Signed-off-by: John Watts <contact@jookia.org>
> > > ---
> > > While working with UBI on my SPI NAND patch series I found it was
> > > possible to enable it without enabling the MTD subsystem.
> > > Add a Kconfig option to solve this.
> > > ---
> > >   drivers/mtd/ubi/Kconfig | 1 +
> > >   1 file changed, 1 insertion(+)
> 
> Seems I am too dummy to find this patch in Patchwork, nor is it
> applied in master ... can you pick it up, or should I do this and
> send you a pull request?

It's over at
https://patchwork.ozlabs.org/project/uboot/patch/20240411-mtd-v1-1-fe300f6ab657@jookia.org/
currently but you can take it up and send it to me if you like.
Michael Nazzareno Trimarchi April 26, 2024, 3:56 p.m. UTC | #5
Hi Dario

On Fri, Apr 26, 2024 at 5:52 PM Tom Rini <trini@konsulko.com> wrote:
>
> On Fri, Apr 26, 2024 at 07:18:18AM +0200, Heiko Schocher wrote:
> > Hello Tom,
> >
> > On 11.04.24 08:09, Michael Nazzareno Trimarchi wrote:
> > > Hi
> > >
> > > On Thu, Apr 11, 2024 at 7:06 AM John Watts <contact@jookia.org> wrote:
> > > >
> > > > UBI required MTD to build correctly, add it as a Kconfig dependency.
> > > >
> > > > Signed-off-by: John Watts <contact@jookia.org>
> > > > ---
> > > > While working with UBI on my SPI NAND patch series I found it was
> > > > possible to enable it without enabling the MTD subsystem.
> > > > Add a Kconfig option to solve this.
> > > > ---
> > > >   drivers/mtd/ubi/Kconfig | 1 +
> > > >   1 file changed, 1 insertion(+)
> >
> > Seems I am too dummy to find this patch in Patchwork, nor is it
> > applied in master ... can you pick it up, or should I do this and
> > send you a pull request?
>
> It's over at
> https://patchwork.ozlabs.org/project/uboot/patch/20240411-mtd-v1-1-fe300f6ab657@jookia.org/
> currently but you can take it up and send it to me if you like.
>

Can you pick it up? Seems that you are delegate and was already reviewed by me

Michael

> --
> Tom
Dario Binacchi April 30, 2024, 6:37 a.m. UTC | #6
Hi Michael,

On Fri, Apr 26, 2024 at 5:56 PM Michael Nazzareno Trimarchi
<michael@amarulasolutions.com> wrote:
>
> Hi Dario
>
> On Fri, Apr 26, 2024 at 5:52 PM Tom Rini <trini@konsulko.com> wrote:
> >
> > On Fri, Apr 26, 2024 at 07:18:18AM +0200, Heiko Schocher wrote:
> > > Hello Tom,
> > >
> > > On 11.04.24 08:09, Michael Nazzareno Trimarchi wrote:
> > > > Hi
> > > >
> > > > On Thu, Apr 11, 2024 at 7:06 AM John Watts <contact@jookia.org> wrote:
> > > > >
> > > > > UBI required MTD to build correctly, add it as a Kconfig dependency.
> > > > >
> > > > > Signed-off-by: John Watts <contact@jookia.org>
> > > > > ---
> > > > > While working with UBI on my SPI NAND patch series I found it was
> > > > > possible to enable it without enabling the MTD subsystem.
> > > > > Add a Kconfig option to solve this.
> > > > > ---
> > > > >   drivers/mtd/ubi/Kconfig | 1 +
> > > > >   1 file changed, 1 insertion(+)
> > >
> > > Seems I am too dummy to find this patch in Patchwork, nor is it
> > > applied in master ... can you pick it up, or should I do this and
> > > send you a pull request?
> >
> > It's over at
> > https://patchwork.ozlabs.org/project/uboot/patch/20240411-mtd-v1-1-fe300f6ab657@jookia.org/
> > currently but you can take it up and send it to me if you like.
> >
>
> Can you pick it up? Seems that you are delegate and was already reviewed by me

Yes, I will apply the patch to nand-next branch and test it with the CI pipeline

Thanks and regards,
Dario

>
> Michael
>
> > --
> > Tom
>
>
>
> --
> Michael Nazzareno Trimarchi
> Co-Founder & Chief Executive Officer
> M. +39 347 913 2170
> michael@amarulasolutions.com
> __________________________________
>
> Amarula Solutions BV
> Joop Geesinkweg 125, 1114 AB, Amsterdam, NL
> T. +31 (0)85 111 9172
> info@amarulasolutions.com
> www.amarulasolutions.com
diff mbox series

Patch

diff --git a/drivers/mtd/ubi/Kconfig b/drivers/mtd/ubi/Kconfig
index 5783d36c04..fd446d6efb 100644
--- a/drivers/mtd/ubi/Kconfig
+++ b/drivers/mtd/ubi/Kconfig
@@ -9,6 +9,7 @@  config UBI_SILENCE_MSG
 
 config MTD_UBI
 	bool "Enable UBI - Unsorted block images"
+	depends on MTD
 	select RBTREE
 	select MTD_PARTITIONS
 	help