[PATCH 2/2] sf: Simplify probe for dm code

Jagan Teki jagan at amarulasolutions.com
Wed Jul 8 14:00:54 CEST 2020


On Thu, May 14, 2020 at 11:39 PM Jagan Teki <jagan at amarulasolutions.com> wrote:
>
> Handling probing code for a particular uclass between
> dm vs nodm always confusing and requires additional
> ifdefs to handle them properly.
>
> But, having separate low-level code bases for dm and
> nodm can make it easy for the command level to use same
> function name to probe the devices. This would indeed
> avoid extra ifdef call in source code.
>
> So, this patch probes the spi flash in common legacy
> call spi_flash_probe for both dm and nodm devices and
> give a chance to handle on respective code bases based
> on the build files.
>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Vignesh R <vigneshr at ti.com>
> Cc: Daniel Schwierzeck <daniel.schwierzeck at gmail.com>
> Signed-off-by: Jagan Teki <jagan at amarulasolutions.com>
> ---

I'm moving with this since we still have few drivers left for nondm
code for SPL.

Jagan.


More information about the U-Boot mailing list