[U-Boot] [PATCH v2 4/5] fdtdec: switch GENERIC_SPI_FLASH to jedec, spi-nor

Bin Meng bmeng.cn at gmail.com
Thu Dec 6 10:09:59 UTC 2018


On Thu, Dec 6, 2018 at 6:08 PM Neil Armstrong <narmstrong at baylibre.com> wrote:
>
> On 06/12/2018 11:06, Simon Goldschmidt wrote:
> > On Thu, Dec 6, 2018 at 10:51 AM Neil Armstrong <narmstrong at baylibre.com> wrote:
> >>
> >> The x86 code uses "spi-flash" to detect a flash node, switch to
> >> "jedec,spi-nor" since the DTS files has been switched already.
> >>
> >> Signed-off-by: Neil Armstrong <narmstrong at baylibre.com>
> >> ---
> >>  lib/fdtdec.c | 2 +-
> >>  1 file changed, 1 insertion(+), 1 deletion(-)
> >>
> >> diff --git a/lib/fdtdec.c b/lib/fdtdec.c
> >> index cbdc077825..043b96b17b 100644
> >> --- a/lib/fdtdec.c
> >> +++ b/lib/fdtdec.c
> >> @@ -49,7 +49,7 @@ static const char * const compat_names[COMPAT_COUNT] = {
> >>         COMPAT(SAMSUNG_EXYNOS_MIPI_DSI, "samsung,exynos-mipi-dsi"),
> >>         COMPAT(SAMSUNG_EXYNOS_DWMMC, "samsung,exynos-dwmmc"),
> >>         COMPAT(SAMSUNG_EXYNOS_MMC, "samsung,exynos-mmc"),
> >> -       COMPAT(GENERIC_SPI_FLASH, "spi-flash"),
> >> +       COMPAT(GENERIC_SPI_FLASH, "jedec,spi-nor"),
> >
> > I'm not familiar with this code and where it is used, but to keep
> > U-Boot buildable and runnable (e.g. for 'git bisect'), do we need to
> > move this patch to before removing the "spi-flash" compatible or even
> > into patch 2 where the device trees are changed?
>
> Yep, it should even go in the same patch as the x86 dts changes.

Yes, I think so. Thanks for doing this!

Regards,
Bin


More information about the U-Boot mailing list