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

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


On 01/04/2020 14:09, Christian Mauderer wrote:

> On 01/04/2020 11:55, Sebastian Huber wrote:
>> 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.
>>
> Should we apply it only to master or to 5-freebsd-12 too? The problem
> affects both so I would suggest to apply it to both branches.
Both branches please.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200401/1042eef8/attachment.html>


More information about the devel mailing list