lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Sat, 2 May 2020 12:09:38 +0200
From:   Geert Uytterhoeven <geert@...ux-m68k.org>
To:     Bin Meng <bmeng.cn@...il.com>
Cc:     Linux-sh list <linux-sh@...r.kernel.org>,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
        Bin Meng <bin.meng@...driver.com>
Subject: Re: [PATCH] sh: Drop CONFIG_MTD_M25P80 in sh7757lcr_defconfig

Hi Bin,

On Sat, May 2, 2020 at 6:27 AM Bin Meng <bmeng.cn@...il.com> wrote:
> From: Bin Meng <bin.meng@...driver.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@...driver.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@...ux-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

Powered by blists - more mailing lists