From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 01/12] dm: spi_flash: fix wrong dependency
Date: Wed, 22 Apr 2015 12:07:22 +0200 [thread overview]
Message-ID: <201504221207.22609.marex@denx.de> (raw)
In-Reply-To: <553767B9.10300@denx.de>
On Wednesday, April 22, 2015 at 11:19:53 AM, Stefan Roese wrote:
> Hi Tom,
>
> On 08.04.2015 16:01, Simon Glass wrote:
> > On 7 April 2015 at 20:50, Simon Glass <sjg@chromium.org> wrote:
> >> On 30 March 2015 at 21:47, Masahiro Yamada
> >>
> >> <yamada.masahiro@socionext.com> wrote:
> >>> CONFIG_SPI does not exist in Kconfig in the first place, so the
> >>> dependency "depends on DM && SPI" is never met, i.e., DM_SPI_FLASH
> >>> can never be enabled (unless you ignore the dependency in an illegal
> >>> way. See below.)
> >>>
> >>> Actually, some defconfigs such as socfpga_*_defconfig define
> >>> CONFIG_DM_SPI_FLASH=y, but it never appears in the .config file
> >>> because of this wrong dependency.
> >>>
> >>> On the other hand, all the Tegra boards enable DM_SPI_FLASH because
> >>>
> >>> config DM_SPI_FLASH
> >>>
> >>> default y
> >>>
> >>> silently ignores the dependency.
> >>> Unfortunately, this style of CONFIG definition is abused everywhere
> >>> in U-Boot, so we easily miss such a wrong dependency.
> >>>
> >>> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> >>> ---
> >>>
> >>> drivers/mtd/spi/Kconfig | 2 +-
> >>> 1 file changed, 1 insertion(+), 1 deletion(-)
> >>>
> >>> diff --git a/drivers/mtd/spi/Kconfig b/drivers/mtd/spi/Kconfig
> >>> index 2dc46b4..fd2d7ac 100644
> >>> --- a/drivers/mtd/spi/Kconfig
> >>> +++ b/drivers/mtd/spi/Kconfig
> >>> @@ -1,6 +1,6 @@
> >>>
> >>> config DM_SPI_FLASH
> >>>
> >>> bool "Enable Driver Model for SPI flash"
> >>>
> >>> - depends on DM && SPI
> >>> + depends on DM && DM_SPI
> >>>
> >>> help
> >>>
> >>> Enable driver model for SPI flash. This SPI flash interface
> >>> (spi_flash_probe(), spi_flash_write(), etc.) is then
> >>>
> >>> --
> >>> 1.9.1
> >>
> >> Acked-by: Simon Glass <sjg@chromium.org>
> >
> > Applied to u-boot-dm/next, thanks!
>
> Do you plan to release a v2015.04.1 stable release at some time? Then
> please add this patch to this version. As it fixes SPI NOR flash on
> SoCFPGA.
Maybe we should consider u-boot-stable ...
Best regards,
Marek Vasut
next prev parent reply other threads:[~2015-04-22 10:07 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-31 3:47 [U-Boot] [PATCH 0/12] dm: use "select DM" Masahiro Yamada
2015-03-31 3:47 ` [U-Boot] [PATCH 01/12] dm: spi_flash: fix wrong dependency Masahiro Yamada
2015-04-08 2:50 ` Simon Glass
2015-04-08 14:01 ` Simon Glass
2015-04-22 9:19 ` Stefan Roese
2015-04-22 10:07 ` Marek Vasut [this message]
2015-04-22 14:39 ` Simon Glass
2015-04-22 14:42 ` Stefan Roese
2015-04-22 15:07 ` Simon Glass
2015-03-31 3:47 ` [U-Boot] [PATCH 02/12] dm: select CONFIG_DM* options Masahiro Yamada
2015-04-08 2:50 ` Simon Glass
2015-04-08 14:01 ` Simon Glass
2015-03-31 3:47 ` [U-Boot] [PATCH 03/12] ARM: UniPhier: use "select" instead of default value in defconfig Masahiro Yamada
2015-04-08 2:50 ` Simon Glass
2015-04-08 14:01 ` Simon Glass
2015-03-31 3:47 ` [U-Boot] [PATCH 04/12] ARM: zynq: " Masahiro Yamada
2015-04-08 2:50 ` Simon Glass
2015-04-08 14:02 ` Simon Glass
2015-03-31 3:47 ` [U-Boot] [PATCH 05/12] ARM: rmobile: " Masahiro Yamada
2015-04-08 2:50 ` Simon Glass
2015-04-08 14:02 ` Simon Glass
2015-03-31 3:47 ` [U-Boot] [PATCH 06/12] ARM: snapper9260: " Masahiro Yamada
2015-04-08 2:50 ` Simon Glass
2015-04-08 14:02 ` Simon Glass
2015-03-31 3:47 ` [U-Boot] [PATCH 07/12] ARM: mx6: " Masahiro Yamada
2015-04-08 2:50 ` Simon Glass
2015-04-08 14:02 ` Simon Glass
2015-03-31 3:47 ` [U-Boot] [PATCH 08/12] ARM: socfpga: " Masahiro Yamada
2015-03-31 20:40 ` Pavel Machek
2015-04-02 0:30 ` Masahiro Yamada
2015-04-02 12:47 ` Pavel Machek
2015-04-06 3:22 ` Masahiro Yamada
2015-04-08 2:46 ` Simon Glass
2015-04-08 2:49 ` Simon Glass
2015-04-08 14:02 ` Simon Glass
2015-03-31 3:48 ` [U-Boot] [PATCH 09/12] ARM: bav335x: " Masahiro Yamada
2015-04-08 2:50 ` Simon Glass
2015-04-08 14:02 ` Simon Glass
2015-03-31 3:48 ` [U-Boot] [PATCH 10/12] ARM: stv0991: " Masahiro Yamada
2015-04-08 2:50 ` Simon Glass
2015-04-08 14:02 ` Simon Glass
2015-04-13 20:38 ` vikasm
2015-03-31 3:48 ` [U-Boot] [PATCH 11/12] ARM: cm_fx6: " Masahiro Yamada
2015-04-08 2:50 ` Simon Glass
2015-04-08 14:02 ` Simon Glass
2015-03-31 3:48 ` [U-Boot] [PATCH 12/12] powerpc: ids8313: " Masahiro Yamada
2015-04-08 2:51 ` Simon Glass
2015-04-08 14:02 ` Simon Glass
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201504221207.22609.marex@denx.de \
--to=marex@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox