[U-Boot] [PATCH 1/4] mmc: sunxi: fix legacy MMC initialisation

Chen-Yu Tsai wens at csie.org
Thu Aug 24 03:11:02 UTC 2017


On Wed, Aug 23, 2017 at 7:41 PM, Maxime Ripard
<maxime.ripard at free-electrons.com> wrote:
> The driver-model rework changed, among other things, the way the private
> data were moved around. It now uses the private field in the struct mmc.
>
> However, the mmc_create argument was changed in the process to always pass
> the array we used to have to store our private structures.
>
> The basically means that all the MMC driver instances will now have the
> private data of the first instance, which obviously doesn't work very well.
>
> Pass the proper pointer to mmc_create.
>
> Fixes: 034e226bc77e ("dm: mmc: sunxi: Pass private data around explicitly")
> Signed-off-by: Maxime Ripard <maxime.ripard at free-electrons.com>

Tested-by: Chen-Yu Tsai <wens at csie.org>


More information about the U-Boot mailing list