linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] sh: Drop CONFIG_MTD_M25P80 in sh7757lcr_defconfig
@ 2020-05-02  4:27 Bin Meng
  2020-05-02 10:09 ` Geert Uytterhoeven
  0 siblings, 1 reply; 4+ messages in thread
From: Bin Meng @ 2020-05-02  4:27 UTC (permalink / raw)
  To: linux-sh, linux-kernel; +Cc: Bin Meng

From: Bin Meng <bin.meng@windriver.com>

Drop CONFIG_MTD_M25P80 that was removed in
commit b35b9a10362d ("mtd: spi-nor: Move m25p80 code in spi-nor.c")

Signed-off-by: Bin Meng <bin.meng@windriver.com>
---

 arch/sh/configs/sh7757lcr_defconfig | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/sh/configs/sh7757lcr_defconfig b/arch/sh/configs/sh7757lcr_defconfig
index 9f2aed0..1e41a04 100644
--- a/arch/sh/configs/sh7757lcr_defconfig
+++ b/arch/sh/configs/sh7757lcr_defconfig
@@ -36,7 +36,6 @@ CONFIG_IPV6=y
 # CONFIG_FW_LOADER is not set
 CONFIG_MTD=y
 CONFIG_MTD_BLOCK=y
-CONFIG_MTD_M25P80=y
 CONFIG_BLK_DEV_RAM=y
 CONFIG_SCSI=y
 CONFIG_BLK_DEV_SD=y
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] sh: Drop CONFIG_MTD_M25P80 in sh7757lcr_defconfig
  2020-05-02  4:27 [PATCH] sh: Drop CONFIG_MTD_M25P80 in sh7757lcr_defconfig Bin Meng
@ 2020-05-02 10:09 ` Geert Uytterhoeven
  2020-05-02 11:05   ` Bin Meng
  0 siblings, 1 reply; 4+ messages in thread
From: Geert Uytterhoeven @ 2020-05-02 10:09 UTC (permalink / raw)
  To: Bin Meng; +Cc: Linux-sh list, Linux Kernel Mailing List, Bin Meng

Hi Bin,

On Sat, May 2, 2020 at 6:27 AM Bin Meng <bmeng.cn@gmail.com> wrote:
> From: Bin Meng <bin.meng@windriver.com>
>
> Drop CONFIG_MTD_M25P80 that was removed in
> commit b35b9a10362d ("mtd: spi-nor: Move m25p80 code in spi-nor.c")
>
> Signed-off-by: Bin Meng <bin.meng@windriver.com>

Thanks for your patch!

Blindly removing config options from defconfig files that haven't
received much love for a while is IMHO not such a good idea, as it makes
it harder to see what the affected platform needs, or needed.

> --- a/arch/sh/configs/sh7757lcr_defconfig
> +++ b/arch/sh/configs/sh7757lcr_defconfig
> @@ -36,7 +36,6 @@ CONFIG_IPV6=y
>  # CONFIG_FW_LOADER is not set
>  CONFIG_MTD=y
>  CONFIG_MTD_BLOCK=y
> -CONFIG_MTD_M25P80=y
>  CONFIG_BLK_DEV_RAM=y
>  CONFIG_SCSI=y
>  CONFIG_BLK_DEV_SD=y

MTD_SPI_NOR became a dependency for MTD_M25P80 since commit
03e296f613affcc2671c1e86d8c25ecad867204e ("mtd: m25p80: use the SPI nor
framework") and commit e43b20619bdb6c851dd7b49cbd15e52875a785d4 ("mtd:
spi-nor: shorten Kconfig naming").  Hence CONFIG_MTD_SPI_NOR=y should be
added to avoid breaking the platform's SPI FLASH support.

Just removing CONFIG_MTD_M25P80=y from the defconfig makes this less
visible for someone who wants to build a kernel for this platform using
"make sh7757lcr_defconfig": it can no longer be seen that
CONFIG_MTD_M25P80=y won't be present in the resulting .config file.

I think the platform would be better served with a proper refresh of the
defconfig file.

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] sh: Drop CONFIG_MTD_M25P80 in sh7757lcr_defconfig
  2020-05-02 10:09 ` Geert Uytterhoeven
@ 2020-05-02 11:05   ` Bin Meng
  2020-05-04  6:54     ` Geert Uytterhoeven
  0 siblings, 1 reply; 4+ messages in thread
From: Bin Meng @ 2020-05-02 11:05 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Linux-sh list, Linux Kernel Mailing List, Bin Meng

Hi Geert,

