<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div style="margin: 0;">Hi <span style="font-family: arial; white-space: pre-wrap;">Chris & Christian,</span></div><div style="margin: 0;"><span style="font-family: arial; white-space: pre-wrap;">Thanks for your help.</span></div><div style="margin: 0;"><font face="arial"><span style="white-space: pre-wrap;">In our application, shell is very useful for testing and debuging.</span></font></div><div style="margin: 0;"><font face="arial"><span style="white-space: pre-wrap;">We want to avoid shell hang when sd card is removed unexpected.</span></font></div><div style="margin: 0;"><font face="arial"><span style="white-space: pre-wrap;">Current workaround solution we used is ti_sdhci_get_card_present get the sd removing flag but it always return true.</span></font></div><div style="margin: 0;"><font face="arial"><span style="white-space: pre-wrap;">The uplayer application get the flag and not access the sd card again.</span></font></div><div style="margin: 0;"><br></div><div style="margin: 0;">Zhengxin</div><div style="margin: 0;">Best regards.</div><pre>At 2021-01-08 07:19:11, "Chris Johns" <chrisj@rtems.org> wrote:
>On 8/1/21 1:10 am, Christian Mauderer wrote:
>> Hello RUI Zhengxin,
>> 
>> On 07/01/2021 04:43, RUI Zhengxin wrote:
>>> Hi all,
>>> We find "swi6: Giant task queue" suspend if removing SD Card.
>>> libbsd5.1 is running at beagle bone hardware, the sdhci driver is attached
>>> success.
>>> *sdhci_ti0: <TI MMCHS (SDHCI 2.0)> mem 0x4809c000-0x4809c3ff irq 78,4 on
>>> simplebus0*
>>> *mmc0: <MMC/SD bus> on sdhci_ti0*
>>> The console show the message when removing sd card
>>> *emerg: mmcsd_detach: FIXME*
>> 
>> Like the message suggests: Removing SD cards is currently not implemented. The
>> part of the subsystem is just removed and replaced by a BSD_PANIC("FIXME"). It's
>> a bit back since I last touched that subsystem but if I remember correctly, it
>> would be quite a bit of work to add that support.
>
>I have added VFS support to libbsd but I have not looked at this specific set of
>interfaces. I have left them alone for now. Once my changes are merged and
>stable it would be interesting to see if the devfs and related pieces can be
>reverted back to something closer to the original FreeBSD sources and if it
>helps in this case.
>
>Chris
</pre></div><br><br><span title="neteasefooter"><p> </p></span>