Re: about samsung smdk2440 sd driver questions
- From: huizi0516@xxxxxxxxx
- Date: 14 Dec 2006 17:43:34 -0800
Geoff,thanks for your reply.
But I still some questions,you said I should give the handle in
the SDSlotEventCallBack.
I just have the driver as dll files,there are no sources.Can you tell
me where should I fix.But the driver I had seen someone used
successful.And now I don't know what's wrong here.
The second question,I debug the detect interrupt
SYSINTR_SDMMC_CARD_DETECT in function OEMInterruptHandler,I found it
can get the interrupt whether the card inserts or removes.In fact,when
it gets the first interrupt and the driver detects the card as insert
and loads the card successfully,after that I found the kernel called
the OEMInterruptDone once
and once,the OEMInterruptDone exports the same string
"SYSINTR_SDMMC_CARD_DETECT OEMInterruptDone" .But when it gets the
second card detect interrupt I can not see it does anything.
Are there anything I forget in the oal about the sdmmc interrupt?
"Geoff 写道:
"
The card detect interrupt SYSINTR_SDMMC_CARD_DETECT occurs whenever a
card is detected. (They named that one rather well). The kernel
schedules the IST associated with that event, which should be in the SD
host controller driver.
The kernel does not call OEMInterruptDone per se, it is called from the
host controller driver via InterruptDone(SYSINTR_SDMMC_CARD_DETECT).
The client driver receives a callback when the card detect events occur,
this callback as registered via
SDCARD_CLIENT_REGISTRATION_INFO pSlotEventCallBack
The callback looks like this:
VOID SDSlotEventCallBack(SD_DEVICE_HANDLE hDevice,
PVOID pContext,
SD_SLOT_EVENT_TYPE SlotEventType,
PVOID pData,
DWORD DataLength)
The slot event type will be "SDCardEjected" for a card removal. The
removal needs to be handled here.
Do you see an interrupt when the card is removed? If not then I would
suggest that that interrupt is not being handled correctly.
Geoff
--
huizi0516@xxxxxxxxx wrote:
There are two qestions:
Can anyone tell me what happen about this(after load the sd continue to
export the string in OEMInterruptDone "SYSINTR_SDMMC_CARD_DETECT
OEMInterruptDone")?
And What should I do to make the drive unload the sd card?
The follows are the code of functions OEMInterruptHandler and
OEMIterruptDone:
(Because of too more code ,I just show about sdmmc code)
.
- Follow-Ups:
- Re: about samsung smdk2440 sd driver questions
- From: Geoff
- Re: about samsung smdk2440 sd driver questions
- References:
- about samsung smdk2440 sd driver questions
- From: huizi0516
- Re: about samsung smdk2440 sd driver questions
- From: Geoff
- about samsung smdk2440 sd driver questions
- Prev by Date: (CE6) Telnetd can't work
- Next by Date: Re: Two "Mass Storages" for SD card and nandflash ??
- Previous by thread: Re: about samsung smdk2440 sd driver questions
- Next by thread: Re: about samsung smdk2440 sd driver questions
- Index(es):
Relevant Pages
|