On Sat, May 2, 2020 at 6:09 PM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
>
> Hi Bin,
>
> On Sat, May 2, 2020 at 6:27 AM Bin Meng <bmeng.cn@gmail.com> wrote:
> > From: Bin Meng <bin.meng@windriver.com>
> >
> > Drop CONFIG_MTD_M25P80 that was removed in
> > commit b35b9a10362d ("mtd: spi-nor: Move m25p80 code in spi-nor.c")
> >
> > Signed-off-by: Bin Meng <bin.meng@windriver.com>
>
> Thanks for your patch!
>
> Blindly removing config options from defconfig files that haven't
> received much love for a while is IMHO not such a good idea, as it makes
> it harder to see what the affected platform needs, or needed.
>
> > --- a/arch/sh/configs/sh7757lcr_defconfig
> > +++ b/arch/sh/configs/sh7757lcr_defconfig
> > @@ -36,7 +36,6 @@ CONFIG_IPV6=y
> >  # CONFIG_FW_LOADER is not set
> >  CONFIG_MTD=y
> >  CONFIG_MTD_BLOCK=y
> > -CONFIG_MTD_M25P80=y
> >  CONFIG_BLK_DEV_RAM=y
> >  CONFIG_SCSI=y
> >  CONFIG_BLK_DEV_SD=y
>
> MTD_SPI_NOR became a dependency for MTD_M25P80 since commit
> 03e296f613affcc2671c1e86d8c25ecad867204e ("mtd: m25p80: use the SPI nor
> framework") and commit e43b20619bdb6c851dd7b49cbd15e52875a785d4 ("mtd:
> spi-nor: shorten Kconfig naming").  Hence CONFIG_MTD_SPI_NOR=y should be
> added to avoid breaking the platform's SPI FLASH support.
>
> Just removing CONFIG_MTD_M25P80=y from the defconfig makes this less
> visible for someone who wants to build a kernel for this platform using
> "make sh7757lcr_defconfig": it can no longer be seen that
> CONFIG_MTD_M25P80=y won't be present in the resulting .config file.
>

Thank you for the review! Sorry I missed that.

> I think the platform would be better served with a proper refresh of the
> defconfig file.

I am not sure if doing a defconfig refresh should be a separate patch.
I felt mixing the refresh with the real changes makes the code review
a little bit hard. I just sent v2 without the refresh. Please let me
know if it is okay.

Regards,
Bin

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] sh: Drop CONFIG_MTD_M25P80 in sh7757lcr_defconfig
  2020-05-02 11:05   ` Bin Meng
@ 2020-05-04  6:54     ` Geert Uytterhoeven
  0 siblings, 0 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2020-05-04  6:54 UTC (permalink / raw)
  To: Bin Meng; +Cc: Linux-sh list, Linux Kernel Mailing List, Bin Meng

Hi Bin,

On Sat, May 2, 2020 at 1:05 PM Bin Meng <bmeng.cn@gmail.com> wrote:
> On Sat, May 2, 2020 at 6:09 PM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> > On Sat, May 2, 2020 at 6:27 AM Bin Meng <bmeng.cn@gmail.com> wrote:
> > > From: Bin Meng <bin.meng@windriver.com>
> > >
> > > Drop CONFIG_MTD_M25P80 that was removed in
> > > commit b35b9a10362d ("mtd: spi-nor: Move m25p80 code in spi-nor.c")
> > >
> > > Signed-off-by: Bin Meng <bin.meng@windriver.com>
> >
> > Thanks for your patch!
> >
> > Blindly removing config options from defconfig files that haven't
> > received much love for a while is IMHO not such a good idea, as it makes
> > it harder to see what the affected platform needs, or needed.
> >
> > > --- a/arch/sh/configs/sh7757lcr_defconfig
> > > +++ b/arch/sh/configs/sh7757lcr_defconfig
> > > @@ -36,7 +36,6 @@ CONFIG_IPV6=y
> > >  # CONFIG_FW_LOADER is not set
> > >  CONFIG_MTD=y
> > >  CONFIG_MTD_BLOCK=y
> > > -CONFIG_MTD_M25P80=y
> > >  CONFIG_BLK_DEV_RAM=y
> > >  CONFIG_SCSI=y
> > >  CONFIG_BLK_DEV_SD=y
> >
> > MTD_SPI_NOR became a dependency for MTD_M25P80 since commit
> > 03e296f613affcc2671c1e86d8c25ecad867204e ("mtd: m25p80: use the SPI nor
> > framework") and commit e43b20619bdb6c851dd7b49cbd15e52875a785d4 ("mtd:
> > spi-nor: shorten Kconfig naming").  Hence CONFIG_MTD_SPI_NOR=y should be
> > added to avoid breaking the platform's SPI FLASH support.
> >
> > Just removing CONFIG_MTD_M25P80=y from the defconfig makes this less
> > visible for someone who wants to build a kernel for this platform using
> > "make sh7757lcr_defconfig": it can no longer be seen that
> > CONFIG_MTD_M25P80=y won't be present in the resulting .config file.
> >
>
> Thank you for the review! Sorry I missed that.
>
> > I think the platform would be better served with a proper refresh of the
> > defconfig file.
>
> I am not sure if doing a defconfig refresh should be a separate patch.

OK.

> I felt mixing the refresh with the real changes makes the code review
> a little bit hard. I just sent v2 without the refresh. Please let me
> know if it is okay.

Thank you, that's fine. It turns out sh7757lcr_defconfig has less bitrotted
than I had feared.

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-05-04  6:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-02  4:27 [PATCH] sh: Drop CONFIG_MTD_M25P80 in sh7757lcr_defconfig Bin Meng
2020-05-02 10:09 ` Geert Uytterhoeven
2020-05-02 11:05   ` Bin Meng
2020-05-04  6:54     ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).