|
Prev: Questions about load kernel driver dynamically in user mode
Next: How Locking Pages of pointers to usermemory
From: qwert on 18 Apr 2008 03:30 I have a driver which do a firmware upgrade to a device via USB. say while upgrading if my system goes to hibernate mode or if the system goes to standby mode the system crashes . In this case what all things my driver should take care??? I was asked such a question in a session.I was not able to answer. Hope I get any answers. Thanks in advance
From: Tim Roberts on 19 Apr 2008 21:45 qwert <qwert(a)discussions.microsoft.com> wrote: > >I have a driver which do a firmware upgrade to a device via USB. >say while upgrading if my system goes to hibernate mode or if the system >goes to standby mode the system crashes . >In this case what all things my driver should take care??? If the system crashes, you can't do anything, of course. How long does it take to upgrade your firmware? Your driver will be notified when the system wants to change the power state. You can delay it, but not forever. -- Tim Roberts, timr(a)probo.com Providenza & Boekelheide, Inc.
From: Doron Holan [MSFT] on 21 Apr 2008 14:17
well, if you are in the middle of updating firmware and you get an Sx irp, you can pend the Sx irp until firmware download has completed. this will prevent the Sx until you complete the irp, but starting with vista there is a timeout associated with the Sx irp (currently 10 minutes), so take care not to exceed that. d -- Please do not send e-mail directly to this alias. this alias is for newsgroup purposes only. This posting is provided "AS IS" with no warranties, and confers no rights. "Tim Roberts" <timr(a)probo.com> wrote in message news:fv7l049qd2kebn9dej940r9b0sikatvb16(a)4ax.com... > qwert <qwert(a)discussions.microsoft.com> wrote: >> >>I have a driver which do a firmware upgrade to a device via USB. >>say while upgrading if my system goes to hibernate mode or if the system >>goes to standby mode the system crashes . >>In this case what all things my driver should take care??? > > If the system crashes, you can't do anything, of course. > > How long does it take to upgrade your firmware? Your driver will be > notified when the system wants to change the power state. You can delay > it, but not forever. > -- > Tim Roberts, timr(a)probo.com > Providenza & Boekelheide, Inc. |