My Problem:ScsiPortNotification(BusChangeDetected) can not work

Now I am writing a CardReader driver using Scsi Miniport?

Once a card is detected in the card reader, the card will be reset.
After success in card reset , ScsiPortNotification( BusChangeDetected) will be called.

But Cannot enter into startIo function.

Did I miss something to do?

I am not sure whether I should call ScsiPortNotification( NextRequest) after calling ScsiPortNotification( BusChangeDetected).

xxxxx@gmail.com wrote:

Now I am writing a CardReader driver using Scsi Miniport?

What kind of card are you talking about?

Once a card is detected in the card reader, the card will be reset.

Why? If you are detecting a new card, then it was just plugged in.
Power has just been applied. How could it possible need to be reset?


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Tim,

I don’t know what media card the OP is working on. He probably needs to
develop a host driver for N-in-1cardreader for non-USB inferface controller.

Some media cards, such as xD picture, it consists of a NAND flash and a
dumb controller/logic to interface with the xD i/f. After power has been
applied to the “card”, the first thing for the xD host controller to do is
send an xD bus reset command to the media card to reset the control
logic on the media card, and the media card must return positive in
response to the rst_cmd before any other cmds can be processed.

Calvin

On Wed, Oct 24, 2012 at 10:13 AM, Tim Roberts wrote:

> xxxxx@gmail.com wrote:
> > Now I am writing a CardReader driver using Scsi Miniport?
>
> What kind of card are you talking about?
>
>
> > Once a card is detected in the card reader, the card will be reset.
>
> Why? If you are detecting a new card, then it was just plugged in.
> Power has just been applied. How could it possible need to be reset?
>
> –
> Tim Roberts, xxxxx@probo.com
> Providenza & Boekelheide, Inc.
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

Thank you, Calvin Guan and Tim Roberts.

I have solved this problem.
The cause of this issue is that ScsiPortNotification can not be called in other thread.
Calling ScsiportNotification( TimeCall, ) is my method to resolve this problem.

If you called ScsiPortNotification in the context of interrupt, it should
work.

Calvin

On Mon, Nov 5, 2012 at 5:51 PM, wrote:

> Thank you, Calvin Guan and Tim Roberts.
>
> I have solved this problem.
> The cause of this issue is that ScsiPortNotification can not be called in
> other thread.
> Calling ScsiportNotification( TimeCall, ) is my method to resolve this
> problem.
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>