[PATCH v6 065/102] spi: ich: Move the protection/lockdown code into a function

Bin Meng bmeng.cn at gmail.com
Sun Dec 8 04:38:18 CET 2019


On Sat, Dec 7, 2019 at 12:50 PM Simon Glass <sjg at chromium.org> wrote:
>
> Reduce the size of the probe function but putting this code into its own
> function.
>
> Also remove the assumption that the PCH is always a parent of the SPI
> controller, as this is not the case APL platforms. Use driver model to
> find the PCH instead.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
> ---
>
> Changes in v6: None
> Changes in v5: None
> Changes in v4: None
> Changes in v3: None
> Changes in v2: None
>
>  drivers/spi/ich.c | 63 ++++++++++++++++++++++++++++++++---------------
>  drivers/spi/ich.h |  1 +
>  2 files changed, 44 insertions(+), 20 deletions(-)
>

applied to u-boot-x86/next, thanks!


More information about the U-Boot mailing list