[PATCH libbsd v2] mmcsd: Don't handle multiple hardware partitions.

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Apr 1 09:55:10 UTC 2020


On 01/04/2020 11:45, Christian Mauderer wrote:
> The rtems_bsd_mmcsd_attach_worker acquired the bus without releasing it.
> If a MMC device has multiple hardware partitions (like eMMC which
> typically has at least one boot partition) the
> rtems_bsd_mmcsd_attach_worker would try to acquire the bus multiple
> times. This doesn't work.
>
> Doing it right would mean to acquire and release the bus for each
> access which would have an performance impact. Beneath that it would
> mean that partition switching has to be supported by the RTEMS code too.
>
> There is currently no known use case where the access would be
> necessary. Therefore this patch prefers the performance and just avoids
> all further hardware partitions.

Looks good.



More information about the devel mailing list